2025-06-02 14:17:22 +08:00

300 lines
9.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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_TM_SNATCH, 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_TM_SNATCH, 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_SS_TIDAL_SCOTT, SSTidalCorridor_Movement_ScottApproachPlayer
waitmovement 0
applymovement LOCALID_PLAYER, Common_Movement_WalkInPlaceFasterRight
waitmovement 0
msgbox SSTidalCorridor_Text_ScottBattleFrontierInvite, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_PLAYER, SSTidalCorridor_Movement_PlayerWatchScottExit
applymovement LOCALID_SS_TIDAL_EXIT_SAILOR, SSTidalCorridor_Movement_SailorMoveForScott
applymovement LOCALID_SS_TIDAL_SCOTT, SSTidalCorridor_Movement_ScottExit
waitmovement 0
playse SE_EXIT
waitse
removeobject LOCALID_SS_TIDAL_SCOTT
applymovement LOCALID_SS_TIDAL_EXIT_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 "亚希达:哎呀呀!\n{PLAYER}{KUN}{PLAYER}{KUN}\p虽然我有事要临时下船\n但能见到你真是太高兴了!\p祝贺你成为联盟冠军\p有个地方我想邀请像你\n这样的人前往,\p那就是……\n对战开拓区!\p那是什么地方\n去了就知道啦!\p我已经和船长\n打过招呼了,\p你下次乘船的时候\n就可以直接前往\l对战开拓区了。\p就这样{PLAYER}{KUN}\n我在对战开拓区等你!$"
SSTidal_Text_FastCurrentsHopeYouEnjoyVoyage:
.string "本渡轮专为驶过急流\n而设计建造。\p我们希望能和您共度美好的旅程。\n请自由参观本船。$"
SSTidal_Text_HopeYouEnjoyVoyage:
.string "希望您能在本渡轮上\n度过美好的旅程。$"
SSTidal_Text_MadeLandInSlateport:
.string "我们已经到达凯那市。\n感谢您的乘坐。$"
SSTidal_Text_MadeLandInLilycove:
.string "我们已经到达水静市。\n感谢您的乘坐。$"
SSTidalCorridor_Text_CanRestInCabin2:
.string "船要过一会儿才能\n到达目的地,\p你可以在船舱里稍事休息。\n你的船舱号是2号\p那里的床很柔软舒适\n我保证你会感觉很舒服的!$"
SSTidalCorridor_Text_WeveArrived:
.string "我们到了!$"
SSTidalCorridor_Text_VisitOtherCabins:
.string "去其它船舱转转吧,\n厌烦了漫长旅程的训练家\l一个个都跃跃欲试。$"
SSTidalCorridor_Text_EnjoyYourCruise:
.string "旅途愉快!$"
SSTidalCorridor_Text_HorizonSpreadsBeyondPorthole:
.string "舷窗外地平线\n愈加宽广。$"
SSTidalCorridor_Text_BrineyWelcomeAboard:
.string "哈奇:欢迎上船,{PLAYER}{KUN}\p我被选作破浪号的\n荣誉船长了!\p现在你可以叫我哈奇船长了\p其实我本已是退休的人了\n但当我看见这艘雄伟的渡轮时……\p怎么说呢它唤醒了我心中的\n水手之魂!$"
SSTidalCorridor_Text_Peeko:
.string "小皮:皮可皮可……$"
SSTidalCorridor_Text_Cabin1:
.string "1号船舱$"
SSTidalCorridor_Text_Cabin2:
.string "2号船舱$"
SSTidalCorridor_Text_Cabin3:
.string "3号船舱$"
SSTidalCorridor_Text_Cabin4:
.string "4号船舱$"