summaryrefslogtreecommitdiff
path: root/data/scripts/maps/SlateportCity_BattleTentLobby.inc
blob: ca51ab57e20a59c8d3685f65ffa1f9fe9a9dcd8a (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
SlateportCity_BattleTentLobby_MapScripts:: @ 8208730
	map_script 2, SlateportCity_BattleTentLobby_MapScript2_20874F
	map_script 4, SlateportCity_BattleTentLobby_MapScript2_20873B
	.byte 0

SlateportCity_BattleTentLobby_MapScript2_20873B: @ 820873B
	map_script_2 VAR_0x4001, 0, SlateportCity_BattleTentLobby_EventScript_208745
	.2byte 0

SlateportCity_BattleTentLobby_EventScript_208745:: @ 8208745
	setvar VAR_0x4001, 1
	turnobject 255, 2
	end

SlateportCity_BattleTentLobby_MapScript2_20874F: @ 820874F
	map_script_2 VAR_0x4000, 0, SlateportCity_BattleTentLobby_EventScript_208779
	map_script_2 VAR_0x4000, 1, SlateportCity_BattleTentLobby_EventScript_208782
	map_script_2 VAR_0x4000, 2, SlateportCity_BattleTentLobby_EventScript_208871
	map_script_2 VAR_0x4000, 3, SlateportCity_BattleTentLobby_EventScript_2087B7
	map_script_2 VAR_0x4000, 4, SlateportCity_BattleTentLobby_EventScript_208837
	.2byte 0

SlateportCity_BattleTentLobby_EventScript_208779:: @ 8208779
	setvar VAR_0x8004, 0
	special sub_81A1780
	end

SlateportCity_BattleTentLobby_EventScript_208782:: @ 8208782
	lockall
	msgbox SlateportCity_BattleTentLobby_Text_2C5DFA, 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

SlateportCity_BattleTentLobby_EventScript_2087B7:: @ 82087B7
	lockall
	message SlateportCity_BattleTentLobby_Text_2C5C6F
	waitmessage
	setvar VAR_0x8004, 4
	special sub_81B9D08
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_0x8004, 3
	setvar VAR_0x8005, 0
	special sub_81B9D08
	playse SE_SAVE
	waitse

SlateportCity_BattleTentLobby_EventScript_2087E9:: @ 82087E9
	msgbox SlateportCity_BattleTentLobby_Text_2C5D14, 4
	setvar VAR_0x8004, 5
	special sub_81B9D08
	switch VAR_RESULT
	case 0, SlateportCity_BattleTentLobby_EventScript_20882A
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 0
	special sub_81A1780
	message SlateportCity_BattleTentLobby_Text_23F68C
	waitmessage
	playfanfare MUS_FANFA4
	waitfanfare
	goto SlateportCity_BattleTentLobby_EventScript_208861

SlateportCity_BattleTentLobby_EventScript_20882A:: @ 820882A
	msgbox SlateportCity_BattleTentLobby_Text_2C5D52, 4
	goto SlateportCity_BattleTentLobby_EventScript_208861

SlateportCity_BattleTentLobby_EventScript_208837:: @ 8208837
	lockall
	message SlateportCity_BattleTentLobby_Text_2C5BA2
	waitmessage
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_0x8004, 3
	setvar VAR_0x8005, 0
	special sub_81B9D08
	playse SE_SAVE
	waitse

SlateportCity_BattleTentLobby_EventScript_208861:: @ 8208861
	msgbox SlateportCity_BattleTentLobby_Text_2C5AA5, 4
	closemessage
	setvar VAR_0x4000, 255
	releaseall
	end

SlateportCity_BattleTentLobby_EventScript_208871:: @ 8208871
	lockall
	message SlateportCity_BattleTentLobby_Text_2C5DA7
	waitmessage
	setvar VAR_0x8004, 3
	setvar VAR_0x8005, 1
	special sub_81B9D08
	playse SE_SAVE
	waitse
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 3
	setvar VAR_0x8006, 0
	special sub_81A1780
	setvar VAR_0x4000, 255
	setvar VAR_0x8006, 2
	goto SlateportCity_BattleTentLobby_EventScript_2089AC

SlateportCity_BattleTentLobby_EventScript_2088AA:: @ 82088AA
	lock
	faceplayer
	setvar VAR_0x8004, 1
	special sub_81B9D08
	compare VAR_RESULT, 0
	goto_if 5, SlateportCity_BattleTentLobby_EventScript_2087E9
	special copy_player_party_to_sav1
	msgbox SlateportCity_BattleTentLobby_Text_2C5810, 4

SlateportCity_BattleTentLobby_EventScript_2088CA:: @ 82088CA
	message SlateportCity_BattleTentLobby_Text_2C586A
	waitmessage
	multichoice 17, 6, 23, 0
	switch VAR_RESULT
	case 0, SlateportCity_BattleTentLobby_EventScript_208906
	case 1, SlateportCity_BattleTentLobby_EventScript_208A07
	case 2, SlateportCity_BattleTentLobby_EventScript_208A2E
	case 127, SlateportCity_BattleTentLobby_EventScript_208A2E

SlateportCity_BattleTentLobby_EventScript_208906:: @ 8208906
	setvar VAR_FRONTIER_FACILITY, 4
	setvar VAR_0x40CE, 0
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 2
	special sub_81A1780
	msgbox SlateportCity_BattleTentLobby_Text_2C5B06, 5
	switch VAR_RESULT
	case 0, SlateportCity_BattleTentLobby_EventScript_208A2B
	case 1, SlateportCity_BattleTentLobby_EventScript_208950
	case 127, SlateportCity_BattleTentLobby_EventScript_208A2B

SlateportCity_BattleTentLobby_EventScript_208950:: @ 8208950
	setvar VAR_0x4000, 0
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 4
	special sub_81A1780
	setvar VAR_0x8004, 0
	special sub_81B9D08
	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
	closemessage
	delay 2
	call SlateportCity_BattleTentLobby_EventScript_27134F
	setvar VAR_0x4000, 255
	compare VAR_RESULT, 0
	goto_eq SlateportCity_BattleTentLobby_EventScript_208A14
	setvar VAR_0x8006, 0

SlateportCity_BattleTentLobby_EventScript_2089AC:: @ 82089AC
	msgbox SlateportCity_BattleTentLobby_Text_2C5B8C, 4
	closemessage
	call SlateportCity_BattleTentLobby_EventScript_2089C9
	warp SLATEPORT_CITY_BATTLE_TENT_CORRIDOR, 255, 2, 7
	setvar VAR_0x4000, 0
	waitstate
	end

SlateportCity_BattleTentLobby_EventScript_2089C9:: @ 82089C9
	applymovement 1, SlateportCity_BattleTentLobby_Movement_2089F8
	applymovement 255, SlateportCity_BattleTentLobby_Movement_2089FF
	waitmovement 0
	opendoor 6, 1
	waitdooranim
	applymovement 1, SlateportCity_BattleTentLobby_Movement_2089FC
	applymovement 255, SlateportCity_BattleTentLobby_Movement_208A03
	waitmovement 0
	closedoor 6, 1
	waitdooranim
	return

SlateportCity_BattleTentLobby_Movement_2089F8: @ 82089F8
	step_up
	step_up
	step_up
	step_end

SlateportCity_BattleTentLobby_Movement_2089FC: @ 82089FC
	step_up
	step_54
	step_end

SlateportCity_BattleTentLobby_Movement_2089FF: @ 82089FF
	step_up
	step_up
	step_up
	step_end

SlateportCity_BattleTentLobby_Movement_208A03: @ 8208A03
	step_up
	step_up
	step_54
	step_end

SlateportCity_BattleTentLobby_EventScript_208A07:: @ 8208A07
	msgbox SlateportCity_BattleTentLobby_Text_2C589C, 4
	goto SlateportCity_BattleTentLobby_EventScript_2088CA

SlateportCity_BattleTentLobby_EventScript_208A14:: @ 8208A14
	setvar VAR_0x8004, 2
	setvar VAR_0x8005, 0
	setvar VAR_0x8006, 0
	special sub_81A1780
	goto SlateportCity_BattleTentLobby_EventScript_208A2E

SlateportCity_BattleTentLobby_EventScript_208A2B:: @ 8208A2B
	special copy_player_party_from_sav1

SlateportCity_BattleTentLobby_EventScript_208A2E:: @ 8208A2E
	msgbox SlateportCity_BattleTentLobby_Text_2C5AA5, 4
	release
	end

SlateportCity_BattleTentLobby_Movement_208A38:: @ 8208A38
	step_up
	step_up
	step_up
	step_54
	step_end

SlateportCity_BattleTentLobby_EventScript_208A3D:: @ 8208A3D
	lock
	faceplayer
	checkflag FLAG_0x109
	goto_eq SlateportCity_BattleTentLobby_EventScript_208A74
	msgbox SlateportCity_BattleTentLobby_Text_208B4E, 4
	giveitem_std ITEM_TM41
	compare VAR_RESULT, 0
	goto_eq SlateportCity_BattleTentLobby_EventScript_272054
	setflag FLAG_0x109
	msgbox SlateportCity_BattleTentLobby_Text_208C5C, 4
	release
	end

SlateportCity_BattleTentLobby_EventScript_208A74:: @ 8208A74
	msgbox SlateportCity_BattleTentLobby_Text_208C5C, 4
	release
	end

SlateportCity_BattleTentLobby_EventScript_208A7E:: @ 8208A7E
	msgbox SlateportCity_BattleTentLobby_Text_208D27, 2
	end

SlateportCity_BattleTentLobby_EventScript_208A87:: @ 8208A87
	msgbox SlateportCity_BattleTentLobby_Text_208DA6, 2
	end

SlateportCity_BattleTentLobby_EventScript_208A90:: @ 8208A90
	msgbox SlateportCity_BattleTentLobby_Text_208DF1, 2
	end

SlateportCity_BattleTentLobby_EventScript_208A99:: @ 8208A99
	lockall
	msgbox SlateportCity_BattleTentLobby_Text_259721, 4
	goto SlateportCity_BattleTentLobby_EventScript_208AA8
	end

SlateportCity_BattleTentLobby_EventScript_208AA8:: @ 8208AA8
	message SlateportCity_BattleTentLobby_Text_259743
	waitmessage
	multichoice 17, 0, 111, 0
	switch VAR_RESULT
	case 0, SlateportCity_BattleTentLobby_EventScript_208B06
	case 1, SlateportCity_BattleTentLobby_EventScript_208B14
	case 2, SlateportCity_BattleTentLobby_EventScript_208B22
	case 3, SlateportCity_BattleTentLobby_EventScript_208B30
	case 4, SlateportCity_BattleTentLobby_EventScript_208B3E
	case 5, SlateportCity_BattleTentLobby_EventScript_208B4C
	case 127, SlateportCity_BattleTentLobby_EventScript_208B4C
	end

SlateportCity_BattleTentLobby_EventScript_208B06:: @ 8208B06
	msgbox SlateportCity_BattleTentLobby_Text_2C5F08, 4
	goto SlateportCity_BattleTentLobby_EventScript_208AA8
	end

SlateportCity_BattleTentLobby_EventScript_208B14:: @ 8208B14
	msgbox SlateportCity_BattleTentLobby_Text_2C5F9D, 4
	goto SlateportCity_BattleTentLobby_EventScript_208AA8
	end

SlateportCity_BattleTentLobby_EventScript_208B22:: @ 8208B22
	msgbox SlateportCity_BattleTentLobby_Text_2C6020, 4
	goto SlateportCity_BattleTentLobby_EventScript_208AA8
	end

SlateportCity_BattleTentLobby_EventScript_208B30:: @ 8208B30
	msgbox SlateportCity_BattleTentLobby_Text_2C60C0, 4
	goto SlateportCity_BattleTentLobby_EventScript_208AA8
	end

SlateportCity_BattleTentLobby_EventScript_208B3E:: @ 8208B3E
	msgbox SlateportCity_BattleTentLobby_Text_2C61FE, 4
	goto SlateportCity_BattleTentLobby_EventScript_208AA8
	end

SlateportCity_BattleTentLobby_EventScript_208B4C:: @ 8208B4C
	releaseall
	end

SlateportCity_BattleTentLobby_Text_208B4E: @ 8208B4E
	.string "So, like, I couldn’t find myself any\n"
	.string "POKéMON that were, like, for me.\p"
	.string "So, I figured, like, hey, I should file\n"
	.string "a complaint to the guy there?\p"
	.string "And he wouldn’t hear me out, like, hey!\n"
	.string "So, like, total bummer, man!\p"
	.string "Hey, like, you! Zip it, you know?\n"
	.string "Just, you know, take this!$"

SlateportCity_BattleTentLobby_Text_208C5C: @ 8208C5C
	.string "That’s, like, TM41, you know?\n"
	.string "Hey, it’s TORMENT, you hearing me?\p"
	.string "Like, it won’t let the other guy\n"
	.string "use the same move twice in a row, see?\p"
	.string "Hey, now, you listen here, like,\n"
	.string "I’m not laying a torment on you!$"

SlateportCity_BattleTentLobby_Text_208D27: @ 8208D27
	.string "I don’t really like BUG POKéMON,\n"
	.string "but maybe I’ll try using some for\l"
	.string "a change of pace.\p"
	.string "Who knows, I might even get to like\n"
	.string "them!$"

SlateportCity_BattleTentLobby_Text_208DA6: @ 8208DA6
	.string "You can battle all you want here even\n"
	.string "if you don’t have any tough POKéMON.$"

SlateportCity_BattleTentLobby_Text_208DF1: @ 8208DF1
	.string "Wouldn’t it be nice if they had more of\n"
	.string "a selection?$"