pokeemerald/data/scripts/field_poison.inc

49 lines
1.3 KiB
PHP
Raw Normal View History

2021-07-20 15:18:31 -04:00
EventScript_FieldPoison::
2019-10-05 10:52:48 -04:00
lockall
2019-10-06 20:04:30 -04:00
special TryFieldPoisonWhiteOut
2019-10-05 10:52:48 -04:00
waitstate
2019-10-06 20:04:30 -04:00
compare VAR_RESULT, FLDPSN_WHITEOUT
goto_if_eq EventScript_FieldWhiteOut
compare VAR_RESULT, FLDPSN_FRONTIER_WHITEOUT
goto_if_eq EventScript_FrontierFieldWhiteOut
2019-10-05 10:52:48 -04:00
releaseall
end
2021-07-20 15:18:31 -04:00
EventScript_FieldWhiteOut::
2019-10-05 10:52:48 -04:00
message gText_PlayerWhitedOut
waitmessage
waitbuttonpress
2019-10-06 20:04:30 -04:00
special Script_FadeOutMapMusic
2019-10-05 10:52:48 -04:00
waitstate
2019-12-15 11:42:50 -05:00
fadescreen FADE_TO_BLACK
2019-11-07 15:21:32 -05:00
call_if_set FLAG_WHITEOUT_TO_LAVARIDGE, EventScript_SetRespawnLavaridgePkmnCenter
2019-10-06 20:04:30 -04:00
special SetCB2WhiteOut
2019-10-05 10:52:48 -04:00
waitstate
end
2021-07-20 15:18:31 -04:00
EventScript_SetRespawnLavaridgePkmnCenter::
2019-10-05 10:52:48 -04:00
setrespawn HEAL_LOCATION_LAVARIDGE_TOWN
return
2021-07-20 15:18:31 -04:00
EventScript_FrontierFieldWhiteOut::
2019-10-05 10:52:48 -04:00
message gText_PlayerWhitedOut
waitmessage
waitbuttonpress
2019-11-29 02:00:19 -05:00
pike_inchallenge
compare VAR_RESULT, TRUE
2019-10-06 20:04:30 -04:00
goto_if_eq BattleFrontier_BattlePike_EventScript_Retire
2019-12-02 09:52:16 -05:00
pyramid_inchallenge
compare VAR_RESULT, 1 @ On Pyramid floor
2019-12-11 03:28:55 -05:00
goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
2019-12-02 09:52:16 -05:00
compare VAR_RESULT, 2 @ On Pyramid peak
2019-12-11 03:28:55 -05:00
goto_if_eq BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
2019-11-23 16:08:50 -05:00
trainerhill_inchallenge
compare VAR_RESULT, TRUE
2019-10-06 20:04:30 -04:00
goto_if_eq TrainerHill_1F_EventScript_Lost
special Script_FadeOutMapMusic
2019-10-05 10:52:48 -04:00
waitstate
2019-12-15 11:42:50 -05:00
fadescreen FADE_TO_BLACK
2019-10-06 20:04:30 -04:00
special SetCB2WhiteOut
2019-10-05 10:52:48 -04:00
waitstate
end