pokeemerald/data/scripts/mevent.inc

63 lines
2.0 KiB
PHP
Raw Normal View History

2021-07-20 15:18:31 -04:00
EventScript_Questionnaire::
2019-10-05 10:52:48 -04:00
lockall
2019-10-07 10:34:12 -04:00
msgbox Mevent_Text_FillOutQuestionnaire, MSGBOX_YESNO
2019-11-02 12:34:53 -04:00
compare VAR_RESULT, NO
2019-10-07 10:34:12 -04:00
goto_if_eq Mevent_EventScript_Release
2019-10-05 10:52:48 -04:00
setvar VAR_0x8004, EASY_CHAT_TYPE_QUESTIONNAIRE
call Common_ShowEasyChatScreen
lock
faceplayer
specialvar VAR_0x8008, GetMartEmployeeObjectEventId
compare VAR_0x8004, 1
2019-10-07 10:34:12 -04:00
goto_if_eq Mevent_EventScript_PlayerInputMysteryEventPhrase
2019-10-05 10:52:48 -04:00
compare VAR_0x8004, 2
2019-10-07 10:34:12 -04:00
goto_if_eq Mevent_EventScript_PlayerInputMysteryGiftPhrase
2019-10-05 10:52:48 -04:00
compare VAR_RESULT, 0
2019-10-07 10:34:12 -04:00
goto_if_eq Mevent_EventScript_Release
2019-10-05 10:52:48 -04:00
compare VAR_RESULT, 1
2019-10-07 10:34:12 -04:00
goto_if_eq Mevent_EventScript_QuestionnaireThankYou
2019-10-05 10:52:48 -04:00
end
2019-09-27 14:20:51 -04:00
2021-07-20 15:18:31 -04:00
Mevent_EventScript_PlayerInputMysteryEventPhrase::
2019-10-07 10:34:12 -04:00
goto_if_unset FLAG_SYS_POKEDEX_GET, Mevent_EventScript_QuestionnaireThankYou
goto_if_set FLAG_SYS_MYSTERY_EVENT_ENABLE, Mevent_EventScript_QuestionnaireThankYou
2019-10-05 10:52:48 -04:00
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
playse SE_PIN
applymovement VAR_0x8008, Common_Movement_ExclamationMark
waitmovement 0
applymovement VAR_0x8008, Common_Movement_Delay48
waitmovement 0
2019-10-07 10:34:12 -04:00
msgbox Mevent_Text_YouKnowThoseWordsEvent, MSGBOX_DEFAULT
2019-10-05 10:52:48 -04:00
setflag FLAG_SYS_MYSTERY_EVENT_ENABLE
2019-10-07 10:34:12 -04:00
msgbox Mevent_Text_YouCanAccessMysteryEvent, MSGBOX_DEFAULT
2019-10-05 10:52:48 -04:00
releaseall
end
2019-09-27 14:20:51 -04:00
2021-07-20 15:18:31 -04:00
Mevent_EventScript_PlayerInputMysteryGiftPhrase::
2019-10-07 10:34:12 -04:00
goto_if_unset FLAG_SYS_POKEDEX_GET, Mevent_EventScript_QuestionnaireThankYou
goto_if_set FLAG_SYS_MYSTERY_GIFT_ENABLE, Mevent_EventScript_QuestionnaireThankYou
2019-10-05 10:52:48 -04:00
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
playse SE_PIN
applymovement VAR_0x8008, Common_Movement_ExclamationMark
waitmovement 0
applymovement VAR_0x8008, Common_Movement_Delay48
waitmovement 0
2019-10-07 10:34:12 -04:00
msgbox Mevent_Text_YouKnowThoseWordsGift, MSGBOX_DEFAULT
2019-10-05 10:52:48 -04:00
setflag FLAG_SYS_MYSTERY_GIFT_ENABLE
2019-10-07 10:34:12 -04:00
msgbox Mevent_Text_YouCanAccessMysteryGift, MSGBOX_DEFAULT
2019-10-05 10:52:48 -04:00
releaseall
end
2019-09-27 14:20:51 -04:00
2021-07-20 15:18:31 -04:00
Mevent_EventScript_Release::
2019-10-05 10:52:48 -04:00
releaseall
end
2019-09-27 14:20:51 -04:00
2021-07-20 15:18:31 -04:00
Mevent_EventScript_QuestionnaireThankYou::
2019-10-05 10:52:48 -04:00
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
2019-10-07 10:34:12 -04:00
msgbox Mevent_Text_QuestionnaireThankYou, MSGBOX_DEFAULT
2019-10-05 10:52:48 -04:00
releaseall
end