summaryrefslogtreecommitdiff
path: root/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
blob: 89592247157b4941dbc197a6d78083cf9009723c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
LittlerootTown_BrendansHouse_2F_MapScripts:: @ 81F83E3
	map_script 3, LittlerootTown_BrendansHouse_2F_MapScript1_1F83EE
	map_script 4, LittlerootTown_BrendansHouse_2F_MapScript2_1F846A
	.byte 0

LittlerootTown_BrendansHouse_2F_MapScript1_1F83EE: @ 81F83EE
	compare_var_to_value VAR_0x408D, 2
	call_if 0, LittlerootTown_BrendansHouse_2F_EventScript_1F8457
	compare_var_to_value VAR_0x408D, 3
	call_if 4, LittlerootTown_BrendansHouse_2F_EventScript_1F841A
	compare_var_to_value VAR_0x4092, 4
	call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_2926FE
	call LittlerootTown_BrendansHouse_2F_EventScript_275CE1
	setvar VAR_0x4089, 0
	end

LittlerootTown_BrendansHouse_2F_EventScript_1F841A:: @ 81F841A
	checkflag FLAG_0x124
	goto_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8433
	compare_var_to_value VAR_0x4084, 2
	goto_if 4, LittlerootTown_BrendansHouse_2F_EventScript_1F8456
	goto LittlerootTown_BrendansHouse_2F_EventScript_1F8433

LittlerootTown_BrendansHouse_2F_EventScript_1F8433:: @ 81F8433
	checkplayergender
	compare_var_to_value VAR_RESULT, 0
	goto_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8456
	compare_var_to_value VAR_0x40D3, 2
	goto_if 4, LittlerootTown_BrendansHouse_2F_EventScript_1F9309
	setobjectxyperm 1, 0, 2
	setobjectmovementtype 1, 7
	return

LittlerootTown_BrendansHouse_2F_EventScript_1F8456:: @ 81F8456
	return

LittlerootTown_BrendansHouse_2F_EventScript_1F8457:: @ 81F8457
	checkplayergender
	compare_var_to_value VAR_RESULT, 1
	goto_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8464
	return

LittlerootTown_BrendansHouse_2F_EventScript_1F8464:: @ 81F8464
	setvar VAR_0x408D, 2
	return

LittlerootTown_BrendansHouse_2F_MapScript2_1F846A: @ 81F846A
	map_script_2 VAR_0x4089, 0, LittlerootTown_BrendansHouse_2F_EventScript_1F8474
	.2byte 0

LittlerootTown_BrendansHouse_2F_EventScript_1F8474:: @ 81F8474
	checkplayergender
	compare_var_to_value VAR_RESULT, 0
	goto_eq EventScript_275D0C
	end

LittlerootTown_BrendansHouse_2F_EventScript_1F8481:: @ 81F8481
	lockall
	compare_var_to_value VAR_0x408D, 2
	goto_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8497
	msgbox LittlerootTown_BrendansHouse_2F_Text_1F9991, 4
	releaseall
	end

LittlerootTown_BrendansHouse_2F_EventScript_1F8497:: @ 81F8497
	delay 10
	addobject 1
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85BC
	waitmovement 0
	playse SE_PIN
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_272598
	waitmovement 0
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_27259A
	waitmovement 0
	delay 10
	playbgm BGM_BOY_SUP, 1
	compare_var_to_value VAR_FACING, 2
	call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1F8507
	compare_var_to_value VAR_FACING, 1
	call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1F8536
	compare_var_to_value VAR_FACING, 3
	call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1F8565
	compare_var_to_value VAR_FACING, 4
	call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1F8594
	setvar VAR_0x408D, 3
	setflag FLAG_0x331
	clearflag FLAG_0x2F8
	setvar VAR_0x4050, 1
	savebgm SE_STOP
	fadedefaultbgm
	releaseall
	end

LittlerootTown_BrendansHouse_2F_EventScript_1F8507:: @ 81F8507
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85C0
	waitmovement 0
	applymovement 255, LittlerootTown_BrendansHouse_2F_Movement_2725A8
	waitmovement 0
	msgbox LittlerootTown_BrendansHouse_2F_Text_1F97B4, 4
	closemessage
	applymovement 255, LittlerootTown_BrendansHouse_2F_Movement_1F85CF
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85C6
	waitmovement 0
	return

LittlerootTown_BrendansHouse_2F_EventScript_1F8536:: @ 81F8536
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85D7
	waitmovement 0
	applymovement 255, LittlerootTown_BrendansHouse_2F_Movement_2725A8
	waitmovement 0
	msgbox LittlerootTown_BrendansHouse_2F_Text_1F97B4, 4
	closemessage
	applymovement 255, LittlerootTown_BrendansHouse_2F_Movement_1F85E2
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85DB
	waitmovement 0
	return

LittlerootTown_BrendansHouse_2F_EventScript_1F8565:: @ 81F8565
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85E8
	waitmovement 0
	applymovement 255, LittlerootTown_BrendansHouse_2F_Movement_2725A8
	waitmovement 0
	msgbox LittlerootTown_BrendansHouse_2F_Text_1F97B4, 4
	closemessage
	applymovement 255, LittlerootTown_BrendansHouse_2F_Movement_1F85F6
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85ED
	waitmovement 0
	return

