summaryrefslogtreecommitdiff
path: root/data/scripts/questionnaire.inc
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-03-02 12:19:18 -0500
committerGitHub <noreply@github.com>2020-03-02 12:19:18 -0500
commit0169a98c683d3eb803bc6bca5f5c3c5fe2b9ee5c (patch)
treea814947a48f0bb44f4bbfcac6794517129a6c913 /data/scripts/questionnaire.inc
parente8504c7a3ff69f771746e9987452be78ebf44f37 (diff)
parent358f785a039474442bc0380f2e0ebe4a36b8d553 (diff)
Merge pull request #278 from GriffinRichards/doc-miscscript
Split/label some common event scripts
Diffstat (limited to 'data/scripts/questionnaire.inc')
-rw-r--r--data/scripts/questionnaire.inc48
1 files changed, 48 insertions, 0 deletions
diff --git a/data/scripts/questionnaire.inc b/data/scripts/questionnaire.inc
new file mode 100644
index 000000000..8e28f80db
--- /dev/null
+++ b/data/scripts/questionnaire.inc
@@ -0,0 +1,48 @@
+EventScript_Questionnaire:: @ 81A7702
+ lockall
+ textcolor 3
+ msgbox Text_FillOutQuestionnaire, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq EventScript_DeclineQuestionnaire
+ setvar VAR_0x8004, EASY_CHAT_TYPE_QUESTIONNAIRE
+ call Common_ShowEasyChatScreen
+ lock
+ faceplayer
+ specialvar VAR_0x8008, Special_GetMartClerkObjectId
+ textcolor 0
+ 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
+ end
+
+EventScript_EnableMysteryGift:: @ 81A774D
+ applymovement VAR_0x8008, Movement_FaceDown
+ waitmovement 0
+ playse SE_PIN
+ applymovement VAR_0x8008, Movement_ExclamationMark
+ waitmovement 0
+ applymovement VAR_0x8008, Movement_Delay48
+ waitmovement 0
+ msgbox Text_YouKnowThoseWords
+ setflag FLAG_SYS_MYSTERY_GIFT_ENABLED
+ textcolor 3
+ special sub_80699BC
+ signmsg
+ msgbox Text_YouCanAccessMysteryGift
+ normalmsg
+ releaseall
+ end
+
+EventScript_DeclineQuestionnaire:: @ 81A778A
+ releaseall
+ end
+
+EventScript_TookQuestionnaire:: @ 81A778C
+ applymovement VAR_0x8008, Movement_FaceDown
+ waitmovement 0
+ msgbox Text_QuestionnaireThankYou
+ releaseall
+ end