pokeemerald/data/maps/FarawayIsland_Entrance/scripts.inc

49 lines
1.2 KiB
PHP
Raw Normal View History

.set LOCALID_SAILOR, 1
.set LOCALID_SS_TIDAL, 2
2021-07-20 21:18:31 +02:00
FarawayIsland_Entrance_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, FarawayIsland_Entrance_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
FarawayIsland_Entrance_OnTransition:
2019-01-02 22:12:43 +01:00
setflag FLAG_ARRIVED_ON_FARAWAY_ISLAND
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
FarawayIsland_Entrance_EventScript_SetCloudsWeather::
2019-12-02 01:19:47 +01:00
setweather WEATHER_SUNNY_CLOUDS
2017-11-10 02:21:31 +01:00
doweather
end
2021-07-20 21:18:31 +02:00
FarawayIsland_Entrance_EventScript_ClearWeather::
2018-12-24 22:23:58 +01:00
setweather WEATHER_NONE
2017-11-10 02:21:31 +01:00
doweather
end
2021-07-20 21:18:31 +02:00
FarawayIsland_Entrance_EventScript_Sailor::
2017-11-10 02:21:31 +01:00
lock
faceplayer
msgbox FarawayIsland_Entrance_Text_SailorReturn, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, FarawayIsland_Entrance_EventScript_AsYouLike
msgbox EventTicket_Text_SailHome, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFasterDown
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 30
hideobjectat LOCALID_SAILOR, MAP_FARAWAY_ISLAND_ENTRANCE
setvar VAR_0x8004, LOCALID_SS_TIDAL
2019-10-31 22:00:37 +01:00
call Common_EventScript_FerryDepartIsland
warp MAP_LILYCOVE_CITY_HARBOR, 8, 11
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
FarawayIsland_Entrance_EventScript_AsYouLike::
msgbox EventTicket_Text_AsYouLike, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
FarawayIsland_Entrance_EventScript_Sign::
msgbox FarawayIsland_Entrance_Text_Sign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end