summaryrefslogtreecommitdiff
path: root/data/scripts/maps/PetalburgWoods.inc
blob: 907f07623b811a3594cebdf1da812c5982d666ba (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
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
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
PetalburgWoods_MapScripts:: @ 822DFD6
	.byte 0

PetalburgWoods_EventScript_22DFD7:: @ 822DFD7
	lockall
	call PetalburgWoods_EventScript_22E124
	applymovement 4, PetalburgWoods_Movement_22E1CB
	waitmovement 0
	msgbox PetalburgWoods_Text_22E34F, 4
	closemessage
	playbgm MUS_AQA_0, 0
	applymovement 3, PetalburgWoods_Movement_22E209
	waitmovement 0
	msgbox PetalburgWoods_Text_22E3AA, 4
	closemessage
	applymovement 3, PetalburgWoods_Movement_22E1F6
	waitmovement 0
	applymovement 4, PetalburgWoods_Movement_2725A6
	waitmovement 0
	msgbox PetalburgWoods_Text_22E428, 4
	closemessage
	applymovement 4, PetalburgWoods_Movement_22E1E4
	waitmovement 0
	msgbox PetalburgWoods_Text_22E457, 4
	closemessage
	applymovement 3, PetalburgWoods_Movement_22E20E
	waitmovement 0
	msgbox PetalburgWoods_Text_22E4A5, 4
	trainerbattle 3, TRAINER_GRUNT_8, 0, PetalburgWoods_Text_22E542
	applymovement 3, PetalburgWoods_Movement_22E1F9
	waitmovement 0
	call PetalburgWoods_EventScript_22E138
	applymovement 255, PetalburgWoods_Movement_22E1E0
	applymovement 4, PetalburgWoods_Movement_22E1C2
	waitmovement 0
	goto PetalburgWoods_EventScript_22E1A7
	end

PetalburgWoods_EventScript_22E079:: @ 822E079
	lockall
	call PetalburgWoods_EventScript_22E124
	applymovement 4, PetalburgWoods_Movement_22E1D0
	waitmovement 0
	applymovement 255, PetalburgWoods_Movement_2725A4
	waitmovement 0
	msgbox PetalburgWoods_Text_22E34F, 4
	closemessage
	playbgm MUS_AQA_0, 0
	applymovement 3, PetalburgWoods_Movement_22E209
	waitmovement 0
	msgbox PetalburgWoods_Text_22E3AA, 4
	closemessage
	applymovement 3, PetalburgWoods_Movement_22E205
	waitmovement 0
	applymovement 4, PetalburgWoods_Movement_2725A6
	waitmovement 0
	msgbox PetalburgWoods_Text_22E428, 4
	closemessage
	applymovement 4, PetalburgWoods_Movement_22E1EA
	waitmovement 0
	msgbox PetalburgWoods_Text_22E457, 4
	applymovement 255, PetalburgWoods_Movement_2725A6
	waitmovement 0
	msgbox PetalburgWoods_Text_22E4A5, 4
	trainerbattle 3, TRAINER_GRUNT_8, 0, PetalburgWoods_Text_22E542
	applymovement 3, PetalburgWoods_Movement_22E1F9
	waitmovement 0
	call PetalburgWoods_EventScript_22E138
	applymovement 255, PetalburgWoods_Movement_22E1E0
	applymovement 4, PetalburgWoods_Movement_22E1D7
	waitmovement 0
	goto PetalburgWoods_EventScript_22E1A7
	end

PetalburgWoods_EventScript_22E124:: @ 822E124
	applymovement 4, PetalburgWoods_Movement_22E1B1
	waitmovement 0
	msgbox PetalburgWoods_Text_22E332, 4
	closemessage
	return

PetalburgWoods_EventScript_22E138:: @ 822E138
	msgbox PetalburgWoods_Text_22E563, 4
	closemessage
	applymovement 3, PetalburgWoods_Movement_22E1FD
	waitmovement 0
	removeobject 3
	applymovement 255, PetalburgWoods_Movement_2725AA
	waitmovement 0
	msgbox PetalburgWoods_Text_22E63D, 4
	giveitem_std ITEM_GREAT_BALL
	compare VAR_RESULT, 0
	goto_eq PetalburgWoods_EventScript_22E17D
	goto PetalburgWoods_EventScript_22E18B
	end

PetalburgWoods_EventScript_22E17D:: @ 822E17D
	msgbox PetalburgWoods_Text_22E741, 4
	goto PetalburgWoods_EventScript_22E18B
	end

PetalburgWoods_EventScript_22E18B:: @ 822E18B
	msgbox PetalburgWoods_Text_22E6C7, 4
	applymovement 4, PetalburgWoods_Movement_22E1EE
	waitmovement 0
	msgbox PetalburgWoods_Text_22E712, 4
	closemessage
	return

PetalburgWoods_EventScript_22E1A7:: @ 822E1A7
	removeobject 4
	setvar VAR_0x4098, 1
	releaseall
	end

PetalburgWoods_Movement_22E1B1: @ 822E1B1
	step_01
	step_14
	step_12
	step_03
	step_14
	step_13
	step_02
	step_14
	step_13
	step_00
	step_14
	step_03
	step_14
	step_13
	step_01
	step_14
	step_end

PetalburgWoods_Movement_22E1C2: @ 822E1C2
	step_18
	step_16
	step_16
	step_16
	step_16
	step_16
	step_16
	step_16
	step_end

PetalburgWoods_Movement_22E1CB: @ 822E1CB
	step_14
	step_3e
	step_down
	step_down
	step_end

PetalburgWoods_Movement_22E1D0: @ 822E1D0
	step_14
	step_3e
	step_down
	step_down
	step_down
	step_28
	step_end

PetalburgWoods_Movement_22E1D7: @ 822E1D7
	step_17
	step_16
	step_16
	step_16
	step_16
	step_16
	step_16
	step_16
	step_end

PetalburgWoods_Movement_22E1E0: @ 822E1E0
	step_14
	step_14
	step_26
	step_end

PetalburgWoods_Movement_22E1E4: @ 822E1E4
	step_18
	step_15
	step_15
	step_17
	step_26
	step_end

PetalburgWoods_Movement_22E1EA: @ 822E1EA
	step_15
	step_18
	step_26
	step_end

PetalburgWoods_Movement_22E1EE: @ 822E1EE
	step_25
	step_14
	step_14
	step_14
	step_14
	step_14
	step_01
	step_end

PetalburgWoods_Movement_22E1F6: @ 822E1F6
	step_15
	step_15
	step_end

PetalburgWoods_Movement_22E1F9: @ 822E1F9
	step_40
	step_up
	step_41
	step_end

PetalburgWoods_Movement_22E1FD: @ 822E1FD
	step_16
	step_16
	step_16
	step_16
	step_16
	step_14
	step_14
	step_end

PetalburgWoods_Movement_22E205: @ 822E205
	step_15
	step_15
	step_15
	step_end

PetalburgWoods_Movement_22E209: @ 822E209
	step_down
	step_down
	step_14
	step_14
	step_end

PetalburgWoods_Movement_22E20E: @ 822E20E
	step_down
	step_end

PetalburgWoods_EventScript_22E210:: @ 822E210
	msgbox PetalburgWoods_Text_22EA0C, 2
	end

PetalburgWoods_EventScript_22E219:: @ 822E219
	msgbox PetalburgWoods_Text_22EA8B, 2
	end

PetalburgWoods_EventScript_22E222:: @ 822E222
	lock
	faceplayer
	checkflag FLAG_0x129
	goto_eq PetalburgWoods_EventScript_22E251
	msgbox PetalburgWoods_Text_22EAFE, 4
	giveitem_std ITEM_MIRACLE_SEED
	compare VAR_RESULT, 0
	goto_eq PetalburgWoods_EventScript_272054
	setflag FLAG_0x129
	release
	end

PetalburgWoods_EventScript_22E251:: @ 822E251
	msgbox PetalburgWoods_Text_22EB63, 4
	release
	end

PetalburgWoods_EventScript_22E25B:: @ 822E25B
	msgbox PetalburgWoods_Text_22EC10, 3
	end

PetalburgWoods_EventScript_22E264:: @ 822E264
	msgbox PetalburgWoods_Text_22ED07, 3
	end

PetalburgWoods_EventScript_22E26D:: @ 822E26D
	trainerbattle 0, TRAINER_LYLE, 0, PetalburgWoods_Text_22E77D, PetalburgWoods_Text_22E7C1
	msgbox PetalburgWoods_Text_22E7EF, 6
	end

PetalburgWoods_EventScript_22E284:: @ 822E284
	trainerbattle 2, TRAINER_JAMES_1, 0, PetalburgWoods_Text_22E827, PetalburgWoods_Text_22E86B, PetalburgWoods_EventScript_22E2C5
	specialvar VAR_RESULT, ShouldTryRematchBattle
	compare VAR_RESULT, 1
	goto_eq PetalburgWoods_EventScript_22E31B
	setvar VAR_0x8004, 621
	specialvar VAR_RESULT, sub_813B4E0
	compare VAR_RESULT, 0
	goto_eq PetalburgWoods_EventScript_22E2EF
	msgbox PetalburgWoods_Text_22E889, 4
	release
	end

PetalburgWoods_EventScript_22E2C5:: @ 822E2C5
	special sub_80B4808
	waitmovement 0
	checkflag FLAG_HAS_MATCH_CALL
	goto_eq PetalburgWoods_EventScript_22E2D6
	release
	end

PetalburgWoods_EventScript_22E2D6:: @ 822E2D6
	msgbox PetalburgWoods_Text_22E8C3, 4
	setvar VAR_0x8004, 621
	special SetMatchCallRegisteredFlag
	setorcopyvar VAR_0x8000, 621
	callstd 8
	release
	end

PetalburgWoods_EventScript_22E2EF:: @ 822E2EF
	checkflag FLAG_HAS_MATCH_CALL
	goto_eq PetalburgWoods_EventScript_22E302
	msgbox PetalburgWoods_Text_22E889, 4
	release
	end

PetalburgWoods_EventScript_22E302:: @ 822E302
	msgbox PetalburgWoods_Text_22E914, 4
	setvar VAR_0x8004, 621
	special SetMatchCallRegisteredFlag
	setorcopyvar VAR_0x8000, 621
	callstd 8
	release
	end

PetalburgWoods_EventScript_22E31B:: @ 822E31B
	trainerbattle 5, TRAINER_JAMES_1, 0, PetalburgWoods_Text_22E966, PetalburgWoods_Text_22E998
	msgbox PetalburgWoods_Text_22E9B6, 6
	end

PetalburgWoods_Text_22E332: @ 822E332
	.string "Hmmm…\n"
	.string "Not a one to be found…$"

PetalburgWoods_Text_22E34F: @ 822E34F
	.string "Hello, have you seen any POKéMON\n"
	.string "called SHROOMISH around here?\p"
	.string "I really love that POKéMON.$"

PetalburgWoods_Text_22E3AA: @ 822E3AA
	.string "I was going to ambush you, but you\n"
	.string "had to dawdle in PETALBURG WOODS\l"
	.string "forever, didn’t you?\p"
	.string "I got sick of waiting, so here I am!$"

PetalburgWoods_Text_22E428: @ 822E428
	.string "You! DEVON RESEARCHER!\p"
	.string "Hand over those papers!$"

PetalburgWoods_Text_22E457: @ 822E457
	.string "Aiyeeeh!\p"
	.string "You’re a POKéMON TRAINER, aren’t you?\n"
	.string "You’ve got to help me, please!$"

PetalburgWoods_Text_22E4A5: @ 822E4A5
	.string "Hunh? What do you think you’re doing?\n"
	.string "What, you’re going to protect him?\p"
	.string "No one who crosses TEAM AQUA\n"
	.string "gets any mercy, not even a kid!\p"
	.string "Come on and battle me!$"

PetalburgWoods_Text_22E542: @ 822E542
	.string "You’re kidding me! You’re tough!$"

PetalburgWoods_Text_22E563: @ 822E563
	.string "Grrr… You’ve got some nerve\n"
	.string "meddling with TEAM AQUA!\l"
	.string "Come on and battle me again!\p"
	.string "I wish I could say that, but I’m out of\n"
	.string "POKéMON…\p"
	.string "And, hey, we of TEAM AQUA are also\n"
	.string "after something in RUSTBORO.\p"
	.string "I’ll let you go today!$"

PetalburgWoods_Text_22E63D: @ 822E63D
	.string "Whew…\n"
	.string "That was awfully close!\p"
	.string "Thanks to you, he didn’t rob me of\n"
	.string "these important papers.\p"
	.string "I know, I’ll give you a GREAT BALL as\n"
	.string "my thanks!$"

PetalburgWoods_Text_22E6C7: @ 822E6C7
	.string "Didn’t that TEAM AQUA thug say\n"
	.string "they were after something in\l"
	.string "RUSTBORO, too?$"

PetalburgWoods_Text_22E712: @ 822E712
	.string "Uh-oh! It’s a crisis!\n"
	.string "I can’t be wasting time!$"

PetalburgWoods_Text_22E741: @ 822E741
	.string "You’re loaded with items.\n"
	.string "I can’t give you this GREAT BALL.$"

PetalburgWoods_Text_22E77D: @ 822E77D
	.string "I caught a whole bunch of POKéMON!\p"
	.string "Go, go, go!\n"
	.string "My BUG POKéMON team!$"

PetalburgWoods_Text_22E7C1: @ 822E7C1
	.string "I have all these POKéMON,\n"
	.string "but I couldn’t win…$"

PetalburgWoods_Text_22E7EF: @ 822E7EF
	.string "I caught a bunch of POKéMON.\n"
	.string "Now I’m out of POKé BALLS.$"

PetalburgWoods_Text_22E827: @ 822E827
	.string "If you take BUG POKéMON to school,\n"
	.string "you get to be instantly popular!$"

PetalburgWoods_Text_22E86B: @ 822E86B
	.string "I can’t be popular if I lose.$"

PetalburgWoods_Text_22E889: @ 822E889
	.string "If you have a big BUG POKéMON,\n"
	.string "people respect you for it.$"

PetalburgWoods_Text_22E8C3: @ 822E8C3
	.string "I want a rematch when my BUG\n"
	.string "POKéMON grow up!\p"
	.string "I’m registering you in my POKéNAV!$"

PetalburgWoods_Text_22E914: @ 822E914
	.string "I want a rematch when my BUG \n"
	.string "POKéMON grow up!\p"
	.string "I’m registering you in my POKéNAV!$"

PetalburgWoods_Text_22E966: @ 822E966
	.string "My BUG POKéMON have grown.\n"
	.string "I’ll be popular again.$"

PetalburgWoods_Text_22E998: @ 822E998
	.string "I can’t be popular if I lose.$"

PetalburgWoods_Text_22E9B6: @ 822E9B6
	.string "You get to be popular if you have\n"
	.string "strong POKéMON, right?\l"
	.string "So, I’ve been training hard.$"

PetalburgWoods_Text_22EA0C: @ 822EA0C
	.string "Yo, there!\n"
	.string "Your POKéMON doing okay?\p"
	.string "If your POKéMON are weak and you want\n"
	.string "to avoid battles, you should stay out\l"
	.string "of tall grass.$"

PetalburgWoods_Text_22EA8B: @ 822EA8B
	.string "Sometimes, there are things on the\n"
	.string "ground even if you can’t see them.\p"
	.string "That’s why I always check where I’m\n"
	.string "walking.$"

PetalburgWoods_Text_22EAFE: @ 822EAFE
	.string "Oh, neat!\n"
	.string "That’s the BADGE from RUSTBORO GYM!\p"
	.string "You must be a TRAINER.\n"
	.string "You should try using this item.$"

PetalburgWoods_Text_22EB63: @ 822EB63
	.string "It’s a MIRACLE SEED.\n"
	.string "If a POKéMON holds that item, its\l"
	.string "GRASS-type moves become stronger.\p"
	.string "Besides MIRACLE SEED, I think there are\n"
	.string "other convenient items for POKéMON\l"
	.string "to hold.$"

PetalburgWoods_Text_22EC10: @ 822EC10
	.string "TRAINER TIPS\p"
	.string "Any POKéMON that appears even once\n"
	.string "in a battle is awarded EXP Points.\p"
	.string "To raise a weak POKéMON, put it at the\n"
	.string "left of the team list.\p"
	.string "As soon as a battle starts, switch it\n"
	.string "out. It will earn EXP Points without\l"
	.string "being exposed to any harm.$"

PetalburgWoods_Text_22ED07: @ 822ED07
	.string "TRAINER TIPS\p"
	.string "In addition to Hit Points (HP), POKéMON\n"
	.string "have Power Points (PP) that are used to\l"
	.string "make moves during battle.\p"
	.string "If a POKéMON runs out of PP, it must be\n"
	.string "taken to a POKéMON CENTER.$"