LittlerootTown_BrendansHouse_2F_EventScript_1F8594:: @ 81F8594
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85FD
	waitmovement 0
	applymovement 255, LittlerootTown_BrendansHouse_2F_Movement_2725A6
	waitmovement 0
	msgbox LittlerootTown_BrendansHouse_2F_Text_1F97B4, 4
	closemessage
	applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F8604
	waitmovement 0
	return

LittlerootTown_BrendansHouse_2F_Movement_1F85BC: @ 81F85BC
	step_down
	step_down
	step_27
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85C0: @ 81F85C0
	step_left
	step_left
	step_down
	step_down
	step_left
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85C6: @ 81F85C6
	step_up
	step_up
	step_up
	step_left
	step_left
	step_left
	step_left
	step_26
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85CF: @ 81F85CF
	step_14
	step_26
	step_14
	step_14
	step_14
	step_14
	step_27
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85D7: @ 81F85D7
	step_left
	step_left
	step_left
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85DB: @ 81F85DB
	step_up
	step_left
	step_left
	step_left
	step_left
	step_26
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85E2: @ 81F85E2
	step_14
	step_26
	step_14
	step_14
	step_27
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85E8: @ 81F85E8
	step_left
	step_left
	step_down
	step_27
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85ED: @ 81F85ED
	step_up
	step_up
	step_left
	step_left
	step_left
	step_left
	step_left
	step_26
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85F6: @ 81F85F6
	step_13
	step_14
	step_26
	step_14
	step_14
	step_27
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F85FD: @ 81F85FD
	step_left
	step_left
	step_left
	step_left
	step_left
	step_25
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F8604: @ 81F8604
	step_up
	step_left
	step_left
	step_26
	step_end

LittlerootTown_BrendansHouse_2F_Movement_1F8609: @ 81F8609
	step_14
	step_14
	step_27
	step_end

gUnknown_081F860D:: @ 81F860D
	lockall
	checkplayergender
	compare_var_to_value VAR_RESULT, 0
	goto_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8626
	compare_var_to_value VAR_RESULT, 1
	goto_eq LittlerootTown_BrendansHouse_2F_EventScript_1F864C
	end

LittlerootTown_BrendansHouse_2F_EventScript_1F8626:: @ 81F8626
	setvar VAR_0x8004, 1
	special sp0D9_ComputerRelated
	playse SE_PC_ON
	msgbox gUnknown_08272D87, 4
	special sub_816AE58
	waitstate
	releaseall
	end

LittlerootTown_BrendansHouse_2F_EventScript_1F863F:: @ 81F863F
	setvar VAR_0x8004, 1
	playse SE_PC_OFF
	special sub_8138E20
	releaseall
	end

LittlerootTown_BrendansHouse_2F_EventScript_1F864C:: @ 81F864C
	msgbox gUnknown_08272CD5, 4
	releaseall
	end

LittlerootTown_BrendansHouse_2F_EventScript_1F8656:: @ 81F8656
LittlerootTown_MaysHouse_2F_EventScript_1F8656:: @ 81F8656
	msgbox LittlerootTown_BrendansHouse_2F_Text_1F877F, 3
	end

LittlerootTown_BrendansHouse_2F_EventScript_1F865F:: @ 81F865F
LittlerootTown_MaysHouse_2F_EventScript_1F865F:: @ 81F865F
	msgbox LittlerootTown_BrendansHouse_2F_Text_1F884F, 3
	end

LittlerootTown_BrendansHouse_2F_Text_1F8668: @ 81F8668
	.string "The clock is stopped…\p"
	.string "Better set it and start it!$"

LittlerootTown_BrendansHouse_2F_Text_1F869A: @ 81F869A
	.string "MOM: {PLAYER}, how do you like your\n"
	.string "new room?\p"
	.string "Good! Everything’s put away neatly!\p"
	.string "They finished moving everything in\n"
	.string "downstairs, too.\p"
	.string "POKéMON movers are so convenient!\p"
	.string "Oh, you should make sure that\n"
	.string "everything’s all there on your desk.$"

LittlerootTown_BrendansHouse_2F_Text_1F877F: @ 81F877F
	.string "{PLAYER} flipped open the notebook.\p"
	.string "ADVENTURE RULE NO. 1\n"
	.string "Open the MENU with START.\p"
	.string "ADVENTURE RULE NO. 2\n"
	.string "Record your progress with SAVE.\p"
	.string "The remaining pages are blank…$"

LittlerootTown_BrendansHouse_2F_Text_1F8820: @ 81F8820
	.string "{PLAYER} took a closer look at the\n"
	.string "HOENN region map.$"

LittlerootTown_BrendansHouse_2F_Text_1F884F: @ 81F884F
	.string "It’s a Nintendo GameCube.\p"
	.string "A Game Boy Advance is connected to\n"
	.string "serve as the Controller.$"