pokeemerald/data/maps/SouthernIsland_Exterior/scripts.inc
2019-04-04 19:34:35 -05:00

56 lines
1.5 KiB
PHP

SouthernIsland_Exterior_MapScripts:: @ 82429C8
map_script MAP_SCRIPT_ON_TRANSITION, SouthernIsland_Exterior_OnTransition
.byte 0
SouthernIsland_Exterior_OnTransition: @ 82429CE
setflag FLAG_LANDMARK_SOUTHERN_ISLAND
end
SouthernIsland_Exterior_EventScript_2429D2:: @ 82429D2
lock
faceplayer
msgbox SouthernIsland_Exterior_Text_2A69F1, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq SouthernIsland_Exterior_EventScript_242A17
msgbox SouthernIsland_Exterior_Text_2A6A5D, MSGBOX_DEFAULT
closemessage
applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
waitmovement 0
delay 30
hideobjectat 1, MAP_SOUTHERN_ISLAND_EXTERIOR
setvar VAR_0x8004, 2
call SouthernIsland_Exterior_EventScript_272250
warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
waitstate
release
end
SouthernIsland_Exterior_EventScript_242A17:: @ 8242A17
msgbox SouthernIsland_Exterior_Text_2A6A82, MSGBOX_DEFAULT
release
end
BattleFrontier_OutsideWest_EventScript_242A21:: @ 8242A21
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_OutsideWest_Movement_242A37
waitmovement 0
return
BattleFrontier_OutsideWest_EventScript_242A2C:: @ 8242A2C
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_OutsideWest_Movement_242A39
waitmovement 0
return
BattleFrontier_OutsideWest_Movement_242A37: @ 8242A37
walk_down
step_end
BattleFrontier_OutsideWest_Movement_242A39: @ 8242A39
walk_left
walk_in_place_fastest_down
step_end
SouthernIsland_Exterior_EventScript_242A3C:: @ 8242A3C
msgbox SouthernIsland_Exterior_Text_2A6AD5, MSGBOX_SIGN
end