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
|
.set LOCALID_SAILOR, 1
.set LOCALID_SCOTT, 5
SSTidalCorridor_MapScripts::
map_script MAP_SCRIPT_ON_FRAME_TABLE, SSTidalCorridor_OnFrame
.byte 0
SSTidalCorridor_OnFrame:
map_script_2 VAR_SS_TIDAL_SCOTT_STATE, 0, SSTidalCorridor_EventScript_ScottScene
map_script_2 VAR_SS_TIDAL_STATE, SS_TIDAL_BOARD_SLATEPORT, SSTidalCorridor_EventScript_DepartSlateportForLilycove
map_script_2 VAR_SS_TIDAL_STATE, SS_TIDAL_BOARD_LILYCOVE, SSTidalCorridor_EventScript_DepartLilycoveForSlateport
map_script_2 VAR_SS_TIDAL_STATE, SS_TIDAL_EXIT_CURRENTS_RIGHT, SSTidalCorridor_EventScript_HalfwayToLilycove
map_script_2 VAR_SS_TIDAL_STATE, SS_TIDAL_EXIT_CURRENTS_LEFT, SSTidalCorridor_EventScript_ArrivedInSlateport
.2byte 0
SSTidalCorridor_EventScript_DepartSlateportForLilycove::
special SetSSTidalFlag
setvar VAR_SS_TIDAL_STATE, SS_TIDAL_DEPART_SLATEPORT
lockall
playse SE_DING_DONG
msgbox SSTidal_Text_FastCurrentsHopeYouEnjoyVoyage, MSGBOX_DEFAULT
releaseall
end
SSTidalCorridor_EventScript_DepartLilycoveForSlateport::
setvar VAR_SS_TIDAL_STATE, SS_TIDAL_DEPART_LILYCOVE
lockall
playse SE_DING_DONG
msgbox SSTidal_Text_HopeYouEnjoyVoyage, MSGBOX_DEFAULT
releaseall
end
SSTidalRooms_EventScript_HalfwayToSlateport::
special SetSSTidalFlag
setvar VAR_SS_TIDAL_STATE, SS_TIDAL_HALFWAY_SLATEPORT
playse SE_DING_DONG
msgbox SSTidal_Text_FastCurrentsHopeYouEnjoyVoyage, MSGBOX_DEFAULT
return
SSTidalRooms_EventScript_ArrivedInLilycove::
special ResetSSTidalFlag
setvar VAR_SS_TIDAL_STATE, SS_TIDAL_LAND_LILYCOVE
playse SE_DING_DONG
msgbox SSTidal_Text_MadeLandInLilycove, MSGBOX_DEFAULT
return
SSTidalCorridor_EventScript_ReachedStepCount::
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_DEPART_SLATEPORT, SSTidalCorridor_EventScript_HalfwayToLilycove
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_HALFWAY_SLATEPORT, SSTidalCorridor_EventScript_ArrivedInSlateport
end
SSTidalCorridor_EventScript_HalfwayToLilycove::
special ResetSSTidalFlag
setvar VAR_SS_TIDAL_STATE, SS_TIDAL_HALFWAY_LILYCOVE
lockall
playse SE_DING_DONG
msgbox SSTidal_Text_HopeYouEnjoyVoyage, MSGBOX_DEFAULT
releaseall
end
SSTidalCorridor_EventScript_ArrivedInSlateport::
special ResetSSTidalFlag
setvar VAR_SS_TIDAL_STATE, SS_TIDAL_LAND_SLATEPORT
lockall
playse SE_DING_DONG
msgbox SSTidal_Text_MadeLandInSlateport, MSGBOX_DEFAULT
releaseall
end
SSTidalRooms_EventScript_ArrivedInSlateport::
special ResetSSTidalFlag
setvar VAR_SS_TIDAL_STATE, SS_TIDAL_LAND_SLATEPORT
playse SE_DING_DONG
msgbox SSTidal_Text_MadeLandInSlateport, MSGBOX_DEFAULT
return
SSTidalRooms_EventScript_ProgessCruiseAfterBed::
switch VAR_SS_TIDAL_STATE
case SS_TIDAL_DEPART_SLATEPORT, SSTidalRooms_EventScript_ArrivedInLilycove
case SS_TIDAL_HALFWAY_LILYCOVE, SSTidalRooms_EventScript_ArrivedInLilycove
case SS_TIDAL_DEPART_LILYCOVE, SSTidalRooms_EventScript_HalfwayToSlateport
case SS_TIDAL_HALFWAY_SLATEPORT, SSTidalRooms_EventScript_ArrivedInSlateport
return
SSTidalCorridor_EventScript_Briney::
msgbox SSTidalCorridor_Text_BrineyWelcomeAboard, MSGBOX_NPC
end
SSTidalCorridor_EventScript_Peeko::
lock
faceplayer
waitse
playmoncry SPECIES_WINGULL, CRY_MODE_NORMAL
msgbox SSTidalCorridor_Text_Peeko, MSGBOX_DEFAULT
waitmoncry
release
end
SSTidalCorridor_EventScript_Cabin1Sign::
msgbox SSTidalCorridor_Text_Cabin1, MSGBOX_SIGN
end
SSTidalCorridor_EventScript_Cabin2Sign::
msgbox SSTidalCorridor_Text_Cabin2, MSGBOX_SIGN
end
SSTidalCorridor_EventScript_Cabin3Sign::
msgbox SSTidalCorridor_Text_Cabin3, MSGBOX_SIGN
end
SSTidalCorridor_EventScript_Cabin4Sign::
msgbox SSTidalCorridor_Text_Cabin4, MSGBOX_SIGN
end
SSTidalCorridor_EventScript_ExitSailor::
lock
faceplayer
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_LAND_LILYCOVE, SSTidalCorridor_EventScript_ExitLilycove
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_LAND_SLATEPORT, SSTidalCorridor_EventScript_ExitSlateport
msgbox SSTidalCorridor_Text_CanRestInCabin2, MSGBOX_DEFAULT
release
end
SSTidalCorridor_EventScript_ExitLilycove::
setrespawn HEAL_LOCATION_LILYCOVE_CITY
msgbox SSTidalCorridor_Text_WeveArrived, MSGBOX_DEFAULT
call_if_set FLAG_RECEIVED_TM49, SSTidalCorridor_EventScript_HideSnatchGiver
warp MAP_LILYCOVE_CITY_HARBOR, 8, 11
waitstate
release
end
SSTidalCorridor_EventScript_ExitSlateport::
setrespawn HEAL_LOCATION_SLATEPORT_CITY
msgbox SSTidalCorridor_Text_WeveArrived, MSGBOX_DEFAULT
call_if_set FLAG_RECEIVED_TM49, SSTidalCorridor_EventScript_HideSnatchGiver
warp MAP_SLATEPORT_CITY_HARBOR, 8, 11
waitstate
release
end
SSTidalCorridor_EventScript_HideSnatchGiver::
setflag FLAG_HIDE_SS_TIDAL_ROOMS_SNATCH_GIVER
return
SSTidalCorridor_EventScript_Porthole::
lockall
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_DEPART_SLATEPORT, SSTidalCorridor_EventScript_LookThroughPorthole
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_HALFWAY_SLATEPORT, SSTidalCorridor_EventScript_LookThroughPorthole
msgbox SSTidalCorridor_Text_HorizonSpreadsBeyondPorthole, MSGBOX_DEFAULT
releaseall
end
SSTidalCorridor_EventScript_LookThroughPorthole::
special LookThroughPorthole
waitstate
end
SSTidalCorridor_EventScript_Sailor::
lock
faceplayer
goto_if_set FLAG_DEFEATED_SS_TIDAL_TRAINERS, SSTidalCorridor_EventScript_EnjoyYourCruise
call SSTidalCorridor_EventScript_CheckIfTrainersDefeated
msgbox SSTidalCorridor_Text_VisitOtherCabins, MSGBOX_DEFAULT
release
end
SSTidalCorridor_EventScript_EnjoyYourCruise::
msgbox SSTidalCorridor_Text_EnjoyYourCruise, MSGBOX_DEFAULT
release
end
SSTidalCorridor_EventScript_CheckIfTrainersDefeated::
goto_if_not_defeated TRAINER_PHILLIP, SSTidalCorridor_EventScript_TrainerNotDefeated
goto_if_not_defeated TRAINER_LEONARD, SSTidalCorridor_EventScript_TrainerNotDefeated
goto_if_not_defeated TRAINER_COLTON, SSTidalCorridor_EventScript_TrainerNotDefeated
goto_if_not_defeated TRAINER_MICAH, SSTidalCorridor_EventScript_TrainerNotDefeated
goto_if_not_defeated TRAINER_THOMAS, SSTidalCorridor_EventScript_TrainerNotDefeated
goto_if_not_defeated TRAINER_LEA_AND_JED, SSTidalCorridor_EventScript_TrainerNotDefeated
goto_if_not_defeated TRAINER_GARRET, SSTidalCorridor_EventScript_TrainerNotDefeated
goto_if_not_defeated TRAINER_NAOMI, SSTidalCorridor_EventScript_TrainerNotDefeated
setflag FLAG_DEFEATED_SS_TIDAL_TRAINERS
goto SSTidalCorridor_EventScript_EnjoyYourCruise
return
SSTidalCorridor_EventScript_TrainerNotDefeated::
return
SSTidalCorridor_EventScript_ScottScene::
lockall
applymovement LOCALID_SCOTT, SSTidalCorridor_Movement_ScottApproachPlayer
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterRight
waitmovement 0
msgbox SSTidalCorridor_Text_ScottBattleFrontierInvite, MSGBOX_DEFAULT
closemessage
applymovement OBJ_EVENT_ID_PLAYER, SSTidalCorridor_Movement_PlayerWatchScottExit
applymovement LOCALID_SAILOR, SSTidalCorridor_Movement_SailorMoveForScott
applymovement LOCALID_SCOTT, SSTidalCorridor_Movement_ScottExit
waitmovement 0
playse SE_EXIT
waitse
removeobject LOCALID_SCOTT
applymovement LOCALID_SAILOR, SSTidalCorridor_Movement_SailorReturn
waitmovement 0
delay 30
setflag FLAG_MET_SCOTT_ON_SS_TIDAL
setvar VAR_SS_TIDAL_SCOTT_STATE, 1
releaseall
end
SSTidalCorridor_Movement_ScottApproachPlayer:
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
step_end
SSTidalCorridor_Movement_ScottExit:
walk_in_place_faster_down
delay_16
delay_16
delay_16
delay_16
walk_down
walk_left
step_end
SSTidalCorridor_Movement_PlayerWatchScottExit:
delay_16
delay_16
delay_16
delay_16
delay_8
walk_in_place_faster_down
step_end
SSTidalCorridor_Movement_SailorMoveForScott:
delay_16
walk_right
walk_right
walk_in_place_faster_up
delay_16
walk_in_place_faster_left
step_end
SSTidalCorridor_Movement_SailorReturn:
walk_left
walk_left
walk_in_place_faster_up
step_end
SSTidalCorridor_Text_ScottBattleFrontierInvite:
.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!$"
SSTidal_Text_FastCurrentsHopeYouEnjoyVoyage:
.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.$"
SSTidal_Text_HopeYouEnjoyVoyage:
.string "We hope you enjoy your voyage on\n"
.string "our ferry.$"
SSTidal_Text_MadeLandInSlateport:
.string "We have made land in SLATEPORT CITY.\n"
.string "Thank you for sailing with us.$"
SSTidal_Text_MadeLandInLilycove:
.string "We have made land in LILYCOVE CITY.\n"
.string "Thank you for sailing with us.$"
SSTidalCorridor_Text_CanRestInCabin2:
.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_WeveArrived:
.string "We've arrived!$"
SSTidalCorridor_Text_VisitOtherCabins:
.string "Go visit other cabins.\n"
.string "TRAINERS bored of the boat trip will\l"
.string "be itching to battle.$"
SSTidalCorridor_Text_EnjoyYourCruise:
.string "Enjoy your cruise!$"
SSTidalCorridor_Text_HorizonSpreadsBeyondPorthole:
.string "The horizon spreads beyond\n"
.string "the porthole.$"
SSTidalCorridor_Text_BrineyWelcomeAboard:
.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_Peeko:
.string "PEEKO: Pihyo pihyohyo…$"
SSTidalCorridor_Text_Cabin1:
.string "Cabin 1$"
SSTidalCorridor_Text_Cabin2:
.string "Cabin 2$"
SSTidalCorridor_Text_Cabin3:
.string "Cabin 3$"
SSTidalCorridor_Text_Cabin4:
.string "Cabin 4$"
|