pokefirered/data/maps/SaffronCity_MrPsychicsHouse/scripts.inc
2022-08-09 20:41:54 -04:00

26 lines
825 B
PHP

SaffronCity_MrPsychicsHouse_MapScripts::
.byte 0
SaffronCity_MrPsychicsHouse_EventScript_MrPsychic::
lock
faceplayer
goto_if_set FLAG_GOT_TM29_FROM_MR_PSYCHIC, SaffronCity_MrPsychicsHouse_EventScript_AlreadyGotTM29
msgbox SaffronCity_MrPsychicsHouse_Text_YouWantedThis
checkitemspace ITEM_TM29
goto_if_eq VAR_RESULT, FALSE, SaffronCity_MrPsychicsHouse_EventScript_NoRoomForTM29
giveitem_msg SaffronCity_MrPsychicsHouse_Text_ReceivedTM29FromMrPsychic, ITEM_TM29
msgbox SaffronCity_MrPsychicsHouse_Text_ExplainTM29
setflag FLAG_GOT_TM29_FROM_MR_PSYCHIC
release
end
SaffronCity_MrPsychicsHouse_EventScript_NoRoomForTM29::
msgbox SaffronCity_MrPsychicsHouse_Text_YouveNoRoom
release
end
SaffronCity_MrPsychicsHouse_EventScript_AlreadyGotTM29::
msgbox SaffronCity_MrPsychicsHouse_Text_ExplainTM29
release
end