summaryrefslogtreecommitdiff
path: root/data/scripts/maps/TrainerHill_Entrance.inc
blob: 77b67fb14cbb7e4b2d2da6b2bea4eac8ced27a27 (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
TrainerHill_Entrance_MapScripts:: @ 82680AC
	map_script 5, TrainerHill_Entrance_MapScript1_2680D0
	map_script 7, TrainerHill_Entrance_MapScript1_26811B
	map_script 3, TrainerHill_Entrance_MapScript1_2680C6
	map_script 1, TrainerHill_Entrance_MapScript1_268128
	map_script 2, TrainerHill_Entrance_MapScript2_26813E
	.byte 0

TrainerHill_Entrance_MapScript1_2680C6: @ 82680C6
	setflag FLAG_LANDMARK_TRAINER_HILL
	getplayerxy VAR_0x400D, VAR_RESULT
	end

TrainerHill_Entrance_MapScript1_2680CF: @ 82680CF
	end

TrainerHill_Entrance_MapScript1_2680D0: @ 82680D0
	setvar VAR_0x8004, 4
	special sp194_trainer_tower
	setvar VAR_0x4000, 0
	setvar VAR_0x8004, 9
	special sp194_trainer_tower
	compare VAR_RESULT, 0
	goto_eq TrainerHill_Entrance_EventScript_2680FF
	setobjectxy 255, 9, 6
	applymovement 255, TrainerHill_Entrance_Movement_26837F
	end

TrainerHill_Entrance_EventScript_2680FF:: @ 82680FF
	setvar VAR_0x8004, 16
	special sp194_trainer_tower
	compare VAR_RESULT, 1
	goto_eq TrainerHill_Entrance_EventScript_26811A
	applymovement 255, TrainerHill_Entrance_Movement_26837F
	end

TrainerHill_Entrance_EventScript_26811A:: @ 826811A
	end

TrainerHill_Entrance_MapScript1_26811B: @ 826811B
	addobject 2
	addobject 1
	addobject 5
	addobject 4
	end

TrainerHill_Entrance_MapScript1_268128: @ 8268128
	compare VAR_0x400D, 17
	call_if 1, TrainerHill_Entrance_EventScript_268134
	end

TrainerHill_Entrance_EventScript_268134:: @ 8268134
	setmetatile 17, 10, 775, 0
	return

TrainerHill_Entrance_MapScript2_26813E: @ 826813E
	map_script_2 VAR_0x4000, 0, TrainerHill_Entrance_EventScript_268182
	map_script_2 VAR_0x400D, 17, TrainerHill_Entrance_EventScript_268160
	map_script_2 VAR_0x4005, 1, TrainerHill_Entrance_EventScript_268229
	map_script_2 VAR_0x4001, 1, TrainerHill_Entrance_EventScript_2C83DF
	.2byte 0

TrainerHill_Entrance_EventScript_268160:: @ 8268160
	lockall
	applymovement 255, TrainerHill_Entrance_Movement_268385
	waitmovement 0
	setmetatile 17, 10, 820, 1
	special DrawWholeMapView
	playse SE_TK_KASYA
	waitse
	setvar VAR_0x400D, 0
	releaseall
	end

TrainerHill_Entrance_EventScript_268182:: @ 8268182
	setvar VAR_0x4000, 1
	setvar VAR_0x8004, 6
	special sp194_trainer_tower
	switch VAR_RESULT
	case 0, TrainerHill_Entrance_EventScript_2681B5
	case 1, TrainerHill_Entrance_EventScript_2681CA
	case 2, TrainerHill_Entrance_EventScript_2681EE

TrainerHill_Entrance_EventScript_2681B5:: @ 82681B5
	lockall
	applymovement 255, TrainerHill_Entrance_Movement_26837F
	msgbox TrainerHill_Entrance_Text_268689, 4
	goto TrainerHill_Entrance_EventScript_2681DA

TrainerHill_Entrance_EventScript_2681CA:: @ 82681CA
	lockall
	applymovement 255, TrainerHill_Entrance_Movement_26837F
	msgbox TrainerHill_Entrance_Text_268712, 4

TrainerHill_Entrance_EventScript_2681DA:: @ 82681DA
	closemessage
	applymovement 255, TrainerHill_Entrance_Movement_268381
	waitmovement 0
	setvar VAR_0x40D6, 0
	special HealPlayerParty
	releaseall

TrainerHill_Entrance_EventScript_2681EE:: @ 82681EE
	end

TrainerHill_Entrance_EventScript_2681EF:: @ 82681EF
	setvar VAR_0x800B, 2
	call TrainerHill_Entrance_EventScript_27191E
	waitmessage
	waitbuttonpress
	release
	end

TrainerHill_Entrance_EventScript_2681FD:: @ 82681FD
	lock
	faceplayer
	setvar VAR_0x8004, 10
	special sp194_trainer_tower
	compare VAR_RESULT, 0
	goto_eq TrainerHill_Entrance_EventScript_26821F
	msgbox TrainerHill_Entrance_Text_2686F4, 4
	goto TrainerHill_Entrance_EventScript_268227

TrainerHill_Entrance_EventScript_26821F:: @ 826821F
	msgbox TrainerHill_Entrance_Text_2687AC, 4

TrainerHill_Entrance_EventScript_268227:: @ 8268227
	release
	end

TrainerHill_Entrance_EventScript_268229:: @ 8268229
	lockall
	applymovement 255, TrainerHill_Entrance_Movement_26837F
	checkflag FLAG_SYS_GAME_CLEAR
	goto_if 0, TrainerHill_Entrance_EventScript_26836A
	msgbox TrainerHill_Entrance_Text_2684C6, 4
	setvar VAR_0x8004, 13
	special sp194_trainer_tower
	compare VAR_RESULT, 0
	call_if 1, TrainerHill_Entrance_EventScript_26832E
	setvar VAR_0x8004, 8
	special sp194_trainer_tower
	compare VAR_RESULT, 1
	goto_eq TrainerHill_Entrance_EventScript_268275
	msgbox TrainerHill_Entrance_Text_268564, 4
	goto TrainerHill_Entrance_EventScript_26827D

TrainerHill_Entrance_EventScript_268275:: @ 8268275
	msgbox TrainerHill_Entrance_Text_26859E, 4

TrainerHill_Entrance_EventScript_26827D:: @ 826827D
	message TrainerHill_Entrance_Text_2685F8
	waitmessage
	multichoice 15, 6, 17, 0
	switch VAR_RESULT
	case 0, TrainerHill_Entrance_EventScript_2682C8
	case 1, TrainerHill_Entrance_EventScript_268314
	case 2, TrainerHill_Entrance_EventScript_2682BA
	case 127, TrainerHill_Entrance_EventScript_268314
	end

TrainerHill_Entrance_EventScript_2682BA:: @ 82682BA
	msgbox TrainerHill_Entrance_Text_2687C3, 4
	goto TrainerHill_Entrance_EventScript_26827D
	end

TrainerHill_Entrance_EventScript_2682C8:: @ 82682C8
	multichoice 13, 2, 113, 0
	switch VAR_RESULT
	case 4, TrainerHill_Entrance_EventScript_268314
	case 127, TrainerHill_Entrance_EventScript_268314
	setvar VAR_0x8004, 17
	copyvar VAR_0x8005, VAR_RESULT
	special sp194_trainer_tower
	setvar VAR_0x40D6, 1
	setvar VAR_0x4005, 0
	special HealPlayerParty
	msgbox TrainerHill_Entrance_Text_26862A, 4
	setvar VAR_0x8004, 0
	special sp194_trainer_tower
	releaseall
	end

TrainerHill_Entrance_EventScript_268314:: @ 8268314
	setvar VAR_0x4005, 0
	msgbox TrainerHill_Entrance_Text_26866F, 4
	closemessage
	applymovement 255, TrainerHill_Entrance_Movement_268381
	waitmovement 0
	releaseall
	end

TrainerHill_Entrance_EventScript_26832E:: @ 826832E
	msgbox TrainerHill_Entrance_Text_26851C, 4
	setvar VAR_0x8004, 14
	special sp194_trainer_tower
	setvar VAR_0x4005, 1
	call TrainerHill_Entrance_EventScript_27134F
	compare VAR_RESULT, 0
	goto_eq TrainerHill_Entrance_EventScript_26835C
	setvar VAR_0x8004, 14
	special sp194_trainer_tower
	return

TrainerHill_Entrance_EventScript_26835C:: @ 826835C
	setvar VAR_0x8004, 15
	special sp194_trainer_tower
	goto TrainerHill_Entrance_EventScript_268314
	end

TrainerHill_Entrance_EventScript_26836A:: @ 826836A
	msgbox TrainerHill_Entrance_Text_268430, 4
	closemessage
	applymovement 255, TrainerHill_Entrance_Movement_268381
	waitmovement 0
	releaseall
	end

TrainerHill_Entrance_Movement_26837F: @ 826837F
	step_03
	step_end

TrainerHill_Entrance_Movement_268381: @ 8268381
	step_down
	step_end

TrainerHill_Entrance_Movement_268383: @ 8268383
	step_01
	step_end

TrainerHill_Entrance_Movement_268385: @ 8268385
	step_down
	step_down
	step_end

TrainerHill_Entrance_EventScript_268388:: @ 8268388
	lockall
	fadescreen 1
	special sub_813C904
	waitstate
	releaseall
	end

TrainerHill_Entrance_EventScript_268391:: @ 8268391
	checkflag FLAG_SYS_GAME_CLEAR
	goto_if 0, TrainerHill_Entrance_EventScript_2683A3
	msgbox TrainerHill_Entrance_Text_268D5A, 2
	end

TrainerHill_Entrance_EventScript_2683A3:: @ 82683A3
	msgbox TrainerHill_Entrance_Text_268DDA, 2
	end

TrainerHill_Entrance_EventScript_2683AC:: @ 82683AC
	checkflag FLAG_SYS_GAME_CLEAR
	goto_if 0, TrainerHill_Entrance_EventScript_2683BE
	msgbox TrainerHill_Entrance_Text_268E6A, 2
	end

TrainerHill_Entrance_EventScript_2683BE:: @ 82683BE
	msgbox TrainerHill_Entrance_Text_268EDC, 2
	end

TrainerHill_Entrance_EventScript_2683C7:: @ 82683C7
	lock
	faceplayer
	message gUnknown_08272A21
	waitmessage
	checkflag FLAG_SYS_GAME_CLEAR
	goto_eq TrainerHill_Entrance_EventScript_268402
	pokemart TrainerHill_Entrance_Pokemart_2683E8
	msgbox gUnknown_08272A3F, 4
	release
	end

	.align 2
TrainerHill_Entrance_Pokemart_2683E8: @ 82683E8
	.2byte ITEM_SUPER_POTION
	.2byte ITEM_ANTIDOTE
	.2byte ITEM_PARALYZE_HEAL
	.2byte ITEM_AWAKENING
	.2byte ITEM_X_SPEED
	.2byte ITEM_X_SPECIAL
	.2byte ITEM_X_ATTACK
	.2byte ITEM_X_DEFEND
	.2byte ITEM_DIRE_HIT
	.2byte ITEM_GUARD_SPEC
	.2byte ITEM_X_ACCURACY
	.2byte ITEM_NONE
	release
	end

TrainerHill_Entrance_EventScript_268402:: @ 8268402
	pokemart TrainerHill_Entrance_Pokemart_268414
	msgbox gUnknown_08272A3F, 4
	release
	end

	.align 2
TrainerHill_Entrance_Pokemart_268414: @ 8268414
	.2byte ITEM_HYPER_POTION
	.2byte ITEM_MAX_POTION
	.2byte ITEM_FULL_RESTORE
	.2byte ITEM_FULL_HEAL
	.2byte ITEM_REVIVE
	.2byte ITEM_X_SPEED
	.2byte ITEM_X_SPECIAL
	.2byte ITEM_X_ATTACK
	.2byte ITEM_X_DEFEND
	.2byte ITEM_DIRE_HIT
	.2byte ITEM_GUARD_SPEC
	.2byte ITEM_X_ACCURACY
	.2byte ITEM_NONE
	release
	end

TrainerHill_Entrance_Text_268430: @ 8268430
	.string "This is the TRAINER HILL where\n"
	.string "you may enjoy tag battles with many\l"
	.string "TRAINERS.\p"
	.string "Unfortunately, we’re still getting\n"
	.string "things ready. Please come back later!$"

TrainerHill_Entrance_Text_2684C6: @ 82684C6
	.string "Welcome!\p"
	.string "This is the TRAINER HILL where\n"
	.string "you may enjoy tag battles with many\l"
	.string "TRAINERS!$"

TrainerHill_Entrance_Text_26851C: @ 826851C
	.string "Is this your first visit here?\p"
	.string "Before you enter, please save\n"
	.string "your game.$"

TrainerHill_Entrance_Text_268564: @ 8268564
	.string "Let’s see…\n"
	.string "The TRAINERS here now are…\p"
	.string "Up to floor no. {STR_VAR_1}.$"

TrainerHill_Entrance_Text_26859E: @ 826859E
	.string "Let’s see…\n"
	.string "The TRAINERS here now are…\p"
	.string "There appear to be TRAINERS gathered\n"
	.string "in every room.$"

TrainerHill_Entrance_Text_2685F8: @ 82685F8
	.string "Would you like to challenge the\n"
	.string "waiting TRAINERS?$"

TrainerHill_Entrance_Text_26862A: @ 826862A
	.string "I will time your progress.\n"
	.string "Best of luck!\p"
	.string "On your marks…\p"
	.string "Get set…\p"
	.string "Go!$"

TrainerHill_Entrance_Text_26866F: @ 826866F
	.string "Please do visit us again!$"

TrainerHill_Entrance_Text_268689: @ 8268689
	.string "That was too bad.\p"
	.string "I think you put in a tremendous\n"
	.string "effort in your battling.\p"
	.string "Please come back and try again!$"

TrainerHill_Entrance_Text_2686F4: @ 82686F4
	.string "I hope you give it your best.$"

TrainerHill_Entrance_Text_268712: @ 8268712
	.string "When the TRAINERS switch places,\n"
	.string "the movement can be hectic.\p"
	.string "To avoid the stampede, we moved\n"
	.string "the reception counter here.\p"
	.string "I’m sorry for the inconvenience.$"

TrainerHill_Entrance_Text_2687AC: @ 82687AC
	.string "Thank you for playing!$"

TrainerHill_Entrance_Text_2687C3: @ 82687C3
	.string "Here at the TRAINER HILL, we conduct\n"
	.string "an event called the Time Attack.\p"
	.string "It is a race that measures how long\n"
	.string "you take to reach our owner on\l"
	.string "the rooftop from this counter.\p"
	.string "The fastest times are posted on\n"
	.string "the Time Board--try competing with\l"
	.string "your friends.\p"
	.string "In TRAINER battles along the way,\n"
	.string "neither Exp. Points nor money will\l"
	.string "be awarded.$"

TrainerHill_Entrance_Text_26890D: @ 826890D
	.string "Oh, I’m sorry, but you appear to have\n"
	.string "only one POKéMON with you.\p"
	.string "You will need at least two POKéMON\n"
	.string "to enter this event.$"

TrainerHill_Roof_Text_268986: @ 8268986
	.string "Hm! Hm!\p"
	.string "You finally came!\n"
	.string "Yes, you have arrived!\p"
	.string "Wait! Don’t say it!\n"
	.string "I know why you came all the way\l"
	.string "here by yourself!\p"
	.string "You wanted to see me, the owner\n"
	.string "of the TRAINER HILL, because…\p"
	.string "You want to form a tag team with me!\n"
	.string "Wa-hoo!\p"
	.string "…Uh?\n"
	.string "That’s not it?\p"
	.string "Anyway, I watched you on your way up.\n"
	.string "Marvelous battling! Bravo, indeed!$"

TrainerHill_Roof_Text_268AC5: @ 8268AC5
	.string "For a marvelous someone like you,\n"
	.string "I have the most marvelous gift!$"

TrainerHill_Roof_Text_268B07: @ 8268B07
	.string "Oh, no, full up with things!\n"
	.string "You’ll be back later for this!$"

TrainerHill_Roof_Text_268B43: @ 8268B43
	.string "Oh, hold on here! Did you possibly get\n"
	.string "here marvelously quickly?\p"
	.string "How splendid! You needn’t have\n"
	.string "hurried so to see me!\p"
	.string "That is so delightful. I’ll have the Time\n"
	.string "Board at the reception updated!$"

TrainerHill_Roof_Text_268C03: @ 8268C03
	.string "But, oh…\n"
	.string "You weren’t very quick getting here.$"

TrainerHill_Roof_Text_268C31: @ 8268C31
	.string "Perhaps it would please me more if you\n"
	.string "arrived zippier next time.\p"
	.string "Then, I should be pleased to form\n"
	.string "a tag team with you!\p"
	.string "Until we meet again, amigo!$"

TrainerHill_Roof_Text_268CC6: @ 8268CC6
	.string "I had the TRAINER HILL built for but\n"
	.string "one reason and one only!\p"
	.string "To find the most suitable partner\n"
	.string "with whom I may form a tag team!$"

TrainerHill_Entrance_Text_268D47: @ 8268D47
	.string "{STR_VAR_1} min. {STR_VAR_2}.{STR_VAR_3} sec.$"

TrainerHill_Entrance_Text_268D5A: @ 8268D5A
	.string "Who knows what sort of TRAINERS\n"
	.string "and POKéMON combos are ahead?\p"
	.string "All I know is that I’ll knock aside\n"
	.string "anyone that stands in my way!$"

TrainerHill_Entrance_Text_268DDA: @ 8268DDA
	.string "I heard tough TRAINERS come to this\n"
	.string "TRAINER HILL from all over.\p"
	.string "I can’t wait to test the waters!\p"
	.string "I’ll knock aside anyone that stands\n"
	.string "in my way!$"

TrainerHill_Entrance_Text_268E6A: @ 8268E6A
	.string "Do you see the Time Board over there?\p"
	.string "My friends and I are trying to see who\n"
	.string "can reach the top in the least time.$"

TrainerHill_Entrance_Text_268EDC: @ 8268EDC
	.string "Do you know when they’re opening\n"
	.string "this place up?\p"
	.string "I’m waiting here to be the first\n"
	.string "challenger ever!$"

TrainerHill_Elevator_Text_268F3E: @ 8268F3E
	.string "Would you like to return to\n"
	.string "the reception counter?$"