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
@@ -31,8 +31,7 @@ Route23_EventScript_AlreadyRecognizedBadge::
@ Duplicate of the below, only used for Boulder Badge
Route22_NorthEntrance_EventScript_BadgeGuard::
compare VAR_MAP_SCENE_ROUTE23, VAR_TEMP_1
goto_if_ge Route23_EventScript_AlreadyRecognizedBoulderBadge
goto_if_ge VAR_MAP_SCENE_ROUTE23, VAR_TEMP_1, Route23_EventScript_AlreadyRecognizedBoulderBadge
switch VAR_TEMP_1
case 1, Route23_EventScript_CheckBoulderBadge
case 2, Route23_EventScript_CheckCascadeBadge
@@ -45,8 +44,7 @@ Route22_NorthEntrance_EventScript_BadgeGuard::
end
Route23_EventScript_BadgeGuard::
compare VAR_MAP_SCENE_ROUTE23, VAR_TEMP_1
goto_if_ge Route23_EventScript_AlreadyRecognizedBadge
goto_if_ge VAR_MAP_SCENE_ROUTE23, VAR_TEMP_1, Route23_EventScript_AlreadyRecognizedBadge
switch VAR_TEMP_1
case 1, Route23_EventScript_CheckBoulderBadge
case 2, Route23_EventScript_CheckCascadeBadge