summaryrefslogtreecommitdiff
path: root/data/scripts/maps/SSTidalCorridor.inc
blob: ad10e2669bd1953475e683e88fbaa23f99fc819f (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
SSTidalCorridor_MapScripts:: @ 823BFCF
	map_script 2, SSTidalCorridor_MapScript2_23BFD5
	.byte 0

SSTidalCorridor_MapScript2_23BFD5: @ 823BFD5
	map_script_2 VAR_0x40D4, 0, SSTidalCorridor_EventScript_23C219
	map_script_2 VAR_PORTHOLE, 1, SSTidalCorridor_EventScript_23BFFF
	map_script_2 VAR_PORTHOLE, 5, SSTidalCorridor_EventScript_23C015
	map_script_2 VAR_PORTHOLE, 9, SSTidalCorridor_EventScript_23C067
	map_script_2 VAR_PORTHOLE, 10, SSTidalCorridor_EventScript_23C07D
	.2byte 0

SSTidalCorridor_EventScript_23BFFF:: @ 823BFFF
	special SetSSTidalFlag
	setvar VAR_PORTHOLE, 2
	lockall
	playse SE_PINPON
	msgbox SSTidalCorridor_Text_23C462, 4
	releaseall
	end

SSTidalCorridor_EventScript_23C015:: @ 823C015
	setvar VAR_PORTHOLE, 6
	lockall
	playse SE_PINPON
	msgbox SSTidalCorridor_Text_23C4E3, 4
	releaseall
	end

SSTidalRooms_EventScript_23C028:: @ 823C028
	special SetSSTidalFlag
	setvar VAR_PORTHOLE, 7
	playse SE_PINPON
	msgbox SSTidalRooms_Text_23C462, 4
	return

SSTidalRooms_EventScript_23C03C:: @ 823C03C
	special ResetSSTidalFlag
	setvar VAR_PORTHOLE, 4
	playse SE_PINPON
	msgbox SSTidalRooms_Text_23C553, 4
	return

SSTidalCorridor_EventScript_23C050:: @ 823C050
	compare VAR_PORTHOLE, 2
	goto_eq SSTidalCorridor_EventScript_23C067
	compare VAR_PORTHOLE, 7
	goto_eq SSTidalCorridor_EventScript_23C07D
	end

SSTidalCorridor_EventScript_23C067:: @ 823C067
	special ResetSSTidalFlag
	setvar VAR_PORTHOLE, 3
	lockall
	playse SE_PINPON
	msgbox SSTidalCorridor_Text_23C4E3, 4
	releaseall
	end

SSTidalCorridor_EventScript_23C07D:: @ 823C07D
	special ResetSSTidalFlag
	setvar VAR_PORTHOLE, 8
	lockall
	playse SE_PINPON
	msgbox SSTidalCorridor_Text_23C50F, 4
	releaseall
	end

SSTidalRooms_EventScript_23C093:: @ 823C093
	special ResetSSTidalFlag
	setvar VAR_PORTHOLE, 8
	playse SE_PINPON
	msgbox SSTidalRooms_Text_23C50F, 4
	return

SSTidalRooms_EventScript_23C0A7:: @ 823C0A7
	switch VAR_PORTHOLE
	case 2, SSTidalRooms_EventScript_23C03C
	case 3, SSTidalRooms_EventScript_23C03C
	case 6, SSTidalRooms_EventScript_23C028
	case 7, SSTidalRooms_EventScript_23C093
	return

SSTidalCorridor_EventScript_23C0D9:: @ 823C0D9
	msgbox SSTidalCorridor_Text_23C6EC, 2
	end

SSTidalCorridor_EventScript_23C0E2:: @ 823C0E2
	lock
	faceplayer
	waitse
	playmoncry SPECIES_WINGULL, 0
	msgbox SSTidalCorridor_Text_23C7E1, 4
	waitmoncry
	release
	end

SSTidalCorridor_EventScript_23C0F5:: @ 823C0F5
	msgbox SSTidalCorridor_Text_23C7F8, 3
	end

SSTidalCorridor_EventScript_23C0FE:: @ 823C0FE
	msgbox SSTidalCorridor_Text_23C800, 3
	end

SSTidalCorridor_EventScript_23C107:: @ 823C107
	msgbox SSTidalCorridor_Text_23C808, 3
	end

SSTidalCorridor_EventScript_23C110:: @ 823C110
	msgbox SSTidalCorridor_Text_23C810, 3
	end

SSTidalCorridor_EventScript_23C119:: @ 823C119
	lock
	faceplayer
	compare VAR_PORTHOLE, 4
	goto_eq SSTidalCorridor_EventScript_23C13B
	compare VAR_PORTHOLE, 8
	goto_eq SSTidalCorridor_EventScript_23C15A
	msgbox SSTidalCorridor_Text_23C596, 4
	release
	end

SSTidalCorridor_EventScript_23C13B:: @ 823C13B
	setrespawn 8
	msgbox SSTidalCorridor_Text_23C64F, 4
	checkflag FLAG_0x104
	call_if 1, SSTidalCorridor_EventScript_23C179
	warp LILYCOVE_CITY_HARBOR, 255, 8, 11
	waitstate
	release
	end

SSTidalCorridor_EventScript_23C15A:: @ 823C15A
	setrespawn 4
	msgbox SSTidalCorridor_Text_23C64F, 4
	checkflag FLAG_0x104
	call_if 1, SSTidalCorridor_EventScript_23C179
	warp SLATEPORT_CITY_HARBOR, 255, 8, 11
	waitstate
	release
	end

SSTidalCorridor_EventScript_23C179:: @ 823C179
	setflag FLAG_0x3B7
	return

SSTidalCorridor_EventScript_23C17D:: @ 823C17D
	lockall
	compare VAR_PORTHOLE, 2
	goto_eq SSTidalCorridor_EventScript_23C19E
	compare VAR_PORTHOLE, 7
	goto_eq SSTidalCorridor_EventScript_23C19E
	msgbox SSTidalCorridor_Text_23C6C3, 4
	releaseall
	end

SSTidalCorridor_EventScript_23C19E:: @ 823C19E
	special sub_80FB7A4
	waitstate
	end

SSTidalCorridor_EventScript_23C1A3:: @ 823C1A3
	lock
	faceplayer
	checkflag FLAG_0x0F7
	goto_eq SSTidalCorridor_EventScript_23C1BD
	call SSTidalCorridor_EventScript_23C1C7
	msgbox SSTidalCorridor_Text_23C65E, 4
	release
	end

SSTidalCorridor_EventScript_23C1BD:: @ 823C1BD
	msgbox SSTidalCorridor_Text_23C6B0, 4
	release
	end

SSTidalCorridor_EventScript_23C1C7:: @ 823C1C7
	checktrainerflag TRAINER_PHILLIP
	goto_if 0, SSTidalCorridor_EventScript_23C218
	checktrainerflag TRAINER_LEONARD
	goto_if 0, SSTidalCorridor_EventScript_23C218
	checktrainerflag TRAINER_COLTON
	goto_if 0, SSTidalCorridor_EventScript_23C218
	checktrainerflag TRAINER_MICAH
	goto_if 0, SSTidalCorridor_EventScript_23C218
	checktrainerflag TRAINER_THOMAS
	goto_if 0, SSTidalCorridor_EventScript_23C218
	checktrainerflag TRAINER_LEA_AND_JED
	goto_if 0, SSTidalCorridor_EventScript_23C218
	checktrainerflag TRAINER_GARRET
	goto_if 0, SSTidalCorridor_EventScript_23C218
	checktrainerflag TRAINER_NAOMI
	goto_if 0, SSTidalCorridor_EventScript_23C218
	setflag FLAG_0x0F7
	goto SSTidalCorridor_EventScript_23C1BD
	return

SSTidalCorridor_EventScript_23C218:: @ 823C218
	return

SSTidalCorridor_EventScript_23C219:: @ 823C219
	lockall
	applymovement 5, SSTidalCorridor_Movement_23C26D
	waitmovement 0
	applymovement 255, SSTidalCorridor_Movement_2725A8
	waitmovement 0
	msgbox SSTidalCorridor_Text_23C28F, 4
	closemessage
	applymovement 255, SSTidalCorridor_Movement_23C27D
	applymovement 1, SSTidalCorridor_Movement_23C284
	applymovement 5, SSTidalCorridor_Movement_23C275
	waitmovement 0
	playse SE_KAIDAN
	waitse
	removeobject 5
	applymovement 1, SSTidalCorridor_Movement_23C28B
	waitmovement 0
	delay 30
	setflag FLAG_0x1D0
	setvar VAR_0x40D4, 1
	releaseall
	end

SSTidalCorridor_Movement_23C26D: @ 823C26D
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end

SSTidalCorridor_Movement_23C275: @ 823C275
	step_25
	step_14
	step_14
	step_14
	step_14
	step_down
	step_left
	step_end

SSTidalCorridor_Movement_23C27D: @ 823C27D
	step_14
	step_14
	step_14
	step_14
	step_13
	step_25
	step_end

SSTidalCorridor_Movement_23C284: @ 823C284
	step_14
	step_right
	step_right
	step_26
	step_14
	step_27
	step_end

SSTidalCorridor_Movement_23C28B: @ 823C28B
	step_left
	step_left
	step_26
	step_end

SSTidalCorridor_Text_23C28F: @ 823C28F
	.string "SCOTT: Well, hi, hi!\n"
	.string "{PLAYER}{KUN}, {PLAYER}{KUN}!\p"
	.string "Something’s come up, so I have to\n"
	.string "disembark, but am I glad to see you!\p"
	.string "Congratulations, LEAGUE CHAMPION!\p"
	.string "There’s a place I’d like to invite\n"
	.string "someone like you.\p"
	.string "It’s the…\n"
	.string "BATTLE FRONTIER!\p"
	.string "What’s the place like?\n"
	.string "You’ll understand when you see it!\p"
	.string "I’ve spoken with the ship’s CAPTAIN\n"
	.string "about this.\p"
	.string "The next time you take a ferry,\n"
	.string "you should be able to sail to\l"
	.string "the BATTLE FRONTIER.\p"
	.string "Okay, {PLAYER}{KUN}, I’ll be waiting for you\n"
	.string "at the BATTLE FRONTIER!$"

SSTidalCorridor_Text_23C462: @ 823C462
SSTidalRooms_Text_23C462: @ 823C462
	.string "This ferry is built to plow through\n"
	.string "fast-running currents.\p"
	.string "We hope you enjoy your voyage with us.\n"
	.string "Feel free to explore the ship.$"

SSTidalCorridor_Text_23C4E3: @ 823C4E3
	.string "We hope you enjoy your voyage on\n"
	.string "our ferry.$"

SSTidalCorridor_Text_23C50F: @ 823C50F
SSTidalRooms_Text_23C50F: @ 823C50F
	.string "We have made land in SLATEPORT CITY.\n"
	.string "Thank you for sailing with us.$"

SSTidalRooms_Text_23C553: @ 823C553
	.string "We have made land in LILYCOVE CITY.\n"
	.string "Thank you for sailing with us.$"

SSTidalCorridor_Text_23C596: @ 823C596
	.string "It’ll be some time before we make land,\n"
	.string "I reckon.\p"
	.string "You can rest up in your cabin if you’d\n"
	.string "like. Your cabin’s No. 2.\p"
	.string "The bed in there is soft and plushy.\n"
	.string "I can attest to how comfy it is!$"

SSTidalCorridor_Text_23C64F: @ 823C64F
	.string "We’ve arrived!$"

SSTidalCorridor_Text_23C65E: @ 823C65E
	.string "Go visit other cabins.\n"
	.string "TRAINERS bored of the boat trip will\l"
	.string "be itching to battle.$"

SSTidalCorridor_Text_23C6B0: @ 823C6B0
	.string "Enjoy your cruise!$"

SSTidalCorridor_Text_23C6C3: @ 823C6C3
	.string "The horizon spreads beyond\n"
	.string "the porthole.$"

SSTidalCorridor_Text_23C6EC: @ 823C6EC
	.string "MR. BRINEY: Welcome aboard, {PLAYER}{KUN}!\p"
	.string "They made me honorary captain of\n"
	.string "the S.S. TIDAL!\p"
	.string "You can call me CAPTAIN BRINEY now!\p"
	.string "You know, I retired once before,\n"
	.string "but when I saw this majestic ship…\p"
	.string "Let me just say, it stirred my sleeping\n"
	.string "soul as a sailor!$"

SSTidalCorridor_Text_23C7E1: @ 823C7E1
	.string "PEEKO: Pihyo pihyohyo…$"

SSTidalCorridor_Text_23C7F8: @ 823C7F8
	.string "Cabin 1$"

SSTidalCorridor_Text_23C800: @ 823C800
	.string "Cabin 2$"

SSTidalCorridor_Text_23C808: @ 823C808
	.string "Cabin 3$"

SSTidalCorridor_Text_23C810: @ 823C810
	.string "Cabin 4$"