Use 'goto_if_eq VAR, value, Script' syntax
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user