Files
pokeemerald/data/scripts/safari_zone.inc
T
Eduardo Quezada 4649d1eddd (234/665)
2022-08-15 14:27:41 -04:00

71 lines
1.6 KiB
C++

SafariZone_EventScript_OutOfBallsMidBattle::
setvar VAR_SAFARI_ZONE_STATE, 1
special ExitSafariMode
setwarp MAP_ROUTE121_SAFARI_ZONE_ENTRANCE, 2, 5
end
SafariZone_EventScript_Exit::
setvar VAR_SAFARI_ZONE_STATE, 1
special ExitSafariMode
warp MAP_ROUTE121_SAFARI_ZONE_ENTRANCE, 2, 5
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
message SafariZone_Text_TimesUp
waitmessage
waitbuttonpress
releaseall
goto SafariZone_EventScript_Exit
SafariZone_EventScript_OutOfBalls::
lockall
playse SE_DING_DONG
message SafariZone_Text_OutOfBalls
waitmessage
waitbuttonpress
releaseall
goto SafariZone_EventScript_Exit
EventScript_PokeBlockFeeder::
lockall
special GetPokeblockFeederInFront
goto_if_ne VAR_RESULT, 0xFFFF, SafariZone_EventScript_PokeblockPresent
msgbox SafariZone_Text_PlacePokeblockOnFeeder, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, SafariZone_EventScript_ChoosePokeblock
releaseall
end
SafariZone_EventScript_ChoosePokeblock::
fadescreen FADE_TO_BLACK
special OpenPokeblockCaseOnFeeder
waitstate
goto_if_ne VAR_RESULT, 0xFFFF, SafariZone_EventScript_PokeblockPlaced
end
SafariZone_EventScript_PokeblockPlaced::
message SafariZone_Text_PokeblockWasPlaced
waitmessage
waitbuttonpress
releaseall
end
SafariZone_EventScript_PokeblockPresent::
message SafariZone_Text_PokeblockStillHere
waitmessage
waitbuttonpress
releaseall
end