pokefirered/data/scripts/safari_zone.inc
2022-08-09 20:41:54 -04:00

37 lines
890 B
C++

SafariZone_EventScript_OutOfBallsMidBattle::
setvar VAR_MAP_SCENE_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE, 3
special ExitSafariMode
setwarp MAP_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE, 4, 1
end
SafariZone_EventScript_Exit::
setvar VAR_MAP_SCENE_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE, 1
special ExitSafariMode
warp MAP_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE, 4, 1
waitstate
end
SafariZone_EventScript_RetirePrompt::
lockall
msgbox SafariZone_Text_WouldYouLikeToExit, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, SafariZone_EventScript_Retire
releaseall
end
SafariZone_EventScript_Retire::
goto SafariZone_EventScript_Exit
SafariZone_EventScript_TimesUp::
lockall
playse SE_DING_DONG
msgbox SafariZone_Text_TimesUp
goto SafariZone_EventScript_Exit
end
SafariZone_EventScript_OutOfBalls::
lockall
playse SE_DING_DONG
msgbox SafariZone_Text_OutOfBalls
goto SafariZone_EventScript_Exit
end