pokeemerald/data/maps/LilycoveCity_Harbor/scripts.inc

593 lines
19 KiB
PHP
Raw Normal View History

.set LOCALID_ATTENDANT, 1
.set LOCALID_SS_TIDAL, 2
.set LOCALID_FERRY_SAILOR, 4
.set LOCALID_BRINEY, 5
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_Harbor_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_OnTransition:
setescapewarp MAP_LILYCOVE_CITY, 12, 33
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_FerryAttendant::
2017-11-10 02:21:31 +01:00
lock
faceplayer
goto_if_unset FLAG_SYS_GAME_CLEAR, LilycoveCity_Harbor_EventScript_FerryUnavailable
call LilycoveCity_Harbor_EventScript_GetEonTicketState
call LilycoveCity_Harbor_EventScript_GetAuroraTicketState
call LilycoveCity_Harbor_EventScript_GetOldSeaMapState
call LilycoveCity_Harbor_EventScript_GetMysticTicketState
call LilycoveCity_Harbor_EventScript_GetFirstTimeShowingTicket
call LilycoveCity_Harbor_EventScript_GetHasTicketsState
goto_if_eq VAR_TEMP_C, 2, LilycoveCity_Harbor_EventScript_OldSeaMapFirstTime
goto_if_eq VAR_TEMP_B, 1, LilycoveCity_Harbor_EventScript_EonTicketFirstTime
goto_if_eq VAR_TEMP_B, 2, LilycoveCity_Harbor_EventScript_AuroraTicketFirstTime
goto_if_eq VAR_TEMP_B, 4, LilycoveCity_Harbor_EventScript_OldSeaMapFirstTime
goto_if_eq VAR_TEMP_B, 8, LilycoveCity_Harbor_EventScript_MysticTicketFirstTime
goto_if_ne VAR_TEMP_B, 0, LilycoveCity_Harbor_EventScript_MultipleEventTicketsFirstTime
goto LilycoveCity_Harbor_EventScript_NoFirstTimeEventTickets
2017-11-10 02:21:31 +01:00
end
@ First goto_if_eq is unnecessary; identical scripts
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_NoFirstTimeEventTickets::
goto_if_eq VAR_TEMP_A, 0, LilycoveCity_Harbor_EventScript_NoEventTickets
msgbox LilycoveCity_Harbor_Text_MayISeeYourTicket, MSGBOX_DEFAULT
message LilycoveCity_Harbor_Text_FlashTicketWhereTo
2017-11-10 02:21:31 +01:00
waitmessage
goto LilycoveCity_Harbor_EventScript_FerryRegularLocationSelect
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_FerryRegularLocationSelect::
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 0
special ScriptMenu_CreateLilycoveSSTidalMultichoice
2017-11-10 02:21:31 +01:00
waitstate
special GetLilycoveSSTidalSelection
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, LilycoveCity_Harbor_EventScript_GoToSlateport
case 1, LilycoveCity_Harbor_EventScript_GoToBattleFrontier
case 2, LilycoveCity_Harbor_EventScript_GoToSouthernIsland
case 3, LilycoveCity_Harbor_EventScript_GoToNavelRock
case 4, LilycoveCity_Harbor_EventScript_GoToBirthIsland
case 5, LilycoveCity_Harbor_EventScript_GoToFarawayIsland
case 6, LilycoveCity_Harbor_EventScript_ExitSailSelect
case MULTI_B_PRESSED, LilycoveCity_Harbor_EventScript_ExitSailSelect
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToSouthernIsland::
call LilycoveCity_Harbor_EventScript_BoardFerry
warp MAP_SOUTHERN_ISLAND_EXTERIOR, 13, 22
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToNavelRock::
call LilycoveCity_Harbor_EventScript_BoardFerry
warp MAP_NAVEL_ROCK_HARBOR, 8, 4
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToBirthIsland::
call LilycoveCity_Harbor_EventScript_BoardFerry
warp MAP_BIRTH_ISLAND_HARBOR, 8, 4
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToFarawayIsland::
call LilycoveCity_Harbor_EventScript_BoardFerry
warp MAP_FARAWAY_ISLAND_ENTRANCE, 13, 38
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToSlateport::
msgbox LilycoveCity_Harbor_Text_SlateportItIs, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LilycoveCity_Harbor_EventScript_FerryDestinationChangeMind
2019-11-08 09:37:46 +01:00
setvar VAR_SS_TIDAL_STATE, SS_TIDAL_BOARD_LILYCOVE
call LilycoveCity_Harbor_EventScript_BoardFerry
warp MAP_SS_TIDAL_CORRIDOR, 1, 10
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToBattleFrontier::
msgbox LilycoveCity_Harbor_Text_BattleFrontierItIs, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LilycoveCity_Harbor_EventScript_FerryDestinationChangeMind
call LilycoveCity_Harbor_EventScript_BoardFerry
warp MAP_BATTLE_FRONTIER_OUTSIDE_WEST, 19, 67
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GetEonTicketState::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_E, 0
2020-03-03 07:36:20 +01:00
goto_if_unset FLAG_ENABLE_SHIP_SOUTHERN_ISLAND, Common_EventScript_NopReturn
2021-08-05 18:46:11 +02:00
checkitem ITEM_EON_TICKET
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_NopReturn
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_E, 1
2020-03-03 07:36:20 +01:00
goto_if_set FLAG_SHOWN_EON_TICKET, Common_EventScript_NopReturn
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_E, 2
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GetAuroraTicketState::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_D, 0
2019-02-23 02:21:26 +01:00
goto_if_unset FLAG_ENABLE_SHIP_BIRTH_ISLAND, Common_EventScript_NopReturn
2021-08-05 18:46:11 +02:00
checkitem ITEM_AURORA_TICKET
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_NopReturn
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_D, 1
2020-03-03 07:36:20 +01:00
goto_if_set FLAG_SHOWN_AURORA_TICKET, Common_EventScript_NopReturn
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_D, 2
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GetOldSeaMapState::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_C, 0
2019-02-23 02:21:26 +01:00
goto_if_unset FLAG_ENABLE_SHIP_FARAWAY_ISLAND, Common_EventScript_NopReturn
2021-08-05 18:46:11 +02:00
checkitem ITEM_OLD_SEA_MAP
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_NopReturn
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_C, 1
2020-03-03 07:36:20 +01:00
goto_if_set FLAG_SHOWN_OLD_SEA_MAP, Common_EventScript_NopReturn
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_C, 2
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GetMysticTicketState::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_9, 0
2019-02-23 02:21:26 +01:00
goto_if_unset FLAG_ENABLE_SHIP_NAVEL_ROCK, Common_EventScript_NopReturn
2021-08-05 18:46:11 +02:00
checkitem ITEM_MYSTIC_TICKET
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_NopReturn
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_9, 1
2020-03-03 07:36:20 +01:00
goto_if_set FLAG_SHOWN_MYSTIC_TICKET, Common_EventScript_NopReturn
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_9, 2
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GetFirstTimeShowingTicket::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_B, 0
call_if_eq VAR_TEMP_E, 2, LilycoveCity_Harbor_EventScript_SetFirstTimeShowingEonTicket
call_if_eq VAR_TEMP_D, 2, LilycoveCity_Harbor_EventScript_SetFirstTimeShowingAuroraTicket
call_if_eq VAR_TEMP_C, 2, LilycoveCity_Harbor_EventScript_SetFirstTimeShowingOldSeaMap
call_if_eq VAR_TEMP_9, 2, LilycoveCity_Harbor_EventScript_SetFirstTimeShowingMysticTicket
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_SetFirstTimeShowingEonTicket::
2018-05-19 18:02:43 +02:00
addvar VAR_TEMP_B, 1
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_SetFirstTimeShowingAuroraTicket::
2018-05-19 18:02:43 +02:00
addvar VAR_TEMP_B, 2
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_SetFirstTimeShowingOldSeaMap::
2018-05-19 18:02:43 +02:00
addvar VAR_TEMP_B, 4
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_SetFirstTimeShowingMysticTicket::
2018-05-19 18:02:43 +02:00
addvar VAR_TEMP_B, 8
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GetHasTicketsState::
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_A, 0
call_if_eq VAR_TEMP_E, 1, LilycoveCity_Harbor_EventScript_SetHasEonTicket
call_if_eq VAR_TEMP_D, 1, LilycoveCity_Harbor_EventScript_SetHasAuroraTicket
call_if_eq VAR_TEMP_C, 1, LilycoveCity_Harbor_EventScript_SetHasOldSeaMap
call_if_eq VAR_TEMP_9, 1, LilycoveCity_Harbor_EventScript_SetHasMysticTicket
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_SetHasEonTicket::
2018-05-19 18:02:43 +02:00
addvar VAR_TEMP_A, 1
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_SetHasAuroraTicket::
2018-05-19 18:02:43 +02:00
addvar VAR_TEMP_A, 2
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_SetHasOldSeaMap::
2018-05-19 18:02:43 +02:00
addvar VAR_TEMP_A, 4
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_SetHasMysticTicket::
2018-05-19 18:02:43 +02:00
addvar VAR_TEMP_A, 8
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_EonTicketFirstTime::
2020-03-03 07:36:20 +01:00
setflag FLAG_SHOWN_EON_TICKET
msgbox EventTicket_Text_ThatPass, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call LilycoveCity_Harbor_EventScript_GetEventTicketSailor
msgbox EventTicket_Text_ShowEonTicket, MSGBOX_DEFAULT
goto LilycoveCity_Harbor_EventScript_GoToSouthernIslandFirstTime
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToSouthernIslandFirstTime::
2017-11-10 02:21:31 +01:00
closemessage
call LilycoveCity_Harbor_EventScript_BoardFerryWithSailor
warp MAP_SOUTHERN_ISLAND_EXTERIOR, 13, 22
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_AuroraTicketFirstTime::
2020-03-03 07:36:20 +01:00
setflag FLAG_SHOWN_AURORA_TICKET
msgbox EventTicket_Text_ThatPass, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call LilycoveCity_Harbor_EventScript_GetEventTicketSailor
msgbox EventTicket_Text_OddTicketGetOnBoard, MSGBOX_DEFAULT
goto LilycoveCity_Harbor_EventScript_GoToBirthIslandFirstTime
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToBirthIslandFirstTime::
2017-11-10 02:21:31 +01:00
closemessage
call LilycoveCity_Harbor_EventScript_BoardFerryWithSailor
warp MAP_BIRTH_ISLAND_HARBOR, 8, 4
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_OldSeaMapFirstTime::
2020-03-03 07:36:20 +01:00
setflag FLAG_SHOWN_OLD_SEA_MAP
msgbox EventTicket_Text_ShowOldSeaMap, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call LilycoveCity_Harbor_EventScript_GetEventTicketSailor
msgbox EventTicket_Text_OldSeaMapTooFar, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_FERRY_SAILOR, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
playse SE_PIN
applymovement LOCALID_FERRY_SAILOR, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_FERRY_SAILOR, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
call_if_eq VAR_FACING, DIR_NORTH, LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayNorth
call_if_eq VAR_FACING, DIR_EAST, LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayEast
addobject LOCALID_BRINEY
call_if_eq VAR_FACING, DIR_NORTH, LilycoveCity_Harbor_EventScript_BrineyFaceSailorNorth
call_if_eq VAR_FACING, DIR_EAST, LilycoveCity_Harbor_EventScript_BrineyFaceSailorEast
msgbox EventTicket_Text_BrineyHoldOnASecond, MSGBOX_DEFAULT
call_if_eq VAR_FACING, DIR_NORTH, LilycoveCity_Harbor_EventScript_BrineyFacePlayerNorth
call_if_eq VAR_FACING, DIR_EAST, LilycoveCity_Harbor_EventScript_BrineyFacePlayerEast
msgbox EventTicket_Text_BrineyLetsSail, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call_if_eq VAR_FACING, DIR_NORTH, LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorNorth
call_if_eq VAR_FACING, DIR_EAST, LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorEast
setvar VAR_0x8004, LOCALID_SS_TIDAL
call Common_EventScript_FerryDepart
warp MAP_FARAWAY_ISLAND_ENTRANCE, 13, 38
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToFarawayIslandFirstTime::
2017-11-10 02:21:31 +01:00
closemessage
call LilycoveCity_Harbor_EventScript_BoardFerryWithSailor
warp MAP_FARAWAY_ISLAND_ENTRANCE, 13, 38
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_MysticTicketFirstTime::
2020-03-03 07:36:20 +01:00
setflag FLAG_SHOWN_MYSTIC_TICKET
msgbox EventTicket_Text_ThatPass, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call LilycoveCity_Harbor_EventScript_GetEventTicketSailor
msgbox EventTicket_Text_OddTicketGetOnBoard, MSGBOX_DEFAULT
goto LilycoveCity_Harbor_EventScript_GoToNavelRockFirstTime
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToNavelRockFirstTime::
2017-11-10 02:21:31 +01:00
closemessage
call LilycoveCity_Harbor_EventScript_BoardFerryWithSailor
warp MAP_NAVEL_ROCK_HARBOR, 8, 4
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_MultipleEventTicketsFirstTime::
msgbox EventTicket_Text_ThatPass, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call LilycoveCity_Harbor_EventScript_GetEventTicketSailor
message EventTicket_Text_OddTicketsWhereTo
2017-11-10 02:21:31 +01:00
waitmessage
setvar VAR_0x8004, 1
special ScriptMenu_CreateLilycoveSSTidalMultichoice
2017-11-10 02:21:31 +01:00
waitstate
special GetLilycoveSSTidalSelection
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 2, LilycoveCity_Harbor_EventScript_GoToSouthernIslandFirstTime
case 3, LilycoveCity_Harbor_EventScript_GoToNavelRockFirstTime
case 4, LilycoveCity_Harbor_EventScript_GoToBirthIslandFirstTime
case 5, LilycoveCity_Harbor_EventScript_GoToFarawayIslandFirstTime
case 6, LilycoveCity_Harbor_EventScript_ExitFirstTimeTicketSailSelect
case MULTI_B_PRESSED, LilycoveCity_Harbor_EventScript_ExitFirstTimeTicketSailSelect
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_ExitFirstTimeTicketSailSelect::
msgbox EventTicket_Text_AsYouLike, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_FERRY_SAILOR, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 30
removeobject LOCALID_FERRY_SAILOR
2017-11-10 02:21:31 +01:00
delay 30
applymovement LOCALID_ATTENDANT, Common_Movement_WalkInPlaceFasterDown
2017-11-10 02:21:31 +01:00
waitmovement 0
showobjectat LOCALID_ATTENDANT, MAP_LILYCOVE_CITY_HARBOR
2017-11-10 02:21:31 +01:00
delay 30
msgbox LilycoveCity_Harbor_Text_SailAnotherTime, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GetEventTicketSailor::
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 30
hideobjectat VAR_LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR
2017-11-10 02:21:31 +01:00
delay 60
addobject LOCALID_FERRY_SAILOR
2017-11-10 02:21:31 +01:00
delay 30
applymovement LOCALID_FERRY_SAILOR, Common_Movement_FacePlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_BoardFerryWithSailor::
applymovement LOCALID_FERRY_SAILOR, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 30
removeobject LOCALID_FERRY_SAILOR
call_if_eq VAR_FACING, DIR_NORTH, LilycoveCity_Harbor_EventScript_PlayerBoardFerryNorth
call_if_eq VAR_FACING, DIR_EAST, LilycoveCity_Harbor_EventScript_PlayerBoardFerryEast
2017-11-10 02:21:31 +01:00
delay 30
hideobjectat OBJ_EVENT_ID_PLAYER, 0
setvar VAR_0x8004, LOCALID_SS_TIDAL
call Common_EventScript_FerryDepart
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_FerryUnavailable::
msgbox LilycoveCity_Harbor_Text_FerryUnavailable, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_NoEventTickets::
msgbox LilycoveCity_Harbor_Text_MayISeeYourTicket, MSGBOX_DEFAULT
message LilycoveCity_Harbor_Text_FlashTicketWhereTo
2017-11-10 02:21:31 +01:00
waitmessage
goto LilycoveCity_Harbor_EventScript_FerryRegularLocationSelect
2017-11-10 02:21:31 +01:00
end
@ Unused
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_NoTicket::
msgbox LilycoveCity_Harbor_Text_NoTicket, MSGBOX_DEFAULT
release
end
@ Unused
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToSlateportUnused::
msgbox LilycoveCity_Harbor_Text_SlateportItIs, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LilycoveCity_Harbor_EventScript_FerryDestinationChangeMind
2019-11-08 09:37:46 +01:00
setvar VAR_SS_TIDAL_STATE, SS_TIDAL_BOARD_LILYCOVE
call LilycoveCity_Harbor_EventScript_BoardFerry
warp MAP_SS_TIDAL_CORRIDOR, 1, 10
waitstate
release
end
@ Unused
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_GoToBattleFrontierUnused::
msgbox LilycoveCity_Harbor_Text_BattleFrontierItIs, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LilycoveCity_Harbor_EventScript_FerryDestinationChangeMind
call LilycoveCity_Harbor_EventScript_BoardFerry
warp MAP_BATTLE_FRONTIER_OUTSIDE_WEST, 19, 67
waitstate
release
end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_FerryDestinationChangeMind::
message LilycoveCity_Harbor_Text_WhereWouldYouLikeToGo
2017-11-10 02:21:31 +01:00
waitmessage
goto LilycoveCity_Harbor_EventScript_FerryRegularLocationSelect
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_BoardFerry::
msgbox LilycoveCity_Harbor_Text_PleaseBoard, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFasterUp
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 30
hideobjectat VAR_LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR
call_if_eq VAR_FACING, DIR_NORTH, LilycoveCity_Harbor_EventScript_PlayerBoardFerryNorth
call_if_eq VAR_FACING, DIR_EAST, LilycoveCity_Harbor_EventScript_PlayerBoardFerryEast
2017-11-10 02:21:31 +01:00
delay 30
hideobjectat OBJ_EVENT_ID_PLAYER, 0
setvar VAR_0x8004, LOCALID_SS_TIDAL
call Common_EventScript_FerryDepart
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_PlayerBoardFerryEast::
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_Harbor_Movement_PlayerBoardFerryEast
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_PlayerBoardFerryNorth::
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_Harbor_Movement_PlayerBoardFerryNorth
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_ExitSailSelect::
msgbox LilycoveCity_Harbor_Text_SailAnotherTime, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_PlayerBoardFerryEast:
walk_right
walk_in_place_faster_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_PlayerBoardFerryNorth:
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_UnusedBoardFerry:
walk_up
step_end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_Sailor::
2017-11-10 02:21:31 +01:00
lock
faceplayer
goto_if_set FLAG_SYS_GAME_CLEAR, LilycoveCity_Harbor_EventScript_SailorFerryAvailable
msgbox LilycoveCity_Harbor_Text_SailorFerryUnavailable, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_SailorFerryAvailable::
msgbox LilycoveCity_Harbor_Text_SailorFerryAvailable, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayNorth::
applymovement LOCALID_FERRY_SAILOR, LilycoveCity_Harbor_Movement_SailorOutOfWayNorth
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_MoveSailorOutOfWayEast::
applymovement LOCALID_FERRY_SAILOR, LilycoveCity_Harbor_Movement_SailorOutOfWayEast
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_SailorOutOfWayNorth:
walk_in_place_faster_right
lock_facing_direction
walk_left
unlock_facing_direction
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_SailorOutOfWayEast:
lock_facing_direction
walk_down
unlock_facing_direction
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_BrineyFaceSailorNorth::
applymovement LOCALID_BRINEY, Common_Movement_WalkInPlaceFasterLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_BrineyFaceSailorEast::
applymovement LOCALID_BRINEY, Common_Movement_WalkInPlaceFasterDown
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_BrineyFacePlayerNorth::
applymovement LOCALID_BRINEY, Common_Movement_WalkInPlaceFasterDown
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_BrineyFacePlayerEast::
applymovement LOCALID_BRINEY, Common_Movement_WalkInPlaceFasterLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorNorth::
applymovement LOCALID_BRINEY, LilycoveCity_Harbor_Movement_BrineyBoardFerry
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_Harbor_Movement_PlayerBoardWithBrineyNorth
applymovement LOCALID_FERRY_SAILOR, LilycoveCity_Harbor_Movement_SailorBoardWithBrineyNorth
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_EventScript_BoardFerryWithBrineyAndSailorEast::
applymovement LOCALID_BRINEY, LilycoveCity_Harbor_Movement_BrineyBoardFerry
applymovement OBJ_EVENT_ID_PLAYER, LilycoveCity_Harbor_Movement_PlayerBoardWithBrineyEast
applymovement LOCALID_FERRY_SAILOR, LilycoveCity_Harbor_Movement_SailorBoardWithBrineyEast
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_BrineyBoardFerry:
walk_in_place_faster_up
delay_8
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_PlayerBoardWithBrineyNorth:
delay_16
walk_up
delay_16
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_SailorBoardWithBrineyNorth:
delay_16
delay_16
delay_16
walk_right
walk_in_place_faster_up
delay_16
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_PlayerBoardWithBrineyEast:
delay_16
walk_right
walk_in_place_faster_up
delay_16
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Movement_SailorBoardWithBrineyEast:
delay_16
delay_16
delay_16
walk_up
delay_16
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_FerryUnavailable:
2017-11-10 02:21:31 +01:00
.string "I beg your pardon?\n"
2018-12-07 16:41:08 +01:00
.string "You're looking for a ship?\p"
.string "I'm sorry, the ferry service isn't\n"
2017-11-10 02:21:31 +01:00
.string "available at present…$"
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_MayISeeYourTicket:
2017-11-10 02:21:31 +01:00
.string "Hello, are you here for the ferry?\n"
.string "May I see your TICKET?$"
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_NoTicket:
2018-12-07 16:41:08 +01:00
.string "{PLAYER} doesn't have the TICKET…\p"
.string "I'm terribly sorry.\p"
.string "You must have a TICKET to board\n"
.string "the ferry.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_FlashTicketWhereTo:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} flashed the TICKET.\p"
2018-12-07 16:41:08 +01:00
.string "Perfect! That's all you need!\p"
2017-11-10 02:21:31 +01:00
.string "And where would you like to go?$"
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_SailAnotherTime:
2017-11-10 02:21:31 +01:00
.string "Please sail with us another time!$"
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_SlateportItIs:
2017-11-10 02:21:31 +01:00
.string "SLATEPORT CITY it is, then!$"
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_BattleFrontierItIs:
2017-11-10 02:21:31 +01:00
.string "BATTLE FRONTIER it is, then!$"
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_PleaseBoard:
2017-11-10 02:21:31 +01:00
.string "Please board the ferry and wait for\n"
.string "departure.$"
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_WhereWouldYouLikeToGo:
2017-11-10 02:21:31 +01:00
.string "Then, where would you like to go?$"
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_SailorFerryUnavailable:
2017-11-10 02:21:31 +01:00
.string "Until they finish making the ferry,\n"
.string "we sailors have nothing to do…\p"
2018-12-07 16:41:08 +01:00
.string "I wish they'd get a move on, the folks\n"
2017-11-10 02:21:31 +01:00
.string "at the SHIPYARD in SLATEPORT.$"
2021-07-20 21:18:31 +02:00
LilycoveCity_Harbor_Text_SailorFerryAvailable:
2017-11-10 02:21:31 +01:00
.string "The ferry S.S. TIDAL is finally in\n"
.string "operation.\p"
.string "The folks at the SHIPYARD in SLATEPORT\n"
2018-12-07 16:41:08 +01:00
.string "must've worked extra hard.\p"
.string "Well, it's my turn to get busy now!$"