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
+4 -8
View File
@@ -3,8 +3,7 @@
MysteryEventClub_EventScript_Woman::
lock
faceplayer
compare GAVE_PROFILE, TRUE
goto_if_eq EventScript_AlreadyGaveProfile
goto_if_eq GAVE_PROFILE, TRUE, EventScript_AlreadyGaveProfile
goto_if_set FLAG_SYS_SET_TRAINER_CARD_PROFILE, EventScript_GivenProfileBefore
msgbox Text_IdLoveToHearYourProfile
goto EventScript_AskForProfile
@@ -104,12 +103,9 @@ EventScript_GiveProfile:
call Common_ShowEasyChatScreen
lock
faceplayer
compare VAR_0x8004, 0
goto_if_eq EventScript_GaveSpecialProfile
compare VAR_RESULT, FALSE
goto_if_eq EventScript_CancelGiveProfile
compare VAR_RESULT, TRUE
goto_if_eq EventScript_GaveProfile
goto_if_eq VAR_0x8004, 0, EventScript_GaveSpecialProfile
goto_if_eq VAR_RESULT, FALSE, EventScript_CancelGiveProfile
goto_if_eq VAR_RESULT, TRUE, EventScript_GaveProfile
end
Text_IdLoveToHearYourProfile: