Use 'goto_if_eq VAR, value, Script' syntax

This commit is contained in:
GriffinR
2022-08-09 20:40:03 -04:00
parent 60fc8c5e22
commit f113da30ad
171 changed files with 1992 additions and 3453 deletions
+2 -4
View File
@@ -6,8 +6,7 @@ VictoryRoad_1F_MapScripts::
.byte 0
VictoryRoad_1F_OnLoad::
compare VAR_MAP_SCENE_VICTORY_ROAD_1F, 100
call_if_ne VictoryRoad_1F_EventScript_SetRockBarrier
call_if_ne VAR_MAP_SCENE_VICTORY_ROAD_1F, 100, VictoryRoad_1F_EventScript_SetRockBarrier
end
VictoryRoad_1F_EventScript_SetRockBarrier::
@@ -21,8 +20,7 @@ VictoryRoad_1F_OnTransition::
VictoryRoad_1F_EventScript_FloorSwitch::
lockall
compare VAR_MAP_SCENE_VICTORY_ROAD_1F, 100
goto_if_eq VictoryRoad_1F_EventScript_FloorSwitchAlreadyPressed
goto_if_eq VAR_MAP_SCENE_VICTORY_ROAD_1F, 100, VictoryRoad_1F_EventScript_FloorSwitchAlreadyPressed
setmetatile 12, 14, METATILE_Cave_Floor_Ledge_Top, 0
setmetatile 12, 15, METATILE_Cave_Floor_Ledge_Bottom, 0
playse SE_ICE_BREAK