pokeemerald/data/scripts/mevent.inc

63 lines
2.1 KiB
PHP
Raw Normal View History

2019-09-27 20:20:51 +02:00
EventScript_Questionnaire:: @ 827381B
2019-10-05 16:52:48 +02:00
lockall
2019-10-07 16:34:12 +02:00
msgbox Mevent_Text_FillOutQuestionnaire, MSGBOX_YESNO
2019-10-05 16:52:48 +02:00
compare VAR_RESULT, 0
2019-10-07 16:34:12 +02:00
goto_if_eq Mevent_EventScript_Release
2019-10-05 16:52:48 +02:00
setvar VAR_0x8004, EASY_CHAT_TYPE_QUESTIONNAIRE
call Common_ShowEasyChatScreen
lock
faceplayer
specialvar VAR_0x8008, GetMartEmployeeObjectEventId
compare VAR_0x8004, 1
2019-10-07 16:34:12 +02:00
goto_if_eq Mevent_EventScript_PlayerInputMysteryEventPhrase
2019-10-05 16:52:48 +02:00
compare VAR_0x8004, 2
2019-10-07 16:34:12 +02:00
goto_if_eq Mevent_EventScript_PlayerInputMysteryGiftPhrase
2019-10-05 16:52:48 +02:00
compare VAR_RESULT, 0
2019-10-07 16:34:12 +02:00
goto_if_eq Mevent_EventScript_Release
2019-10-05 16:52:48 +02:00
compare VAR_RESULT, 1
2019-10-07 16:34:12 +02:00
goto_if_eq Mevent_EventScript_QuestionnaireThankYou
2019-10-05 16:52:48 +02:00
end
2019-09-27 20:20:51 +02:00
2019-10-07 16:34:12 +02:00
Mevent_EventScript_PlayerInputMysteryEventPhrase:: @ 827386D
goto_if_unset FLAG_SYS_POKEDEX_GET, Mevent_EventScript_QuestionnaireThankYou
goto_if_set FLAG_SYS_MYSTERY_EVENT_ENABLE, Mevent_EventScript_QuestionnaireThankYou
2019-10-05 16:52:48 +02: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 16:34:12 +02:00
msgbox Mevent_Text_YouKnowThoseWordsEvent, MSGBOX_DEFAULT
2019-10-05 16:52:48 +02:00
setflag FLAG_SYS_MYSTERY_EVENT_ENABLE
2019-10-07 16:34:12 +02:00
msgbox Mevent_Text_YouCanAccessMysteryEvent, MSGBOX_DEFAULT
2019-10-05 16:52:48 +02:00
releaseall
end
2019-09-27 20:20:51 +02:00
2019-10-07 16:34:12 +02:00
Mevent_EventScript_PlayerInputMysteryGiftPhrase:: @ 82738B5
goto_if_unset FLAG_SYS_POKEDEX_GET, Mevent_EventScript_QuestionnaireThankYou
goto_if_set FLAG_SYS_MYSTERY_GIFT_ENABLE, Mevent_EventScript_QuestionnaireThankYou
2019-10-05 16:52:48 +02: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 16:34:12 +02:00
msgbox Mevent_Text_YouKnowThoseWordsGift, MSGBOX_DEFAULT
2019-10-05 16:52:48 +02:00
setflag FLAG_SYS_MYSTERY_GIFT_ENABLE
2019-10-07 16:34:12 +02:00
msgbox Mevent_Text_YouCanAccessMysteryGift, MSGBOX_DEFAULT
2019-10-05 16:52:48 +02:00
releaseall
end
2019-09-27 20:20:51 +02:00
2019-10-07 16:34:12 +02:00
Mevent_EventScript_Release:: @ 82738FD
2019-10-05 16:52:48 +02:00
releaseall
end
2019-09-27 20:20:51 +02:00
2019-10-07 16:34:12 +02:00
Mevent_EventScript_QuestionnaireThankYou:: @ 82738FF
2019-10-05 16:52:48 +02:00
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
2019-10-07 16:34:12 +02:00
msgbox Mevent_Text_QuestionnaireThankYou, MSGBOX_DEFAULT
2019-10-05 16:52:48 +02:00
releaseall
end