summaryrefslogtreecommitdiff
path: root/data/maps/SkyPillar_Top/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/SkyPillar_Top/scripts.inc')
-rw-r--r--data/maps/SkyPillar_Top/scripts.inc20
1 files changed, 7 insertions, 13 deletions
diff --git a/data/maps/SkyPillar_Top/scripts.inc b/data/maps/SkyPillar_Top/scripts.inc
index 2b3c02120..5c71bbe4b 100644
--- a/data/maps/SkyPillar_Top/scripts.inc
+++ b/data/maps/SkyPillar_Top/scripts.inc
@@ -12,16 +12,13 @@ SkyPillar_Top_OnResume:
SkyPillar_Top_EventScript_TryRemoveRayquaza::
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, B_OUTCOME_CAUGHT
- goto_if_ne Common_EventScript_NopReturn
+ goto_if_ne VAR_RESULT, B_OUTCOME_CAUGHT, Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
SkyPillar_Top_OnTransition:
- compare VAR_SKY_PILLAR_STATE, 2
- call_if_lt SkyPillar_Top_EventScript_SetCleanLayout
- compare VAR_SKY_PILLAR_STATE, 2
- call_if_ge SkyPillar_Top_EventScript_TryShowRayquaza
+ call_if_lt VAR_SKY_PILLAR_STATE, 2, SkyPillar_Top_EventScript_SetCleanLayout
+ call_if_ge VAR_SKY_PILLAR_STATE, 2, SkyPillar_Top_EventScript_TryShowRayquaza
end
SkyPillar_Top_EventScript_SetCleanLayout::
@@ -57,12 +54,9 @@ SkyPillar_Top_EventScript_Rayquaza::
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, B_OUTCOME_WON
- goto_if_eq SkyPillar_Top_EventScript_DefeatedRayquaza
- compare VAR_RESULT, B_OUTCOME_RAN
- goto_if_eq SkyPillar_Top_EventScript_RanFromRayquaza
- compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
- goto_if_eq SkyPillar_Top_EventScript_RanFromRayquaza
+ goto_if_eq VAR_RESULT, B_OUTCOME_WON, SkyPillar_Top_EventScript_DefeatedRayquaza
+ goto_if_eq VAR_RESULT, B_OUTCOME_RAN, SkyPillar_Top_EventScript_RanFromRayquaza
+ goto_if_eq VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED, SkyPillar_Top_EventScript_RanFromRayquaza
setflag FLAG_DEFEATED_RAYQUAZA
releaseall
end
@@ -88,7 +82,7 @@ SkyPillar_Top_EventScript_RanFromRayquaza2::
fadescreenswapbuffers FADE_TO_BLACK
removeobject VAR_LAST_TALKED
fadescreenswapbuffers FADE_FROM_BLACK
- bufferspeciesname 0, VAR_0x8004
+ bufferspeciesname STR_VAR_1, VAR_0x8004
msgbox gText_LegendaryFlewAway, MSGBOX_DEFAULT
releaseall
end