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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
|
OldaleTown_MapScripts:: @ 81E8EA2
map_script 3, OldaleTown_MapScript1_1E8EA8
.byte 0
OldaleTown_MapScript1_1E8EA8: @ 81E8EA8
call OldaleTown_EventScript_271ED7
setflag FLAG_VISITED_OLDALE_TOWN
checkflag FLAG_0x074
call_if 0, OldaleTown_EventScript_1E8ED2
checkflag FLAG_0x084
call_if 0, OldaleTown_EventScript_1E8EDE
checkflag FLAG_0x074
call_if 1, OldaleTown_EventScript_1E8ECC
end
OldaleTown_EventScript_1E8ECC:: @ 81E8ECC
setvar VAR_0x4051, 1
return
OldaleTown_EventScript_1E8ED2:: @ 81E8ED2
setobjectxyperm 3, 1, 11
setobjectmovementtype 3, 9
return
OldaleTown_EventScript_1E8EDE:: @ 81E8EDE
setobjectxyperm 2, 13, 14
setobjectmovementtype 2, 8
return
OldaleTown_EventScript_1E8EEA:: @ 81E8EEA
msgbox OldaleTown_Text_1E94DA, 3
end
OldaleTown_EventScript_1E8EF3:: @ 81E8EF3
msgbox OldaleTown_Text_1E918E, 2
end
OldaleTown_EventScript_1E8EFC:: @ 81E8EFC
lock
faceplayer
checkflag FLAG_0x084
goto_eq OldaleTown_EventScript_1E8FB9
checkflag FLAG_0x001
goto_eq OldaleTown_EventScript_1E8FB9
setflag FLAG_0x001
playbgm MUS_TSURETEK, 0
msgbox OldaleTown_Text_1E91C0, 4
closemessage
switch VAR_FACING
case 1, OldaleTown_EventScript_1E8F47
case 2, OldaleTown_EventScript_1E8F5E
case 4, OldaleTown_EventScript_1E8F75
end
OldaleTown_EventScript_1E8F47:: @ 81E8F47
applymovement 2, OldaleTown_Movement_1E8FD7
applymovement 255, OldaleTown_Movement_1E9001
waitmovement 0
goto OldaleTown_EventScript_1E8F8C
end
OldaleTown_EventScript_1E8F5E:: @ 81E8F5E
applymovement 2, OldaleTown_Movement_1E8FE2
applymovement 255, OldaleTown_Movement_1E900B
waitmovement 0
goto OldaleTown_EventScript_1E8F8C
end
OldaleTown_EventScript_1E8F75:: @ 81E8F75
applymovement 255, OldaleTown_Movement_1E8FF9
applymovement 2, OldaleTown_Movement_1E8FCE
waitmovement 0
goto OldaleTown_EventScript_1E8F8C
end
OldaleTown_EventScript_1E8F8C:: @ 81E8F8C
msgbox OldaleTown_Text_1E91FD, 4
giveitem_std ITEM_POTION
compare VAR_RESULT, 0
goto_eq OldaleTown_EventScript_1E8FC3
msgbox OldaleTown_Text_1E92AF, 4
setflag FLAG_0x084
fadedefaultbgm
release
end
OldaleTown_EventScript_1E8FB9:: @ 81E8FB9
msgbox OldaleTown_Text_1E92AF, 4
release
end
OldaleTown_EventScript_1E8FC3:: @ 81E8FC3
msgbox gUnknown_08272AD0, 4
fadedefaultbgm
release
end
OldaleTown_Movement_1E8FCE: @ 81E8FCE
step_up
step_up
step_up
step_up
step_up
step_up
step_up
step_25
step_end
OldaleTown_Movement_1E8FD7: @ 81E8FD7
step_left
step_up
step_up
step_right
step_up
step_up
step_up
step_up
step_up
step_25
step_end
OldaleTown_Movement_1E8FE2: @ 81E8FE2
step_up
step_up
step_up
step_up
step_up
step_up
step_up
step_25
step_end
OldaleTown_Movement_1E8FEB: @ 81E8FEB
step_up
step_up
step_right
step_right
step_right
step_right
step_up
step_up
step_up
step_up
step_up
step_13
step_25
step_end
OldaleTown_Movement_1E8FF9: @ 81E8FF9
step_right
step_up
step_up
step_up
step_up
step_up
step_up
step_end
OldaleTown_Movement_1E9001: @ 81E9001
step_14
step_14
step_14
step_14
step_up
step_up
step_up
step_up
step_up
step_end
OldaleTown_Movement_1E900B: @ 81E900B
step_up
step_up
step_up
step_up
step_up
step_up
step_up
step_end
OldaleTown_Movement_1E9013: @ 81E9013
step_left
step_up
step_up
step_right
step_right
step_right
step_right
step_up
step_up
step_up
step_up
step_end
OldaleTown_EventScript_1E901F:: @ 81E901F
lock
faceplayer
checkflag FLAG_0x074
goto_eq OldaleTown_EventScript_1E9066
msgbox OldaleTown_Text_1E939A, 4
closemessage
applymovement 3, OldaleTown_Movement_2725A2
waitmovement 0
release
end
OldaleTown_EventScript_1E903F:: @ 81E903F
lockall
applymovement 255, OldaleTown_Movement_1E9182
applymovement 3, OldaleTown_Movement_1E9185
waitmovement 0
msgbox OldaleTown_Text_1E9313, 4
closemessage
applymovement 3, OldaleTown_Movement_1E918B
waitmovement 0
releaseall
end
OldaleTown_EventScript_1E9066:: @ 81E9066
msgbox OldaleTown_Text_1E93F8, 4
release
end
OldaleTown_EventScript_1E9070:: @ 81E9070
lockall
applymovement 4, OldaleTown_Movement_27259E
waitmovement 0
setvar VAR_0x8009, 0
goto OldaleTown_EventScript_1E90E6
end
OldaleTown_EventScript_1E9086:: @ 81E9086
lockall
applymovement 4, OldaleTown_Movement_1E9170
waitmovement 0
applymovement 255, OldaleTown_Movement_2725A8
waitmovement 0
setvar VAR_0x8009, 1
goto OldaleTown_EventScript_1E90E6
end
OldaleTown_EventScript_1E90A6:: @ 81E90A6
lockall
applymovement 4, OldaleTown_Movement_1E9173
waitmovement 0
applymovement 255, OldaleTown_Movement_2725A8
waitmovement 0
setvar VAR_0x8009, 1
goto OldaleTown_EventScript_1E90E6
end
OldaleTown_EventScript_1E90C6:: @ 81E90C6
lockall
applymovement 4, OldaleTown_Movement_1E9175
waitmovement 0
applymovement 255, OldaleTown_Movement_2725A8
waitmovement 0
setvar VAR_0x8009, 1
goto OldaleTown_EventScript_1E90E6
end
OldaleTown_EventScript_1E90E6:: @ 81E90E6
checkplayergender
compare VAR_RESULT, 0
goto_eq OldaleTown_EventScript_1E90FE
compare VAR_RESULT, 1
goto_eq OldaleTown_EventScript_1E910C
end
OldaleTown_EventScript_1E90FE:: @ 81E90FE
msgbox OldaleTown_Text_1E9462, 4
goto OldaleTown_EventScript_1E911A
end
OldaleTown_EventScript_1E910C:: @ 81E910C
msgbox OldaleTown_Text_1E948A, 4
goto OldaleTown_EventScript_1E911A
end
OldaleTown_EventScript_1E911A:: @ 81E911A
closemessage
compare VAR_0x8009, 0
call_if 1, OldaleTown_EventScript_1E9148
compare VAR_0x8009, 1
call_if 1, OldaleTown_EventScript_1E915E
applymovement 4, OldaleTown_Movement_1E9177
waitmovement 0
removeobject 4
setvar VAR_0x40C7, 2
setflag FLAG_0x3D3
releaseall
end
OldaleTown_EventScript_1E9148:: @ 81E9148
compare VAR_FACING, 1
goto_if 5, OldaleTown_EventScript_1E915E
applymovement 4, OldaleTown_Movement_1E9177
waitmovement 0
return
OldaleTown_EventScript_1E915E:: @ 81E915E
applymovement 255, OldaleTown_Movement_1E917E
applymovement 4, OldaleTown_Movement_1E9177
waitmovement 0
return
OldaleTown_Movement_1E9170: @ 81E9170
step_left
step_left
step_end
OldaleTown_Movement_1E9173: @ 81E9173
step_left
step_end
OldaleTown_Movement_1E9175: @ 81E9175
step_02
step_end
OldaleTown_Movement_1E9177: @ 81E9177
step_down
step_down
step_down
step_down
step_down
step_down
step_end
OldaleTown_Movement_1E917E: @ 81E917E
step_13
step_12
step_25
step_end
OldaleTown_Movement_1E9182: @ 81E9182
step_13
step_right
step_end
OldaleTown_Movement_1E9185: @ 81E9185
step_16
step_27
step_40
step_right
step_41
step_end
OldaleTown_Movement_1E918B: @ 81E918B
step_down
step_left
step_end
OldaleTown_Text_1E918E: @ 81E918E
.string "I want to take a rest, so I’m saving my\n"
.string "progress.$"
OldaleTown_Text_1E91C0: @ 81E91C0
.string "Hi!\n"
.string "I work at a POKéMON MART.\p"
.string "Can I get you to come with me?$"
OldaleTown_Text_1E91FD: @ 81E91FD
.string "This is a POKéMON MART.\n"
.string "Just look for our blue roof.\p"
.string "We sell a variety of goods including\n"
.string "POKé BALLS for catching POKéMON.\p"
.string "Here, I’d like you to have this as\n"
.string "a promotional item.$"
OldaleTown_Text_1E92AF: @ 81E92AF
.string "A POTION can be used anytime, so it’s\n"
.string "even more useful than a POKéMON CENTER\l"
.string "in certain situations.$"
OldaleTown_Text_1E9313: @ 81E9313
.string "Aaaaah! Wait!\n"
.string "Please don’t come in here.\p"
.string "I just discovered the footprints of\n"
.string "a rare POKéMON!\p"
.string "Wait until I finish sketching\n"
.string "them, okay?$"
OldaleTown_Text_1E939A: @ 81E939A
.string "I just discovered the footprints of\n"
.string "a rare POKéMON!\p"
.string "Wait until I finish sketching\n"
.string "them, okay?$"
OldaleTown_Text_1E93F8: @ 81E93F8
.string "I finished sketching the footprints of\n"
.string "a rare POKéMON.\p"
.string "But it turns out they were only my\n"
.string "own footprints…$"
OldaleTown_Text_1E9462: @ 81E9462
.string "MAY: {PLAYER}{KUN}!\n"
.string "Over here!\l"
.string "Let’s hurry home!$"
OldaleTown_Text_1E948A: @ 81E948A
.string "BRENDAN: I’m heading back to my dad’s\n"
.string "LAB now.\l"
.string "{PLAYER}, you should hustle back, too.$"
OldaleTown_Text_1E94DA: @ 81E94DA
.string "OLDALE TOWN\n"
.string "“Where things start off scarce.”$"
|