summaryrefslogtreecommitdiff
path: root/data/scripts/maps/RusturfTunnel.inc
blob: 25913300c1fd36b4d135c95796466fcc1410764e (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
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
RusturfTunnel_MapScripts:: @ 822CE27
	map_script 3, RusturfTunnel_MapScript1_22CE44
	map_script 2, RusturfTunnel_MapScript2_22CE32
	.byte 0

RusturfTunnel_MapScript2_22CE32: @ 822CE32
	map_script_2 VAR_0x409A, 4, RusturfTunnel_EventScript_22CEAE
	map_script_2 VAR_0x409A, 5, RusturfTunnel_EventScript_22CEAE
	.2byte 0

RusturfTunnel_MapScript1_22CE44: @ 822CE44
	compare_var_to_value VAR_0x409A, 2
	call_if 1, RusturfTunnel_EventScript_22CE50
	end

RusturfTunnel_EventScript_22CE50:: @ 822CE50
	setobjectxyperm 7, 13, 4
	setobjectxyperm 6, 13, 5
	return

RusturfTunnel_EventScript_22CE5F:: @ 822CE5F
	lock
	faceplayer
	msgbox RusturfTunnel_Text_22D7A3, 4
	closemessage
	applymovement VAR_LAST_TALKED, RusturfTunnel_Movement_2725A2
	waitmovement 0
	release
	end

RusturfTunnel_EventScript_22CE76:: @ 822CE76
	lock
	faceplayer
	checkflag FLAG_0x001
	goto_eq RusturfTunnel_EventScript_22CE99
	setflag FLAG_0x001
	msgbox RusturfTunnel_Text_22D510, 4
	closemessage
	applymovement VAR_LAST_TALKED, RusturfTunnel_Movement_2725A2
	waitmovement 0
	release
	end

RusturfTunnel_EventScript_22CE99:: @ 822CE99
	msgbox RusturfTunnel_Text_22D5F3, 4
	closemessage
	applymovement VAR_LAST_TALKED, RusturfTunnel_Movement_2725A2
	waitmovement 0
	release
	end

RusturfTunnel_EventScript_22CEAE:: @ 822CEAE
	lockall
	compare_var_to_value VAR_0x4001, 1
	call_if 1, RusturfTunnel_EventScript_22CFA7
	compare_var_to_value VAR_0x4001, 2
	call_if 1, RusturfTunnel_EventScript_22CFBC
	compare_var_to_value VAR_0x4001, 3
	call_if 1, RusturfTunnel_EventScript_22CFC7
	call RusturfTunnel_EventScript_22CFFF
	msgbox RusturfTunnel_Text_22D65C, 4
	compare_var_to_value VAR_0x4001, 2
	call_if 1, RusturfTunnel_EventScript_22CFC8
	compare_var_to_value VAR_0x4001, 3
	call_if 1, RusturfTunnel_EventScript_22CFC8
	giveitem_std ITEM_HM04
	setflag FLAG_0x06A
	msgbox RusturfTunnel_Text_22D6D2, 4
	closemessage
	compare_var_to_value VAR_0x4001, 1
	call_if 1, RusturfTunnel_EventScript_22CF5D
	compare_var_to_value VAR_0x4001, 2
	call_if 1, RusturfTunnel_EventScript_22CF6F
	compare_var_to_value VAR_0x4001, 3
	call_if 1, RusturfTunnel_EventScript_22CF8B
	msgbox RusturfTunnel_Text_22D745, 4
	closemessage
	compare_var_to_value VAR_0x4001, 1
	call_if 1, RusturfTunnel_EventScript_22CFD4
	compare_var_to_value VAR_0x4001, 2
	call_if 1, RusturfTunnel_EventScript_22CFE6
	compare_var_to_value VAR_0x4001, 3
	call_if 1, RusturfTunnel_EventScript_22CFE6
	call RusturfTunnel_EventScript_272216
	releaseall
	end

RusturfTunnel_EventScript_22CF5D:: @ 822CF5D
	applymovement 255, RusturfTunnel_Movement_22D042
	applymovement 1, RusturfTunnel_Movement_22D067
	waitmovement 0
	return

RusturfTunnel_EventScript_22CF6F:: @ 822CF6F
	applymovement 255, RusturfTunnel_Movement_22D045
	applymovement 1, RusturfTunnel_Movement_22D06C
	waitmovement 0
	applymovement 10, RusturfTunnel_Movement_2725AA
	waitmovement 0
	return

RusturfTunnel_EventScript_22CF8B:: @ 822CF8B
	applymovement 255, RusturfTunnel_Movement_22D045
	applymovement 1, RusturfTunnel_Movement_22D06C
	waitmovement 0
	applymovement 10, RusturfTunnel_Movement_2725AA
	waitmovement 0
	return

RusturfTunnel_EventScript_22CFA7:: @ 822CFA7
	applymovement 1, RusturfTunnel_Movement_2725A6
	waitmovement 0
	applymovement 255, RusturfTunnel_Movement_2725AA
	waitmovement 0
	return

RusturfTunnel_EventScript_22CFBC:: @ 822CFBC
	applymovement 1, RusturfTunnel_Movement_22D048
	waitmovement 0
	return

RusturfTunnel_EventScript_22CFC7:: @ 822CFC7
	return

RusturfTunnel_EventScript_22CFC8:: @ 822CFC8
	closemessage
	applymovement 1, RusturfTunnel_Movement_22D065
	waitmovement 0
	return

RusturfTunnel_EventScript_22CFD4:: @ 822CFD4
	applymovement 10, RusturfTunnel_Movement_22D017
	applymovement 1, RusturfTunnel_Movement_22D04B
	waitmovement 0
	return

RusturfTunnel_EventScript_22CFE6:: @ 822CFE6
	applymovement 255, RusturfTunnel_Movement_22D02F
	applymovement 10, RusturfTunnel_Movement_22D023
	applymovement 1, RusturfTunnel_Movement_22D058
	waitmovement 0
	return

RusturfTunnel_EventScript_22CFFF:: @ 822CFFF
	playse SE_PIN
	applymovement 1, RusturfTunnel_Movement_272598
	waitmovement 0
	applymovement 1, RusturfTunnel_Movement_27259A
	waitmovement 0
	return

RusturfTunnel_Movement_22D017: @ 822D017
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

RusturfTunnel_Movement_22D023: @ 822D023
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

RusturfTunnel_Movement_22D02F: @ 822D02F
	step_13
	step_26
	step_14
	step_14
	step_28
	step_end

RusturfTunnel_Movement_22D035: @ 822D035
	step_left
	step_28
	step_end

RusturfTunnel_Movement_22D038: @ 822D038
	step_down
	step_26
	step_13
	step_28
	step_end

RusturfTunnel_Movement_22D03D: @ 822D03D
	step_up
	step_25
	step_13
	step_28
	step_end

RusturfTunnel_Movement_22D042: @ 822D042
	step_left
	step_28
	step_end

RusturfTunnel_Movement_22D045: @ 822D045
	step_right
	step_27
	step_end

RusturfTunnel_Movement_22D048: @ 822D048
	step_up
	step_28
	step_end

RusturfTunnel_Movement_22D04B: @ 822D04B
	step_right
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

RusturfTunnel_Movement_22D058: @ 822D058
	step_up
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end

RusturfTunnel_Movement_22D065: @ 822D065
	step_right
	step_end

RusturfTunnel_Movement_22D067: @ 822D067
	step_22
	step_22
	step_16
	step_18
	step_end

RusturfTunnel_Movement_22D06C: @ 822D06C
	step_24
	step_24
	step_18
	step_26
	step_end

RusturfTunnel_EventScript_22D071:: @ 822D071
	setvar VAR_0x4001, 1
	end

RusturfTunnel_EventScript_22D077:: @ 822D077
	setvar VAR_0x4001, 2
	end

RusturfTunnel_EventScript_22D07D:: @ 822D07D
	setvar VAR_0x4001, 3
	end

RusturfTunnel_EventScript_22D083:: @ 822D083
	lockall
	msgbox RusturfTunnel_Text_22D1C8, 4
	closemessage
	applymovement 6, RusturfTunnel_Movement_22D0AB
	applymovement 7, RusturfTunnel_Movement_22D0AB
	waitmovement 0
	moveobjectoffscreen 6
	moveobjectoffscreen 7
	setvar VAR_0x409A, 3
	releaseall
	end

RusturfTunnel_Movement_22D0AB: @ 822D0AB
	step_40
	step_right
	step_41
	step_end

RusturfTunnel_EventScript_22D0AF:: @ 822D0AF
	lock
	faceplayer
	waitse
	playmoncry SPECIES_WINGULL, 0
	msgbox RusturfTunnel_Text_22D1F7, 4
	waitmoncry
	release
	end

RusturfTunnel_EventScript_22D0C2:: @ 822D0C2
	lock
	faceplayer
	playbgm BGM_AQA_0, 0
	msgbox RusturfTunnel_Text_22D20A, 4
	trainerbattle 3, TRAINER_GRUNT_10, 0, RusturfTunnel_Text_22D2B0
	msgbox RusturfTunnel_Text_22D2E1, 4
	giveitem_std ITEM_DEVON_GOODS
	closemessage
	applymovement 255, RusturfTunnel_Movement_22D178
	applymovement 6, RusturfTunnel_Movement_22D181
	waitmovement 0
	removeobject 6
	delay 50
	addobject 5
	applymovement 5, RusturfTunnel_Movement_22D18B
	waitmovement 0
	applymovement 255, RusturfTunnel_Movement_22D17E
	applymovement 5, RusturfTunnel_Movement_22D1A4
	waitmovement 0
	msgbox RusturfTunnel_Text_22D395, 4
	applymovement 5, RusturfTunnel_Movement_27259E
	waitmovement 0
	message RusturfTunnel_Text_22D3BA
	waitmessage
	waitse
	playmoncry SPECIES_WINGULL, 0
	waitbuttonpress
	waitmoncry
	closemessage
	applymovement 255, RusturfTunnel_Movement_22D19F
	applymovement 5, RusturfTunnel_Movement_22D193
	applymovement 7, RusturfTunnel_Movement_22D1A7
	waitmovement 0
	removeobject 5
	removeobject 7
	clearflag FLAG_0x08E
	setflag FLAG_0x08F
	setvar VAR_0x405A, 4
	setvar VAR_0x4090, 1
	setflag FLAG_0x37B
	release
	end

RusturfTunnel_Movement_22D178: @ 822D178
	step_00
	step_40
	step_up
	step_41
	step_27
	step_end

RusturfTunnel_Movement_22D17E: @ 822D17E
	step_down
	step_26
	step_end

RusturfTunnel_Movement_22D181: @ 822D181
	step_17
	step_17
	step_17
	step_17
	step_17
	step_17
	step_17
	step_17
	step_17
	step_end

RusturfTunnel_Movement_22D18B: @ 822D18B
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_end

RusturfTunnel_Movement_22D193: @ 822D193
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end

RusturfTunnel_Movement_22D19F: @ 822D19F
	step_14
	step_13
	step_12
	step_27
	step_end

RusturfTunnel_Movement_22D1A4: @ 822D1A4
	step_14
	step_right
	step_end

RusturfTunnel_Movement_22D1A7: @ 822D1A7
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end

RusturfTunnel_EventScript_22D1B1:: @ 822D1B1
	trainerbattle 0, TRAINER_MIKE_2, 0, RusturfTunnel_Text_22D84D, RusturfTunnel_Text_22D8DB
	msgbox RusturfTunnel_Text_22D8F9, 6
	end

RusturfTunnel_Text_22D1C8: @ 822D1C8
	.string "What, are you coming?\n"
	.string "Come and get some, then!$"

RusturfTunnel_Text_22D1F7: @ 822D1F7
	.string "PEEKO: Pii pihyoh!$"

RusturfTunnel_Text_22D20A: @ 822D20A
	.string "Grah, keelhaul it all!\p"
	.string "That hostage POKéMON turned out to\n"
	.string "be worthless!\p"
	.string "And to think I made a getaway…\n"
	.string "In this tunnel to nowhere!\p"
	.string "Hey! You!\n"
	.string "So you want to battle me?$"

RusturfTunnel_Text_22D2B0: @ 822D2B0
	.string "Urrrggh! My career in crime comes to\n"
	.string "a dead end!$"

RusturfTunnel_Text_22D2E1: @ 822D2E1
	.string "This is plain not right…\p"
	.string "The BOSS told me this would be a\n"
	.string "slick-and-easy job to pull.\p"
	.string "All I had to do was steal some package\n"
	.string "from DEVON.\p"
	.string "Tch!\n"
	.string "You want it back that badly, take it!$"

RusturfTunnel_Text_22D395: @ 822D395
	.string "PEEKO!\n"
	.string "Am I glad to see you’re safe!$"

RusturfTunnel_Text_22D3BA: @ 822D3BA
	.string "PEEKO owes her life to you!\p"
	.string "They call me MR. BRINEY.\n"
	.string "And, you are?\p"
	.string "… … … … … … … …\n"
	.string "… … … … … … … …\p"
	.string "Ah, so you are {PLAYER}{KUN}!\n"
	.string "I sincerely thank you!\p"
	.string "Now, if there’s anything that troubles\n"
	.string "you, don’t hesitate to tell me!\p"
	.string "You can usually find me in my cottage\n"
	.string "by the sea near PETALBURG WOODS.\p"
	.string "Come, PEEKO, we should make our way\n"
	.string "home.\p"
	.string "PEEKO: Pihyoh!$"

RusturfTunnel_Text_22D510: @ 822D510
	.string "… …\p"
	.string "Why can’t they keep digging?\n"
	.string "Is the bedrock too hard?\p"
	.string "My beloved awaits me in VERDANTURF\n"
	.string "TOWN just beyond here…\p"
	.string "If RUSTBORO and VERDANTURF were\n"
	.string "joined by this tunnel, I could visit\l"
	.string "her every day…\p"
	.string "But this…\n"
	.string "What am I to do?$"

RusturfTunnel_Text_22D5F3: @ 822D5F3
	.string "To get from RUSTBORO to VERDANTURF,\n"
	.string "you need to go to DEWFORD, then pass\l"
	.string "through SLATEPORT and MAUVILLE…$"

RusturfTunnel_Text_22D65C: @ 822D65C
	.string "Wow! You shattered that boulder\n"
	.string "blocking the way.\p"
	.string "To show you how much I appreciate it,\n"
	.string "I’d like you to have this HM.$"

RusturfTunnel_Text_22D6D2: @ 822D6D2
	.string "That HM contains STRENGTH.\p"
	.string "If a muscular POKéMON were to learn\n"
	.string "that, it would be able to move even\l"
	.string "large boulders.$"

RusturfTunnel_Text_22D745: @ 822D745
	.string "WANDA!\n"
	.string "Now I can see you anytime!\p"
	.string "WANDA: That’s…wonderful.\p"
	.string "Please, take some rest at my home.$"

RusturfTunnel_Text_22D7A3: @ 822D7A3
	.string "On the other side of this rock…\n"
	.string "My boyfriend is there.\p"
	.string "He… He’s not just digging the tunnel\n"
	.string "to come see me.\p"
	.string "He works his hands raw and rough\n"
	.string "for the benefit of everyone.$"

RusturfTunnel_Text_22D84D: @ 822D84D
	.string "What do you call a wild man up in the\n"
	.string "mountains? A mountain man, right?\p"
	.string "So why don’t they call a POKéMON in\n"
	.string "the mountains a mountain POKéMON?$"

RusturfTunnel_Text_22D8DB: @ 822D8DB
	.string "My POKéMON…\n"
	.string "Ran out of power…$"

RusturfTunnel_Text_22D8F9: @ 822D8F9
	.string "They halted development here to\n"
	.string "protect POKéMON, right?\l"
	.string "There’s a feel-good story!$"