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

+4 -8
View File
@@ -2,20 +2,16 @@ EventScript_Questionnaire::
lockall
textcolor NPC_TEXT_COLOR_NEUTRAL
msgbox Text_FillOutQuestionnaire, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq EventScript_DeclineQuestionnaire
goto_if_eq VAR_RESULT, NO, EventScript_DeclineQuestionnaire
setvar VAR_0x8004, EASY_CHAT_TYPE_QUESTIONNAIRE
call Common_ShowEasyChatScreen
lock
faceplayer
specialvar VAR_0x8008, GetMartClerkObjectId
textcolor NPC_TEXT_COLOR_MALE
compare VAR_0x8004, 0
goto_if_eq EventScript_EnableMysteryGift
compare VAR_RESULT, 0
goto_if_eq EventScript_DeclineQuestionnaire
compare VAR_RESULT, 1
goto_if_eq EventScript_TookQuestionnaire
goto_if_eq VAR_0x8004, 0, EventScript_EnableMysteryGift
goto_if_eq VAR_RESULT, 0, EventScript_DeclineQuestionnaire
goto_if_eq VAR_RESULT, 1, EventScript_TookQuestionnaire
end
EventScript_EnableMysteryGift::