pokeemerald/data/maps/SafariZone_South/scripts.inc

155 lines
4.4 KiB
PHP
Raw Normal View History

.set LOCALID_ATTENDANT, 1
2017-11-10 02:21:31 +01:00
SafariZone_South_MapScripts:: @ 823D279
map_script MAP_SCRIPT_ON_TRANSITION, SafariZone_South_OnTransition
2019-10-20 09:46:05 +02:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, SafariZone_South_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2019-10-20 09:46:05 +02:00
SafariZone_South_OnFrame: @ 823D284
map_script_2 VAR_SAFARI_ZONE_STATE, 2, SafariZone_South_EventScript_EnterSafariZone
2017-11-10 02:21:31 +01:00
.2byte 0
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_EnterSafariZone:: @ 823D28E
2017-11-10 02:21:31 +01:00
lockall
applymovement OBJ_EVENT_ID_PLAYER, SafariZone_South_Movement_PlayerEnter
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ATTENDANT, SafariZone_South_Movement_ExitAttendantBlockDoor
2017-11-10 02:21:31 +01:00
waitmovement 0
setobjectxyperm LOCALID_ATTENDANT, 32, 34
2019-02-22 10:18:43 +01:00
setvar VAR_SAFARI_ZONE_STATE, 0
2017-11-10 02:21:31 +01:00
releaseall
end
SafariZone_South_OnTransition: @ 823D2B1
2019-02-22 10:18:43 +01:00
compare VAR_SAFARI_ZONE_STATE, 2
2019-10-20 09:46:05 +02:00
call_if_eq SafariZone_South_EventScript_SetExitAttendantAside
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_SetExitAttendantAside:: @ 823D2BD
setobjectxyperm LOCALID_ATTENDANT, 31, 34
2017-11-10 02:21:31 +01:00
return
2019-10-20 09:46:05 +02:00
SafariZone_South_Movement_PlayerEnter: @ 823D2C5
walk_down
2017-11-10 02:21:31 +01:00
step_end
2019-10-20 09:46:05 +02:00
SafariZone_South_Movement_ExitAttendantBlockDoor: @ 823D2C7
walk_right
walk_in_place_fastest_down
2017-11-10 02:21:31 +01:00
step_end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_Boy:: @ 823D2CA
msgbox SafariZone_South_Text_Boy, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_Man:: @ 823D2D3
msgbox SafariZone_South_Text_Man, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_Youngster:: @ 823D2DC
msgbox SafariZone_South_Text_Youngster, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_ExitAttendant:: @ 823D2E5
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-10-20 09:46:05 +02:00
goto_if_unset FLAG_GOOD_LUCK_SAFARI_ZONE, SafariZone_South_EventScript_GoodLuck
msgbox SafariZone_South_Text_StillHaveTimeExit, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, YES
2019-10-20 09:46:05 +02:00
goto_if_eq SafariZone_South_EventScript_ExitEarly
msgbox SafariZone_South_Text_EnjoyTheRestOfYourAdventure, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_GoodLuck:: @ 823D30D
2019-01-02 22:12:43 +01:00
setflag FLAG_GOOD_LUCK_SAFARI_ZONE
2019-10-20 09:46:05 +02:00
msgbox SafariZone_South_Text_GoodLuck, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_ExitEarly:: @ 823D31A
msgbox SafariZone_South_Text_ExitEarlyThankYouForPlaying, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
switch VAR_FACING
2019-10-20 09:46:05 +02:00
case DIR_NORTH, SafariZone_South_EventScript_ExitEarlyNorth
case DIR_EAST, SafariZone_South_EventScript_ExitEarlyEast
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_ExitEarlyNorth:: @ 823D33F
applymovement LOCALID_ATTENDANT, SafariZone_South_Movement_MoveExitAttendantNorth
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, SafariZone_South_Movement_PlayerExitNorth
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-20 09:46:05 +02:00
goto SafariZone_South_EventScript_Exit
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_ExitEarlyEast:: @ 823D359
applymovement LOCALID_ATTENDANT, SafariZone_South_Movement_MoveExitAttendantEast
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, SafariZone_South_Movement_PlayerExitEast
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-20 09:46:05 +02:00
goto SafariZone_South_EventScript_Exit
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_Exit:: @ 823D373
2019-02-22 10:18:43 +01:00
setvar VAR_SAFARI_ZONE_STATE, 1
2017-11-10 02:21:31 +01:00
special ExitSafariMode
warpdoor MAP_ROUTE121_SAFARI_ZONE_ENTRANCE, 255, 2, 5
2017-11-10 02:21:31 +01:00
waitstate
end
2019-10-20 09:46:05 +02:00
SafariZone_South_Movement_PlayerExitNorth: @ 823D385
walk_up
2017-11-10 02:21:31 +01:00
step_end
2019-10-20 09:46:05 +02:00
SafariZone_South_Movement_PlayerExitEast: @ 823D387
walk_right
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
2019-10-20 09:46:05 +02:00
SafariZone_South_Movement_MoveExitAttendantNorth: @ 823D38A
walk_left
walk_in_place_fastest_right
2017-11-10 02:21:31 +01:00
step_end
2019-10-20 09:46:05 +02:00
SafariZone_South_Movement_MoveExitAttendantEast: @ 823D38D
walk_down
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_ConstructionWorker1:: @ 823D390
msgbox SafariZone_South_Text_AreaOffLimits1, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_Southeast_EventScript_ExpansionZoneAttendant:: @ 823D399
msgbox SafariZone_Southeast_Text_ExpansionIsFinished, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_South_EventScript_ConstructionWorker2:: @ 823D3A2
msgbox SafariZone_South_Text_AreaOffLimits2, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_Southeast_EventScript_LittleGirl:: @ 823D3AB
msgbox SafariZone_Southeast_Text_LittleGirl, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_Southeast_EventScript_FatMan:: @ 823D3B4
msgbox SafariZone_Southeast_Text_FatMan, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_Southeast_EventScript_RichBoy:: @ 823D3BD
msgbox SafariZone_Southeast_Text_RichBoy, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_Northeast_EventScript_Boy:: @ 823D3C6
msgbox SafariZone_Northeast_Text_Boy, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_Northeast_EventScript_Woman:: @ 823D3CF
msgbox SafariZone_Northeast_Text_Woman, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-20 09:46:05 +02:00
SafariZone_Northeast_EventScript_Girl:: @ 823D3D8
msgbox SafariZone_Northeast_Text_Girl, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end