mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-29 13:50:42 +01:00
50 lines
1.2 KiB
PHP
50 lines
1.2 KiB
PHP
.set LOCALID_SAILOR, 1
|
|
.set LOCALID_SS_TIDAL, 2
|
|
|
|
FarawayIsland_Entrance_MapScripts::
|
|
map_script MAP_SCRIPT_ON_TRANSITION, FarawayIsland_Entrance_OnTransition
|
|
.byte 0
|
|
|
|
FarawayIsland_Entrance_OnTransition:
|
|
setflag FLAG_ARRIVED_ON_FARAWAY_ISLAND
|
|
end
|
|
|
|
FarawayIsland_Entrance_EventScript_SetCloudsWeather::
|
|
setweather WEATHER_SUNNY_CLOUDS
|
|
doweather
|
|
end
|
|
|
|
FarawayIsland_Entrance_EventScript_ClearWeather::
|
|
setweather WEATHER_NONE
|
|
doweather
|
|
end
|
|
|
|
FarawayIsland_Entrance_EventScript_Sailor::
|
|
lock
|
|
faceplayer
|
|
msgbox FarawayIsland_Entrance_Text_SailorReturn, MSGBOX_YESNO
|
|
compare VAR_RESULT, NO
|
|
goto_if_eq FarawayIsland_Entrance_EventScript_AsYouLike
|
|
msgbox EventTicket_Text_SailHome, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
|
|
waitmovement 0
|
|
delay 30
|
|
hideobjectat LOCALID_SAILOR, MAP_FARAWAY_ISLAND_ENTRANCE
|
|
setvar VAR_0x8004, LOCALID_SS_TIDAL
|
|
call Common_EventScript_FerryDepartIsland
|
|
warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
|
|
waitstate
|
|
release
|
|
end
|
|
|
|
FarawayIsland_Entrance_EventScript_AsYouLike::
|
|
msgbox EventTicket_Text_AsYouLike, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
FarawayIsland_Entrance_EventScript_Sign::
|
|
msgbox FarawayIsland_Entrance_Text_Sign, MSGBOX_SIGN
|
|
end
|
|
|