pokeemerald/data/maps/Route111_OldLadysRestStop/scripts.inc
2024-07-05 07:31:42 -04:00

44 lines
1.3 KiB
PHP

Route111_OldLadysRestStop_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route111_OldLadysRestStop_OnTransition
.byte 0
Route111_OldLadysRestStop_OnTransition:
setflag FLAG_LANDMARK_OLD_LADY_REST_SHOP
end
Route111_OldLadysRestStop_EventScript_OldLady::
lock
faceplayer
msgbox Route111_OldLadysRestStop_Text_RestUpHere, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route111_OldLadysRestStop_EventScript_Rest
goto_if_eq VAR_RESULT, NO, Route111_OldLadysRestStop_EventScript_DeclineRest
end
Route111_OldLadysRestStop_EventScript_Rest::
msgbox Route111_OldLadysRestStop_Text_TakeYourTimeRestUp, MSGBOX_DEFAULT
closemessage
call Common_EventScript_OutOfCenterPartyHeal
msgbox Route111_OldLadysRestStop_Text_StillTiredTakeAnotherRest, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route111_OldLadysRestStop_EventScript_Rest
goto_if_eq VAR_RESULT, NO, Route111_OldLadysRestStop_EventScript_DeclineRest
end
Route111_OldLadysRestStop_EventScript_DeclineRest::
msgbox Route111_OldLadysRestStop_Text_DontNeedToBeShy, MSGBOX_DEFAULT
release
end
.ifdef FRENCH
.include "data/maps/Route111_OldLadysRestStop/text_fr.inc"
.else
.ifdef ITALIAN
.include "data/maps/Route111_OldLadysRestStop/text_it.inc"
.else
.ifdef SPANISH
.include "data/maps/Route111_OldLadysRestStop/text_es.inc"
.else
.include "data/maps/Route111_OldLadysRestStop/text.inc"
.endif
.endif
.endif