pokefirered/data/maps/Route16_House/scripts.inc
2022-06-24 21:10:48 -04:00

37 lines
811 B
PHP

Route16_House_MapScripts::
.byte 0
Route16_House_EventScript_Woman::
lock
faceplayer
goto_if_set FLAG_GOT_HM02, Route16_House_EventScript_AlreadyGotHM02
msgbox Route16_House_Text_FoundMySecretRetreat
checkitemspace ITEM_HM02, 1
compare VAR_RESULT, FALSE
goto_if_eq Route16_House_EventScript_NoRoomForHM02
giveitem_msg Route16_House_Text_ReceivedHM02FromGirl, ITEM_HM02
msgbox Route16_House_Text_ExplainHM02
setflag FLAG_GOT_HM02
release
end
Route16_House_EventScript_NoRoomForHM02::
msgbox Route16_House_Text_DontHaveAnyRoomForThis
release
end
Route16_House_EventScript_AlreadyGotHM02::
msgbox Route16_House_Text_ExplainHM02
release
end
Route16_House_EventScript_Fearow::
lock
faceplayer
waitse
playmoncry SPECIES_FEAROW, 0
msgbox Route16_House_Text_Fearow
waitmoncry
release
end