summaryrefslogtreecommitdiff
path: root/data/scripts/maps/VerdanturfTown_BattleTentLobby.inc
blob: a7f496820d1ccef10fd220049ef6bce1f38aa953 (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
VerdanturfTown_BattleTentLobby_MapScripts:: @ 82016D0
	map_script 2, VerdanturfTown_BattleTentLobby_MapScript2_2016EF
	map_script 4, VerdanturfTown_BattleTentLobby_MapScript2_2016DB
	.byte 0

VerdanturfTown_BattleTentLobby_MapScript2_2016DB: @ 82016DB
	map_script_2 VAR_0x4001, 0, VerdanturfTown_BattleTentLobby_EventScript_2016E5
	.2byte 0

VerdanturfTown_BattleTentLobby_EventScript_2016E5:: @ 82016E5
	setvar VAR_0x4001, 1
	turnobject 255, 2
	end

VerdanturfTown_BattleTentLobby_MapScript2_2016EF: @ 82016EF
	map_script_2 VAR_0x4000, 0, VerdanturfTown_BattleTentLobby_EventScript_201719
	map_script_2 VAR_0x4000, 1, VerdanturfTown_BattleTentLobby_EventScript_201722
	map_script_2 VAR_0x4000, 2, VerdanturfTown_BattleTentLobby_EventScript_201837
	map_script_2 VAR_0x4000, 3, VerdanturfTown_BattleTentLobby_EventScript_201757
	map_script_2 VAR_0x4000, 4, VerdanturfTown_BattleTentLobby_EventScript_2017FD
	.2byte 0

VerdanturfTown_BattleTentLobby_EventScript_201719:: @ 8201719
	setvar VAR_0x8004, 0
	special sub_81A1780
	end

VerdanturfTown_BattleTentLobby_EventScript_201722:: @ 8201722
	lockall
	msgbox VerdanturfTown_BattleTentLobby_Text_24E636, 4
	closemessage
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_0x4000, 255
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 0
	special sub_81A1780
	releaseall
	end

VerdanturfTown_BattleTentLobby_EventScript_201757:: @ 8201757
	lockall
	msgbox VerdanturfTown_BattleTentLobby_Text_2C5731, 4
	message VerdanturfTown_BattleTentLobby_Text_2C5791
	waitmessage
	setvar VAR_0x8004, 6
	special sub_81B99B4
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_0x8004, 5
	setvar VAR_0x8005, 0
	special sub_81B99B4
	playse SE_SAVE
	waitse

VerdanturfTown_BattleTentLobby_EventScript_201791:: @ 8201791
	msgbox VerdanturfTown_BattleTentLobby_Text_2C57CD, 4
	setvar VAR_0x8004, 7
	special sub_81B99B4
	switch VAR_RESULT
	case 0, VerdanturfTown_BattleTentLobby_EventScript_2017DD
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 0
	special sub_81A1780
	message VerdanturfTown_BattleTentLobby_Text_24A554
	waitmessage
	playfanfare MUS_FANFA4
	waitfanfare
	msgbox VerdanturfTown_BattleTentLobby_Text_2C539A, 4
	closemessage
	setvar VAR_0x4000, 255
	releaseall
	end

VerdanturfTown_BattleTentLobby_EventScript_2017DD:: @ 82017DD
	msgbox VerdanturfTown_BattleTentLobby_Text_24E57B, 4
	waitmessage
	closemessage
	setvar VAR_0x4000, 255
	releaseall
	end

VerdanturfTown_BattleTentLobby_EventScript_2017EE:: @ 82017EE
	lockall
	msgbox VerdanturfTown_BattleTentLobby_Text_2C5731, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201791
	end

VerdanturfTown_BattleTentLobby_EventScript_2017FD:: @ 82017FD
	lockall
	message VerdanturfTown_BattleTentLobby_Text_2C56B8
	waitmessage
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_0x8004, 5
	setvar VAR_0x8005, 0
	special sub_81B99B4
	playse SE_SAVE
	waitse
	msgbox VerdanturfTown_BattleTentLobby_Text_2C539A, 4
	closemessage
	setvar VAR_0x4000, 255
	releaseall
	end

VerdanturfTown_BattleTentLobby_EventScript_201837:: @ 8201837
	lockall
	msgbox VerdanturfTown_BattleTentLobby_Text_24E5D8, 4
	message VerdanturfTown_BattleTentLobby_Text_24E5F6
	waitmessage
	setvar VAR_0x8004, 5
	setvar VAR_0x8005, 1
	special sub_81B99B4
	playse SE_SAVE
	waitse
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 3
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_0x4000, 255
	goto VerdanturfTown_BattleTentLobby_EventScript_2019AE

VerdanturfTown_BattleTentLobby_EventScript_201873:: @ 8201873
	lock
	faceplayer
	setvar VAR_0x8004, 1
	special sub_81B99B4
	compare VAR_RESULT, 0
	goto_if 5, VerdanturfTown_BattleTentLobby_EventScript_2017EE
	special copy_player_party_to_sav1
	msgbox VerdanturfTown_BattleTentLobby_Text_2C50C3, 4

VerdanturfTown_BattleTentLobby_EventScript_201893:: @ 8201893
	message VerdanturfTown_BattleTentLobby_Text_2C5129
	waitmessage
	multichoice 17, 6, 23, 0
	switch VAR_RESULT
	case 0, VerdanturfTown_BattleTentLobby_EventScript_2018CF
	case 1, VerdanturfTown_BattleTentLobby_EventScript_2019DB
	case 2, VerdanturfTown_BattleTentLobby_EventScript_201A37
	case 127, VerdanturfTown_BattleTentLobby_EventScript_201A37

VerdanturfTown_BattleTentLobby_EventScript_2018CF:: @ 82018CF
	setvar VAR_FRONTIER_FACILITY, 2
	setvar VAR_0x40CE, 0
	setvar VAR_RESULT, 2
	setvar VAR_0x8004, 15
	special sub_81A1780
	compare VAR_0x8004, 1
	goto_eq VerdanturfTown_BattleTentLobby_EventScript_2019E8
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 2
	special sub_81A1780
	msgbox VerdanturfTown_BattleTentLobby_Text_2C5633, 4
	fadescreen 1
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 3
	special sub_80F9490
	waitstate
	compare VAR_RESULT, 0
	goto_eq VerdanturfTown_BattleTentLobby_EventScript_201A34
	msgbox VerdanturfTown_BattleTentLobby_Text_2C5662, 5
	switch VAR_RESULT
	case 0, VerdanturfTown_BattleTentLobby_EventScript_201A34
	case 1, VerdanturfTown_BattleTentLobby_EventScript_201954
	case 127, VerdanturfTown_BattleTentLobby_EventScript_201A34

VerdanturfTown_BattleTentLobby_EventScript_201954:: @ 8201954
	setvar VAR_0x4000, 0
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 4
	special sub_81A1780
	setvar VAR_0x8004, 0
	special sub_81B99B4
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 1
	special sub_81A1780
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 3
	setvar VAR_0x8006, 0
	special sub_81A1780
	special copy_player_party_from_sav1
	closemessage
	delay 2
	call VerdanturfTown_BattleTentLobby_EventScript_27134F
	setvar VAR_0x4000, 255
	compare VAR_RESULT, 0
	goto_eq VerdanturfTown_BattleTentLobby_EventScript_201A1D

VerdanturfTown_BattleTentLobby_EventScript_2019AE:: @ 82019AE
	special copy_player_party_to_sav1
	setvar VAR_0x8004, 3
	setvar VAR_0x8005, 3
	special sub_81A1780
	msgbox VerdanturfTown_BattleTentLobby_Text_2C56A2, 4
	closemessage
	call VerdanturfTown_BattleTentLobby_EventScript_201A41
	warp VERDANTURF_TOWN_BATTLE_TENT_CORRIDOR, 255, 2, 7
	setvar VAR_0x4000, 0
	waitstate
	end

VerdanturfTown_BattleTentLobby_EventScript_2019DB:: @ 82019DB
	msgbox VerdanturfTown_BattleTentLobby_Text_2C5163, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201893

VerdanturfTown_BattleTentLobby_EventScript_2019E8:: @ 82019E8
	switch VAR_RESULT
	case 0, VerdanturfTown_BattleTentLobby_EventScript_201A03
	case 1, VerdanturfTown_BattleTentLobby_EventScript_201A10

VerdanturfTown_BattleTentLobby_EventScript_201A03:: @ 8201A03
	msgbox VerdanturfTown_BattleTentLobby_Text_2C543D, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201A3F

VerdanturfTown_BattleTentLobby_EventScript_201A10:: @ 8201A10
	msgbox VerdanturfTown_BattleTentLobby_Text_2C5538, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201A3F

VerdanturfTown_BattleTentLobby_EventScript_201A1D:: @ 8201A1D
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 0
	special sub_81A1780
	goto VerdanturfTown_BattleTentLobby_EventScript_201A37

VerdanturfTown_BattleTentLobby_EventScript_201A34:: @ 8201A34
	special copy_player_party_from_sav1

VerdanturfTown_BattleTentLobby_EventScript_201A37:: @ 8201A37
	msgbox VerdanturfTown_BattleTentLobby_Text_2C539A, 4

VerdanturfTown_BattleTentLobby_EventScript_201A3F:: @ 8201A3F
	release
	end

VerdanturfTown_BattleTentLobby_EventScript_201A41:: @ 8201A41
	applymovement 1, VerdanturfTown_BattleTentLobby_Movement_201A70
	applymovement 255, VerdanturfTown_BattleTentLobby_Movement_201A70
	waitmovement 0
	opendoor 6, 1
	waitdooranim
	applymovement 1, VerdanturfTown_BattleTentLobby_Movement_201A74
	applymovement 255, VerdanturfTown_BattleTentLobby_Movement_201A77
	waitmovement 0
	closedoor 6, 1
	waitdooranim
	return

VerdanturfTown_BattleTentLobby_Movement_201A70: @ 8201A70
	step_up
	step_up
	step_up
	step_end

VerdanturfTown_BattleTentLobby_Movement_201A74: @ 8201A74
	step_up
	step_54
	step_end

VerdanturfTown_BattleTentLobby_Movement_201A77: @ 8201A77
	step_up
	step_up
	step_54
	step_end

VerdanturfTown_BattleTentLobby_EventScript_201A7B:: @ 8201A7B
	lock
	faceplayer
	checkflag FLAG_0x0EB
	goto_eq VerdanturfTown_BattleTentLobby_EventScript_201AB2
	msgbox VerdanturfTown_BattleTentLobby_Text_201D9E, 4
	giveitem_std ITEM_TM45
	compare VAR_RESULT, 0
	goto_eq VerdanturfTown_BattleTentLobby_EventScript_272054
	setflag FLAG_0x0EB
	msgbox VerdanturfTown_BattleTentLobby_Text_201E43, 4
	release
	end

VerdanturfTown_BattleTentLobby_EventScript_201AB2:: @ 8201AB2
	msgbox VerdanturfTown_BattleTentLobby_Text_201E43, 4
	release
	end

VerdanturfTown_BattleTentLobby_EventScript_201ABC:: @ 8201ABC
	msgbox VerdanturfTown_BattleTentLobby_Text_201EB1, 2
	end

VerdanturfTown_BattleTentLobby_EventScript_201AC5:: @ 8201AC5
	lock
	msgbox VerdanturfTown_BattleTentLobby_Text_201BD4, 4
	release
	end

VerdanturfTown_BattleTentLobby_EventScript_201AD0:: @ 8201AD0
	lock
	faceplayer
	checkflag FLAG_0x1CC
	goto_eq VerdanturfTown_BattleTentLobby_EventScript_201AED
	msgbox VerdanturfTown_BattleTentLobby_Text_201F3F, 4
	addvar VAR_0x40D1, 1
	setflag FLAG_0x1CC
	release
	end

VerdanturfTown_BattleTentLobby_EventScript_201AED:: @ 8201AED
	msgbox VerdanturfTown_BattleTentLobby_Text_202025, 4
	release
	end

VerdanturfTown_BattleTentLobby_EventScript_201AF7:: @ 8201AF7
	lock
	msgbox VerdanturfTown_BattleTentLobby_Text_201D11, 4
	release
	end

VerdanturfTown_BattleTentLobby_EventScript_201B02:: @ 8201B02
	lockall
	msgbox VerdanturfTown_BattleTentLobby_Text_2C6878, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201B11
	end

VerdanturfTown_BattleTentLobby_EventScript_201B11:: @ 8201B11
	message VerdanturfTown_BattleTentLobby_Text_24EF88
	waitmessage
	setvar VAR_0x8004, 12
	special sub_813A128
	waitstate
	switch VAR_RESULT
	case 0, VerdanturfTown_BattleTentLobby_EventScript_201B7E
	case 1, VerdanturfTown_BattleTentLobby_EventScript_201B8C
	case 2, VerdanturfTown_BattleTentLobby_EventScript_201B9A
	case 3, VerdanturfTown_BattleTentLobby_EventScript_201BA8
	case 4, VerdanturfTown_BattleTentLobby_EventScript_201BB6
	case 5, VerdanturfTown_BattleTentLobby_EventScript_201BC4
	case 6, VerdanturfTown_BattleTentLobby_EventScript_201BD2
	case 127, VerdanturfTown_BattleTentLobby_EventScript_201BD2
	end

VerdanturfTown_BattleTentLobby_EventScript_201B7E:: @ 8201B7E
	msgbox VerdanturfTown_BattleTentLobby_Text_2C67CD, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201B11
	end

VerdanturfTown_BattleTentLobby_EventScript_201B8C:: @ 8201B8C
	msgbox VerdanturfTown_BattleTentLobby_Text_24EFAB, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201B11
	end

VerdanturfTown_BattleTentLobby_EventScript_201B9A:: @ 8201B9A
	msgbox VerdanturfTown_BattleTentLobby_Text_24F049, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201B11
	end

VerdanturfTown_BattleTentLobby_EventScript_201BA8:: @ 8201BA8
	msgbox VerdanturfTown_BattleTentLobby_Text_24F190, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201B11
	end

VerdanturfTown_BattleTentLobby_EventScript_201BB6:: @ 8201BB6
	msgbox VerdanturfTown_BattleTentLobby_Text_24F2E8, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201B11
	end

VerdanturfTown_BattleTentLobby_EventScript_201BC4:: @ 8201BC4
	msgbox VerdanturfTown_BattleTentLobby_Text_24F3F4, 4
	goto VerdanturfTown_BattleTentLobby_EventScript_201B11
	end

VerdanturfTown_BattleTentLobby_EventScript_201BD2:: @ 8201BD2
	releaseall
	end

VerdanturfTown_BattleTentLobby_Text_201BD4: @ 8201BD4
	.string "If it doesn’t like a certain move,\n"
	.string "a POKéMON will be reluctant to use it.\p"
	.string "It doesn’t matter how strong it is,\n"
	.string "either.\p"
	.string "For example, a POKéMON with a GENTLE\n"
	.string "nature probably won’t enjoy hurting\l"
	.string "its opponents.\p"
	.string "If it can’t seem to live up to its\n"
	.string "potential, it’s probably failing at\l"
	.string "using a disliked move against its will.$"

VerdanturfTown_BattleTentLobby_Text_201D11: @ 8201D11
	.string "My big sister is gentle usually.\n"
	.string "But when she gets angry,\l"
	.string "she’s really, really scary!\p"
	.string "I bet a gentle POKéMON will be scary\n"
	.string "if it gets angry!$"

VerdanturfTown_BattleTentLobby_Text_201D9E: @ 8201D9E
	.string "My feelings toward my POKéMON…\n"
	.string "The attraction runs deep…\p"
	.string "Oh, hi, you didn’t see that, did you?\n"
	.string "Well, it doesn’t matter.\p"
	.string "How would you like this TM for\n"
	.string "your POKéMON?$"

VerdanturfTown_BattleTentLobby_Text_201E43: @ 8201E43
	.string "My feelings toward my POKéMON…\n"
	.string "I’m sure the attraction is mutual!\p"
	.string "They battle exactly the way I want\n"
	.string "them to!$"

VerdanturfTown_BattleTentLobby_Text_201EB1: @ 8201EB1
	.string "What kind of moves have you taught\n"
	.string "your POKéMON?\p"
	.string "I think you would give yourself\n"
	.string "an advantage if they knew how to\l"
	.string "heal or protect themselves.$"

VerdanturfTown_BattleTentLobby_Text_201F3F: @ 8201F3F
	.string "SCOTT: Hey there, {PLAYER}{KUN}!\n"
	.string "I thought I might see you here.\p"
	.string "A BATTLE TENT’s a place where\n"
	.string "you can meet tough TRAINERS.\p"
	.string "It doesn’t matter what the rules are,\n"
	.string "or how battles are waged, either.\p"
	.string "{PLAYER}{KUN}, I expect you to do\n"
	.string "the best you can!$"

VerdanturfTown_BattleTentLobby_Text_202025: @ 8202025
	.string "SCOTT: I visit here regularly in hopes\n"
	.string "of seeing tough TRAINERS in action\l"
	.string "in whatever the situation.$"