Files
Pokemon-Firered/data/maps/PalletTown_PlayersHouse_1F/scripts.inc
T
2022-06-24 21:10:48 -04:00

62 lines
1.9 KiB
C++

.equ LOCALID_MOM, 1
PalletTown_PlayersHouse_1F_MapScripts::
.byte 0
PalletTown_PlayersHouse_1F_EventScript_Mom::
lock
faceplayer
goto_if_set FLAG_BEAT_RIVAL_IN_OAKS_LAB, PalletTown_PlayersHouse_1F_EventScript_MomHeal
checkplayergender
compare VAR_RESULT, MALE
call_if_eq PalletTown_PlayersHouse_1F_EventScript_MomOakLookingForYouMale
compare VAR_RESULT, FEMALE
call_if_eq PalletTown_PlayersHouse_1F_EventScript_MomOakLookingForYouFemale
closemessage
applymovement LOCALID_MOM, Movement_FaceOriginalDirection
waitmovement 0
release
end
PalletTown_PlayersHouse_1F_EventScript_MomOakLookingForYouMale::
msgbox PalletTown_PlayersHouse_1F_Text_AllBoysLeaveOakLookingForYou
return
PalletTown_PlayersHouse_1F_EventScript_MomOakLookingForYouFemale::
msgbox PalletTown_PlayersHouse_1F_Text_AllGirlsLeaveOakLookingForYou
return
PalletTown_PlayersHouse_1F_EventScript_MomHeal::
msgbox PalletTown_PlayersHouse_1F_Text_YouShouldTakeQuickRest
closemessage
call EventScript_OutOfCenterPartyHeal
msgbox PalletTown_PlayersHouse_1F_Text_LookingGreatTakeCare
release
end
@ Displays special text if interacted with from side or back (which are normally inaccessible)
PalletTown_PlayersHouse_1F_EventScript_TV::
lockall
compare VAR_FACING, DIR_NORTH
goto_if_eq PalletTown_PlayersHouse_1F_EventScript_TVScreen
msgbox PalletTown_PlayersHouse_1F_Text_OopsWrongSide
releaseall
end
PalletTown_PlayersHouse_1F_EventScript_TVScreen::
checkplayergender
compare VAR_RESULT, MALE
call_if_eq PalletTown_PlayersHouse_1F_EventScript_TVScreenMale
compare VAR_RESULT, FEMALE
call_if_eq PalletTown_PlayersHouse_1F_EventScript_TVScreenFemale
releaseall
end
PalletTown_PlayersHouse_1F_EventScript_TVScreenMale::
msgbox PalletTown_PlayersHouse_1F_Text_MovieOnTVFourBoysOnRailroad
return
PalletTown_PlayersHouse_1F_EventScript_TVScreenFemale::
msgbox PalletTown_PlayersHouse_1F_Text_MovieOnTVGirlOnBrickRoad
return