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
@@ -1,14 +1,12 @@
EventScript_UseSurf::
goto_if_questlog EventScript_UseSurfEnd
checkpartymove MOVE_SURF
compare VAR_RESULT, PARTY_SIZE
goto_if_eq EventScript_UseSurfEnd
goto_if_eq VAR_RESULT, PARTY_SIZE, EventScript_UseSurfEnd
bufferpartymonnick STR_VAR_1, VAR_RESULT
setfieldeffectargument 0, VAR_RESULT
lockall
msgbox Text_WantToSurf, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_UseSurfRelease
goto_if_eq VAR_RESULT, NO, EventScript_UseSurfRelease
msgbox Text_UsedSurf
dofieldeffect FLDEFF_USE_SURF
EventScript_UseSurfRelease: