pokefirered/data/maps/SaffronCity_MrPsychicsHouse/scripts.inc
2020-01-25 22:31:36 -05:00

27 lines
876 B
PHP

SaffronCity_MrPsychicsHouse_MapScripts:: @ 816F05E
.byte 0
SaffronCity_MrPsychicsHouse_EventScript_MrPsychic:: @ 816F05F
lock
faceplayer
goto_if_set FLAG_GOT_TM29_FROM_MR_PSYCHIC, SaffronCity_MrPsychicsHouse_EventScript_AlreadyGotTM29
msgbox SaffronCity_MrPsychicsHouse_Text_YouWantedThis
checkitemspace ITEM_TM29, 1
compare VAR_RESULT, FALSE
goto_if_eq 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:: @ 816F0AB
msgbox SaffronCity_MrPsychicsHouse_Text_YouveNoRoom
release
end
SaffronCity_MrPsychicsHouse_EventScript_AlreadyGotTM29:: @ 816F0B5
msgbox SaffronCity_MrPsychicsHouse_Text_ExplainTM29
release
end