summaryrefslogtreecommitdiff
path: root/data/maps/BattleFrontier_ScottsHouse/scripts.inc
blob: 818fb92b05f95bb9a3a8a11f2008d1ef83083e22 (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
BattleFrontier_ScottsHouse_MapScripts:: @ 82636A7
	.byte 0

BattleFrontier_ScottsHouse_EventScript_2636A8:: @ 82636A8
	lock
	faceplayer
	checkflag FLAG_TEMP_4
	goto_eq BattleFrontier_ScottsHouse_EventScript_2637DA
	checkflag FLAG_TEMP_3
	goto_eq BattleFrontier_ScottsHouse_EventScript_2638AA
	checkflag FLAG_TEMP_2
	goto_eq BattleFrontier_ScottsHouse_EventScript_263939
	goto BattleFrontier_ScottsHouse_EventScript_2636CB
	end

BattleFrontier_ScottsHouse_EventScript_2636CB:: @ 82636CB
	checkflag FLAG_0x1D1
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_263943
	checkflag FLAG_0x05C
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_263704
	checkflag FLAG_0x1D2
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_26376A
	goto BattleFrontier_ScottsHouse_EventScript_2636EC
	end

BattleFrontier_ScottsHouse_EventScript_2636EC:: @ 82636EC
	checkflag FLAG_0x0ED
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_26381B
	checkflag FLAG_0x0EE
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2638B4
	goto BattleFrontier_ScottsHouse_EventScript_2637E4
	end

BattleFrontier_ScottsHouse_EventScript_263704:: @ 8263704
	checkflag FLAG_SYS_TOWER_SILVER
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_DOME_SILVER
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_PALACE_SILVER
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_ARENA_SILVER
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_FACTORY_SILVER
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_PIKE_SILVER
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_PYRAMID_SILVER
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	msgbox BattleFrontier_ScottsHouse_Text_2640BC, MSGBOX_DEFAULT
	giveitem_std ITEM_LANSAT_BERRY
	compare VAR_RESULT, 0
	goto_eq BattleFrontier_ScottsHouse_EventScript_2637D0
	setflag FLAG_0x05C
	setflag FLAG_TEMP_4
	release
	end

BattleFrontier_ScottsHouse_EventScript_26376A:: @ 826376A
	checkflag FLAG_SYS_TOWER_GOLD
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_DOME_GOLD
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_PALACE_GOLD
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_ARENA_GOLD
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_FACTORY_GOLD
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_PIKE_GOLD
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	checkflag FLAG_SYS_PYRAMID_GOLD
	goto_if 0, BattleFrontier_ScottsHouse_EventScript_2636EC
	msgbox BattleFrontier_ScottsHouse_Text_264216, MSGBOX_DEFAULT
	giveitem_std ITEM_STARF_BERRY
	compare VAR_RESULT, 0
	goto_eq BattleFrontier_ScottsHouse_EventScript_2637D0
	setflag FLAG_0x1D2
	setflag FLAG_TEMP_4
	release
	end

BattleFrontier_ScottsHouse_EventScript_2637D0:: @ 82637D0
	msgbox BattleFrontier_ScottsHouse_Text_2643EB, MSGBOX_DEFAULT
	release
	end

BattleFrontier_ScottsHouse_EventScript_2637DA:: @ 82637DA
	msgbox BattleFrontier_ScottsHouse_Text_264373, MSGBOX_DEFAULT
	release
	end

BattleFrontier_ScottsHouse_EventScript_2637E4:: @ 82637E4
	random 3
	compare VAR_RESULT, 1
	goto_eq BattleFrontier_ScottsHouse_EventScript_263807
	compare VAR_RESULT, 2
	goto_eq BattleFrontier_ScottsHouse_EventScript_263811
	msgbox BattleFrontier_ScottsHouse_Text_263DDD, MSGBOX_DEFAULT
	release
	end

BattleFrontier_ScottsHouse_EventScript_263807:: @ 8263807
	msgbox BattleFrontier_ScottsHouse_Text_263F12, MSGBOX_DEFAULT
	release
	end

BattleFrontier_ScottsHouse_EventScript_263811:: @ 8263811
	msgbox BattleFrontier_ScottsHouse_Text_263FFE, MSGBOX_DEFAULT
	release
	end

BattleFrontier_ScottsHouse_EventScript_26381B:: @ 826381B
	setvar VAR_FRONTIER_BATTLE_MODE, 0
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 0
	special CallFrontierUtilFunc
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	special sub_8161F74
	compare VAR_RESULT, 50
	goto_if 4, BattleFrontier_ScottsHouse_EventScript_26387A
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 1
	special CallFrontierUtilFunc
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	special sub_8161F74
	compare VAR_RESULT, 50
	goto_if 4, BattleFrontier_ScottsHouse_EventScript_26387A
	goto BattleFrontier_ScottsHouse_EventScript_2637E4
	end

BattleFrontier_ScottsHouse_EventScript_26387A:: @ 826387A
	msgbox BattleFrontier_ScottsHouse_Text_264412, MSGBOX_DEFAULT
	givedecoration_std 42
	compare VAR_RESULT, 0
	goto_eq BattleFrontier_ScottsHouse_EventScript_2638A0
	setflag FLAG_0x0ED
	setflag FLAG_TEMP_3
	goto BattleFrontier_ScottsHouse_EventScript_2638AA
	end

BattleFrontier_ScottsHouse_EventScript_2638A0:: @ 82638A0
	msgbox BattleFrontier_ScottsHouse_Text_264583, MSGBOX_DEFAULT
	release
	end

BattleFrontier_ScottsHouse_EventScript_2638AA:: @ 82638AA
	msgbox BattleFrontier_ScottsHouse_Text_264546, MSGBOX_DEFAULT
	release
	end

BattleFrontier_ScottsHouse_EventScript_2638B4:: @ 82638B4
	setvar VAR_FRONTIER_BATTLE_MODE, 0
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 0
	special CallFrontierUtilFunc
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	special sub_8161F74
	compare VAR_RESULT, 100
	goto_if 4, BattleFrontier_ScottsHouse_EventScript_263913
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 1
	special CallFrontierUtilFunc
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	special sub_8161F74
	compare VAR_RESULT, 100
	goto_if 4, BattleFrontier_ScottsHouse_EventScript_263913
	goto BattleFrontier_ScottsHouse_EventScript_2637E4
	end

BattleFrontier_ScottsHouse_EventScript_263913:: @ 8263913
	msgbox BattleFrontier_ScottsHouse_Text_26449F, MSGBOX_DEFAULT
	givedecoration_std 43
	compare VAR_RESULT, 0
	goto_eq BattleFrontier_ScottsHouse_EventScript_2638A0
	setflag FLAG_0x0EE
	setflag FLAG_TEMP_3
	goto BattleFrontier_ScottsHouse_EventScript_2638AA
	end

BattleFrontier_ScottsHouse_EventScript_263939:: @ 8263939
	msgbox BattleFrontier_ScottsHouse_Text_263DB8, MSGBOX_DEFAULT
	release
	end

BattleFrontier_ScottsHouse_EventScript_263943:: @ 8263943
	msgbox BattleFrontier_ScottsHouse_Text_263A3F, MSGBOX_DEFAULT
	closemessage
	delay 30
	compare VAR_FACING, 2
	call_if 1, BattleFrontier_ScottsHouse_EventScript_263A13
	compare VAR_FACING, 1
	call_if 1, BattleFrontier_ScottsHouse_EventScript_263A1E
	compare VAR_FACING, 4
	call_if 1, BattleFrontier_ScottsHouse_EventScript_263A29
	compare VAR_FACING, 3
	call_if 1, BattleFrontier_ScottsHouse_EventScript_263A34
	msgbox BattleFrontier_ScottsHouse_Text_263B29, MSGBOX_DEFAULT
	applymovement 1, BattleFrontier_ScottsHouse_Movement_27259E
	waitmovement 0
	msgbox BattleFrontier_ScottsHouse_Text_263BD4, MSGBOX_DEFAULT
	compare VAR_0x40D1, 13
	goto_eq BattleFrontier_ScottsHouse_EventScript_2639BC
	compare VAR_0x40D1, 9
	goto_if 4, BattleFrontier_ScottsHouse_EventScript_2639CB
	compare VAR_0x40D1, 6
	goto_if 4, BattleFrontier_ScottsHouse_EventScript_2639DA
	goto BattleFrontier_ScottsHouse_EventScript_2639E9
	end

BattleFrontier_ScottsHouse_EventScript_2639BC:: @ 82639BC
	buffernumberstring 0, 4
	setvar VAR_0x8004, 4
	goto BattleFrontier_ScottsHouse_EventScript_2639F8
	end

BattleFrontier_ScottsHouse_EventScript_2639CB:: @ 82639CB
	buffernumberstring 0, 3
	setvar VAR_0x8004, 3
	goto BattleFrontier_ScottsHouse_EventScript_2639F8
	end

BattleFrontier_ScottsHouse_EventScript_2639DA:: @ 82639DA
	buffernumberstring 0, 2
	setvar VAR_0x8004, 2
	goto BattleFrontier_ScottsHouse_EventScript_2639F8
	end

BattleFrontier_ScottsHouse_EventScript_2639E9:: @ 82639E9
	buffernumberstring 0, 1
	setvar VAR_0x8004, 1
	goto BattleFrontier_ScottsHouse_EventScript_2639F8
	end

BattleFrontier_ScottsHouse_EventScript_2639F8:: @ 82639F8
	special sub_813A9D0
	msgbox BattleFrontier_ScottsHouse_Text_263CB0, 9
	msgbox BattleFrontier_ScottsHouse_Text_263CD0, MSGBOX_DEFAULT
	setflag FLAG_0x1D1
	setflag FLAG_TEMP_2
	release
	end

BattleFrontier_ScottsHouse_EventScript_263A13:: @ 8263A13
	applymovement 1, BattleFrontier_ScottsHouse_Movement_2725A6
	waitmovement 0
	return

BattleFrontier_ScottsHouse_EventScript_263A1E:: @ 8263A1E
	applymovement 1, BattleFrontier_ScottsHouse_Movement_2725AA
	waitmovement 0
	return

BattleFrontier_ScottsHouse_EventScript_263A29:: @ 8263A29
	applymovement 1, BattleFrontier_ScottsHouse_Movement_2725A8
	waitmovement 0
	return

BattleFrontier_ScottsHouse_EventScript_263A34:: @ 8263A34
	applymovement 1, BattleFrontier_ScottsHouse_Movement_2725A4
	waitmovement 0
	return

BattleFrontier_ScottsHouse_Text_263A3F: @ 8263A3F
	.string "SCOTT: Well, hello and welcome!\n"
	.string "Heheh… Sorry about the cramped space.\p"
	.string "Anyway, {PLAYER}{KUN}, let me formally\n"
	.string "welcome you to the BATTLE FRONTIER.\p"
	.string "This is my dream come true.\n"
	.string "It took me years and years, but I’ve\l"
	.string "finally given shape to my dream.$"

BattleFrontier_ScottsHouse_Text_263B29: @ 8263B29
	.string "On reflection, it was a terribly long\n"
	.string "journey…\p"
	.string "I left home alone on a quest to find\n"
	.string "strong TRAINERS.\p"
	.string "No one can imagine how much effort\n"
	.string "or time it took to make this real.$"

BattleFrontier_ScottsHouse_Text_263BD4: @ 8263BD4
	.string "But that’s all in the past.\n"
	.string "No point dwelling on that!\p"
	.string "All I want for you is to enjoy battling\n"
	.string "to your heart’s content here.\p"
	.string "{PLAYER}{KUN}, I want you to have this\n"
	.string "as a memento for all the time our\l"
	.string "paths crossed on our journeys.$"

BattleFrontier_ScottsHouse_Text_263CB0: @ 8263CB0
	.string "{PLAYER} obtained\n"
	.string "{STR_VAR_1} Battle Point(s).$"

BattleFrontier_ScottsHouse_Text_263CD0: @ 8263CD0
	.string "SCOTT: You can check your Battle\n"
	.string "Points on your FRONTIER PASS.\p"
	.string "The more success you have here at\n"
	.string "the BATTLE FRONTIER, the more Battle\l"
	.string "Points you will collect.\p"
	.string "Use your Battle Points the way you\n"
	.string "see fit, like trading them for items.$"

BattleFrontier_ScottsHouse_Text_263DB8: @ 8263DB8
	.string "I’m expecting great things from you!$"

BattleFrontier_ScottsHouse_Text_263DDD: @ 8263DDD
	.string "SCOTT: Every TRAINER is an individual.\n"
	.string "They all lead lives of their own.\p"
	.string "But when they’re in a battle,\n"
	.string "it doesn’t matter who they are.\p"
	.string "They’re all the same!\p"
	.string "I love the purity of battle,\n"
	.string "where everyone is equal.\p"
	.string "That’s why I go everywhere seeking\n"
	.string "TRAINERS who are serious about\l"
	.string "battling, and invite them here.$"

BattleFrontier_ScottsHouse_Text_263F12: @ 8263F12
	.string "SCOTT: Have you met any of\n"
	.string "the FRONTIER BRAINS?\p"
	.string "Better yet, have you obtained any\n"
	.string "symbols from them?\p"
	.string "I handpicked the FRONTIER BRAINS\n"
	.string "as the toughest TRAINERS anywhere.\p"
	.string "But I’m sure that seeing how tough\n"
	.string "you are will startle even them!$"

BattleFrontier_ScottsHouse_Text_263FFE: @ 8263FFE
	.string "SCOTT: You don’t just train for battle,\n"
	.string "right?\p"
	.string "I think I remember you working on\n"
	.string "a POKéDEX as well.\p"
	.string "Well, guess what?\p"
	.string "You may run into wild POKéMON in\n"
	.string "the BATTLE FRONTIER somewhere…\l"
	.string "Fufufu!$"

BattleFrontier_ScottsHouse_Text_2640BC: @ 82640BC
	.string "SCOTT: Are you enjoying things in\n"
	.string "the BATTLE FRONTIER?\p"
	.string "…Wait a second…\n"
	.string "Oh!\p"
	.string "Your FRONTIER PASS!\n"
	.string "You’ve collected the full set\l"
	.string "of silver symbols!\p"
	.string "That’s more than impressive!\n"
	.string "You are tough, just as I suspected!\p"
	.string "Normally, I wouldn’t do something\n"
	.string "like this, but this is a special time!\p"
	.string "I want you to have this.\n"
	.string "I’m sure you can put it to proper use.$"

BattleFrontier_ScottsHouse_Text_264216: @ 8264216
	.string "SCOTT: I hope you’re enjoying\n"
	.string "everything in the BATTLE FRONTIER.\p"
	.string "…Wait a second…\n"
	.string "Oh, my disbelieving eyes!\p"
	.string "Your FRONTIER PASS!\n"
	.string "You’ve gathered up the full set\l"
	.string "of gold symbols!\p"
	.string "That’s more than stupendous!\n"
	.string "You’re incredible, just as I suspected!\p"
	.string "… … … … … …\p"
	.string "{PLAYER}, you’ve got to accept this!\p"
	.string "I think you will be able to\n"
	.string "appreciate the value of my gift!$"

BattleFrontier_ScottsHouse_Text_264373: @ 8264373
	.string "I must say I have the gift of knowing\n"
	.string "a good TRAINER when I see one.\p"
	.string "I’m so glad I had the foresight to\n"
	.string "bring you here!$"

BattleFrontier_ScottsHouse_Text_2643EB: @ 82643EB
	.string "Your BERRY POCKET seems to\n"
	.string "be stuffed.$"

BattleFrontier_ScottsHouse_Text_264412: @ 8264412
	.string "SCOTT: Oh, I heard about you!\n"
	.string "How you ruled the BATTLE TOWER!\l"
	.string "You beat over 50 TRAINERS in a row?\p"
	.string "That’s fantastic!\n"
	.string "I want you to have this!$"

BattleFrontier_ScottsHouse_Text_26449F: @ 826449F
	.string "SCOTT: Oh, my! I heard about you!\n"
	.string "How you overwhelmed the BATTLE TOWER!\l"
	.string "You beat over 100 TRAINERS in a row?\p"
	.string "That’s ridiculously spectacular!\n"
	.string "You’ve got to have this!$"

BattleFrontier_ScottsHouse_Text_264546: @ 8264546
	.string "I’ll be expecting to hear even greater\n"
	.string "things about you now!$"

BattleFrontier_ScottsHouse_Text_264583: @ 8264583
	.string "Oops, well, if you have too much\n"
	.string "stuff, come back for this later.$"