pokeemerald/data/maps/BirthIsland_Harbor/scripts.inc

31 lines
788 B
PHP
Raw Normal View History

.set LOCALID_SAILOR, 1
.set LOCALID_SS_TIDAL, 2
2017-11-10 02:21:31 +01:00
BirthIsland_Harbor_MapScripts:: @ 826805C
.byte 0
2019-10-31 22:00:37 +01:00
BirthIsland_Harbor_EventScript_Sailor:: @ 826805D
2017-11-10 02:21:31 +01:00
lock
faceplayer
msgbox BirthIsland_Harbor_Text_SailorReturn, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2019-10-31 22:00:37 +01:00
goto_if_eq BirthIsland_Harbor_EventScript_AsYouLike
msgbox EventTicket_Text_SailHome, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-10-06 19:55:30 +02:00
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 30
hideobjectat LOCALID_SAILOR, MAP_BIRTH_ISLAND_HARBOR
setvar VAR_0x8004, LOCALID_SS_TIDAL
2019-10-31 22:00:37 +01:00
call Common_EventScript_FerryDepartIsland
warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
2017-11-10 02:21:31 +01:00
waitstate
release
end
2019-10-31 22:00:37 +01:00
BirthIsland_Harbor_EventScript_AsYouLike:: @ 82680A2
msgbox EventTicket_Text_AsYouLike, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end