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
+1 -2
View File
@@ -22,8 +22,7 @@ SaffronCity_Gym_EventScript_DefeatedSabrina::
SaffronCity_Gym_EventScript_GiveTM04::
msgbox SaffronCity_Gym_Text_ExplainMarshBadgeTakeThis
checkitemspace ITEM_TM04
compare VAR_RESULT, FALSE
goto_if_eq SaffronCity_Gym_EventScript_NoRoomForTM04
goto_if_eq VAR_RESULT, FALSE, SaffronCity_Gym_EventScript_NoRoomForTM04
giveitem_msg SaffronCity_Gym_Text_ReceivedTM04FromSabrina, ITEM_TM04
setflag FLAG_GOT_TM04_FROM_SABRINA
msgbox SaffronCity_Gym_Text_SabrinaPostBattle