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
@@ -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