Use 'goto_if_eq VAR, value, Script' syntax

This commit is contained in:
GriffinR committed 2022-08-09 20:41:54 -04:00
1 parent 60fc8c5e22
commit f113da30ad
171 files changed
+1992 -3453

No files matched your search

+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