mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-26 20:44:35 -04:00
70bad62f9b
# Conflicts: # Makefile # data/maps/BattleFrontier_BattleTowerLobby/scripts.inc # data/maps/OldaleTown/scripts.inc # data/maps/Route110_TrickHousePuzzle7/scripts.inc # data/maps/Route110_TrickHousePuzzle8/scripts.inc # data/scripts/roulette.inc # data/tilesets/graphics.inc # data/tilesets/metatiles.inc # graphics/trainer_card/0star_fr.pal # graphics/trainer_card/four_stars_fr.pal # graphics/trainer_card/frlg/0star.pal # graphics/trainer_card/frlg/blue.pal # graphics/trainer_card/frlg/bronze.pal # graphics/trainer_card/frlg/card.png # graphics/trainer_card/frlg/four_stars.pal # graphics/trainer_card/frlg/gold.pal # graphics/trainer_card/frlg/green.pal # graphics/trainer_card/frlg/one_star.pal # graphics/trainer_card/frlg/silver.pal # graphics/trainer_card/frlg/three_stars.pal # graphics/trainer_card/frlg/two_stars.pal # graphics/trainer_card/one_star_fr.pal # graphics/trainer_card/three_stars_fr.pal # graphics/trainer_card/two_stars_fr.pal # src/battle_message.c # src/battle_tent.c # src/berry_blender.c # src/berry_tag_screen.c # src/data/bard_music/length_table.h # src/data/credits.h # src/data/items.h # src/data/pokemon/pokedex_orders.h # src/data/region_map/region_map_entries.h # src/easy_chat.c # src/field_region_map.c # src/graphics.c # src/item.c # src/item_menu.c # src/menu_specialized.c # src/pokedex.c # src/pokedex_cry_screen.c # src/pokemon_jump.c # src/pokenav_conditions_search_results.c # src/pokenav_match_call_gfx.c # src/pokenav_ribbons_list.c # src/shop.c # src/trade.c # src/trainer_card.c # src/wireless_communication_status_screen.c
74 lines
1.7 KiB
C++
74 lines
1.7 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
|
|
#ifdef BUGFIX
|
|
releaseall @ Only gets called from EventScript_PokeBlockFeeder which uses lockall.
|
|
#endif
|
|
end
|
|
|
|
SafariZone_EventScript_PokeblockPlaced::
|
|
message SafariZone_Text_PokeblockWasPlaced
|
|
waitmessage
|
|
waitbuttonpress
|
|
releaseall
|
|
end
|
|
|
|
SafariZone_EventScript_PokeblockPresent::
|
|
message SafariZone_Text_PokeblockStillHere
|
|
waitmessage
|
|
waitbuttonpress
|
|
releaseall
|
|
end
|