2019-10-07 02:04:30 +02:00
|
|
|
EventScript_FieldPoison:: @ 82736BC
|
2019-10-05 16:52:48 +02:00
|
|
|
lockall
|
2019-10-07 02:04:30 +02:00
|
|
|
special TryFieldPoisonWhiteOut
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
2019-10-07 02:04:30 +02: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 16:52:48 +02:00
|
|
|
releaseall
|
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2019-10-07 02:04:30 +02:00
|
|
|
EventScript_FieldWhiteOut:: @ 82736D9
|
2019-10-05 16:52:48 +02:00
|
|
|
message gText_PlayerWhitedOut
|
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
2019-10-07 02:04:30 +02:00
|
|
|
special Script_FadeOutMapMusic
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
|
|
|
fadescreen 1
|
2019-11-07 21:21:32 +01:00
|
|
|
call_if_set FLAG_WHITEOUT_TO_LAVARIDGE, EventScript_SetRespawnLavaridgePkmnCenter
|
2019-10-07 02:04:30 +02:00
|
|
|
special SetCB2WhiteOut
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2019-10-07 02:04:30 +02:00
|
|
|
EventScript_SetRespawnLavaridgePkmnCenter:: @ 82736F4
|
2019-10-05 16:52:48 +02:00
|
|
|
setrespawn HEAL_LOCATION_LAVARIDGE_TOWN
|
|
|
|
return
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2019-10-07 02:04:30 +02:00
|
|
|
EventScript_FrontierFieldWhiteOut:: @ 82736F8
|
2019-10-05 16:52:48 +02:00
|
|
|
message gText_PlayerWhitedOut
|
|
|
|
waitmessage
|
|
|
|
waitbuttonpress
|
2019-11-29 08:00:19 +01:00
|
|
|
pike_inchallenge
|
|
|
|
compare VAR_RESULT, TRUE
|
2019-10-07 02:04:30 +02:00
|
|
|
goto_if_eq BattleFrontier_BattlePike_EventScript_Retire
|
|
|
|
setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_IS_IN
|
2019-10-05 16:52:48 +02:00
|
|
|
special CallBattlePyramidFunction
|
|
|
|
compare VAR_RESULT, 1
|
|
|
|
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42
|
|
|
|
compare VAR_RESULT, 2
|
|
|
|
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42
|
2019-11-23 22:08:50 +01:00
|
|
|
trainerhill_inchallenge
|
|
|
|
compare VAR_RESULT, TRUE
|
2019-10-07 02:04:30 +02:00
|
|
|
goto_if_eq TrainerHill_1F_EventScript_Lost
|
|
|
|
special Script_FadeOutMapMusic
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
|
|
|
fadescreen 1
|
2019-10-07 02:04:30 +02:00
|
|
|
special SetCB2WhiteOut
|
2019-10-05 16:52:48 +02:00
|
|
|
waitstate
|
|
|
|
end
|