tumbledemerald-legacy/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc

441 lines
14 KiB
PHP
Raw Normal View History

2022-05-19 19:14:13 +02:00
.set LOCALID_MOM, 1
.set LOCALID_RIVAL_MOM, 4
.set LOCALID_RIVAL, 7
LittlerootTown_BrendansHouse_1F_MapScripts::
map_script MAP_SCRIPT_ON_LOAD, LittlerootTown_BrendansHouse_1F_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_BrendansHouse_1F_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, LittlerootTown_BrendansHouse_1F_OnFrame
.byte 0
LittlerootTown_BrendansHouse_1F_OnLoad:
call_if_lt VAR_LITTLEROOT_INTRO_STATE, 6, LittlerootTown_BrendansHouse_1F_EventScript_SetMovingBoxes
call_if_set FLAG_RECEIVED_RUNNING_SHOES, LittlerootTown_BrendansHouse_1F_EventScript_CheckShowShoesManual
end
LittlerootTown_BrendansHouse_1F_EventScript_SetMovingBoxes::
setmetatile 5, 4, METATILE_BrendansMaysHouse_MovingBox_Open, TRUE
setmetatile 5, 2, METATILE_BrendansMaysHouse_MovingBox_Closed, TRUE
return
LittlerootTown_BrendansHouse_1F_EventScript_CheckShowShoesManual::
checkplayergender
goto_if_eq VAR_RESULT, MALE, LittlerootTown_BrendansHouse_1F_EventScript_ShowRunningShoesManual
return
LittlerootTown_BrendansHouse_1F_EventScript_ShowRunningShoesManual::
setmetatile 3, 7, METATILE_BrendansMaysHouse_BookOnTable, TRUE
return
LittlerootTown_BrendansHouse_1F_OnTransition:
call_if_eq VAR_LITTLEROOT_INTRO_STATE, 3, LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToDoor
call_if_eq VAR_LITTLEROOT_INTRO_STATE, 5, LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToStairs
call_if_eq VAR_LITTLEROOT_INTRO_STATE, 6, LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToTV
end
LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToStairs::
setobjectxyperm LOCALID_MOM, 8, 4
setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
return
LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToTV::
setobjectxyperm LOCALID_MOM, 4, 5
setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
return
LittlerootTown_BrendansHouse_1F_EventScript_MoveMomToDoor::
setobjectxyperm LOCALID_MOM, 9, 8
setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
return
@ Many of the below scripts have no gender check because they assume youre in the correct house
@ The below SS Ticket script uses Mays house state by accident(?), but theyre both set identically after the intro
LittlerootTown_BrendansHouse_1F_OnFrame:
map_script_2 VAR_LITTLEROOT_INTRO_STATE, 3, LittlerootTown_BrendansHouse_1F_EventScript_EnterHouseMovingIn
map_script_2 VAR_LITTLEROOT_INTRO_STATE, 5, LittlerootTown_BrendansHouse_1F_EventScript_GoUpstairsToSetClock
map_script_2 VAR_LITTLEROOT_INTRO_STATE, 6, LittlerootTown_BrendansHouse_1F_EventScript_PetalburgGymReport
map_script_2 VAR_LITTLEROOT_HOUSES_STATE_MAY, 1, LittlerootTown_BrendansHouse_1F_EventScript_YoureNewNeighbor
map_script_2 VAR_LITTLEROOT_HOUSES_STATE_MAY, 3, PlayersHouse_1F_EventScript_GetSSTicketAndSeeLatiTV
.2byte 0
LittlerootTown_BrendansHouse_1F_EventScript_GoUpstairsToSetClock::
lockall
msgbox PlayersHouse_1F_Text_GoSetTheClock, MSGBOX_DEFAULT
closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PushTowardStairs
applymovement LOCALID_MOM, LittlerootTown_BrendansHouse_1F_Movement_PushTowardStairs
waitmovement 0
warp MAP_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F, 7, 1
waitstate
releaseall
end
LittlerootTown_BrendansHouse_1F_Movement_PushTowardStairs:
walk_up
step_end
LittlerootTown_BrendansHouse_1F_EventScript_EnterHouseMovingIn::
lockall
setvar VAR_0x8004, LOCALID_MOM
setvar VAR_0x8005, MALE
goto PlayersHouse_1F_EventScript_EnterHouseMovingIn
end
LittlerootTown_BrendansHouse_1F_EventScript_PetalburgGymReport::
lockall
setvar VAR_0x8004, MALE
setvar VAR_0x8005, LOCALID_MOM
goto PlayersHouse_1F_EventScript_PetalburgGymReportMale
end
LittlerootTown_BrendansHouse_1F_EventScript_YoureNewNeighbor::
lockall
playse SE_PIN
applymovement LOCALID_RIVAL_MOM, Common_Movement_ExclamationMark
waitmovement 0
applymovement LOCALID_RIVAL_MOM, Common_Movement_Delay48
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterLeft
applymovement LOCALID_RIVAL_MOM, LittlerootTown_BrendansHouse_1F_Movement_RivalMomApproach
waitmovement 0
special GetRivalSonDaughterString
msgbox RivalsHouse_1F_Text_OhYoureTheNewNeighbor, MSGBOX_DEFAULT
setflag FLAG_MET_RIVAL_MOM
setvar VAR_LITTLEROOT_HOUSES_STATE_MAY, 2
releaseall
end
LittlerootTown_BrendansHouse_1F_Movement_RivalMomApproach:
walk_down
walk_right
walk_right
walk_right
walk_right
walk_right
step_end
LittlerootTown_BrendansHouse_1F_EventScript_GoSeeRoom::
lockall
setvar VAR_0x8004, LOCALID_MOM
setvar VAR_0x8005, MALE
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFasterLeft
waitmovement 0
goto PlayersHouse_1F_EventScript_MomGoSeeRoom
end
LittlerootTown_BrendansHouse_1F_EventScript_MeetRival0::
lockall
setvar VAR_0x8008, 0
goto LittlerootTown_BrendansHouse_1F_EventScript_MeetRival
end
LittlerootTown_BrendansHouse_1F_EventScript_MeetRival1::
lockall
setvar VAR_0x8008, 1
goto LittlerootTown_BrendansHouse_1F_EventScript_MeetRival
end
LittlerootTown_BrendansHouse_1F_EventScript_MeetRival2::
lockall
setvar VAR_0x8008, 2
goto LittlerootTown_BrendansHouse_1F_EventScript_MeetRival
end
LittlerootTown_BrendansHouse_1F_EventScript_MeetRival::
playse SE_EXIT
delay 10
addobject LOCALID_RIVAL
delay 30
playse SE_PIN
applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
waitmovement 0
applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0
call_if_ne VAR_0x8008, 1, LittlerootTown_BrendansHouse_1F_EventScript_PlayerFaceBrendan
playbgm MUS_ENCOUNTER_BRENDAN, TRUE
call_if_eq VAR_0x8008, 0, LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer0
call_if_eq VAR_0x8008, 1, LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer1
call_if_eq VAR_0x8008, 2, LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer2
msgbox RivalsHouse_1F_Text_BrendanWhoAreYou, MSGBOX_DEFAULT
closemessage
call_if_eq VAR_0x8008, 0, LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs0
call_if_eq VAR_0x8008, 1, LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs1
call_if_eq VAR_0x8008, 2, LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs2
playse SE_EXIT
removeobject LOCALID_RIVAL
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_BRENDAN
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F_POKE_BALL
clearflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_BEDROOM
delay 30
setvar VAR_LITTLEROOT_RIVAL_STATE, 3
setvar VAR_LITTLEROOT_TOWN_STATE, 1
savebgm MUS_DUMMY
fadedefaultbgm
releaseall
end
LittlerootTown_BrendansHouse_1F_EventScript_PlayerFaceBrendan::
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterDown
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer0::
applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer0
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer1::
applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer1
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer2::
applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer2
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer0:
walk_in_place_faster_left
walk_left
walk_in_place_faster_up
walk_up
walk_up
walk_up
walk_up
step_end
LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer1:
walk_up
walk_up
walk_up
step_end
LittlerootTown_BrendansHouse_1F_Movement_BrendanApproachPlayer2:
walk_in_place_faster_right
walk_right
walk_in_place_faster_up
walk_up
walk_up
walk_up
walk_up
step_end
LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs0::
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit0
applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs0
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs1::
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit1
applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs1
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_BrendanGoUpstairs2::
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit2
applymovement LOCALID_RIVAL, LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs2
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit0:
delay_16
delay_8
walk_in_place_faster_right
step_end
LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit1:
delay_16
delay_8
walk_in_place_faster_right
delay_16
delay_16
walk_in_place_faster_up
step_end
LittlerootTown_BrendansHouse_1F_Movement_PlayerWatchBrendanExit2:
delay_16
delay_8
walk_in_place_faster_left
step_end
LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs0:
walk_in_place_faster_right
walk_right
walk_in_place_faster_up
walk_up
walk_up
step_end
LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs1:
walk_in_place_faster_right
walk_right
walk_in_place_faster_up
walk_up
walk_up
walk_in_place_faster_left
walk_left
walk_in_place_faster_up
walk_up
step_end
LittlerootTown_BrendansHouse_1F_Movement_BrendanGoUpstairs2:
walk_in_place_faster_left
walk_left
walk_in_place_faster_up
walk_up
walk_up
step_end
PlayersHouse_1F_Text_IsntItNiceInHere:
.string "Mom: See, {PLAYER}?\n"
2022-05-19 19:14:13 +02:00
.string "Isn't it nice in here, too?$"
PlayersHouse_1F_Text_MoversPokemonGoSetClock:
.string "The mover's Pokémon do all the work\n"
2022-05-19 19:14:13 +02:00
.string "of moving us in and cleaning up after.\l"
.string "This is so convenient!\p"
.string "{PLAYER}, your room is upstairs.\n"
.string "Go check it out, dear!\p"
.string "Dad bought you a new clock to mark\n"
2022-05-19 19:14:13 +02:00
.string "our move here.\l"
.string "Don't forget to set it!$"
PlayersHouse_1F_Text_ArentYouInterestedInRoom:
.string "Mom: Well, {PLAYER}?\p"
2022-05-19 19:14:13 +02:00
.string "Aren't you interested in seeing your\n"
.string "very own room?$"
PlayersHouse_1F_Text_GoSetTheClock:
.string "Mom: {PLAYER}.\p"
2022-05-19 19:14:13 +02:00
.string "Go set the clock in your room, honey.$"
PlayersHouse_1F_Text_OhComeQuickly:
.string "Mom: Oh! {PLAYER}, {PLAYER}!\n"
2022-05-19 19:14:13 +02:00
.string "Quick! Come quickly!$"
PlayersHouse_1F_Text_MaybeDadWillBeOn:
.string "Mom: Look! It's Petalburg Gym!\n"
.string "Maybe Dad will be on!$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_ItsOverWeMissedHim:
.string "Mom: Oh… It's over.\p"
.string "I think Dad was on, but we missed him.\n"
2022-05-19 19:14:13 +02:00
.string "Too bad.$"
PlayersHouse_1F_Text_GoIntroduceYourselfNextDoor:
.string "Oh, yes.\n"
.string "One of Dad's friends lives in town.\p"
.string "Prof. Birch is his name.\p"
2022-05-19 19:14:13 +02:00
.string "He lives right next door, so you should\n"
.string "go over and introduce yourself.$"
PlayersHouse_1F_Text_SeeYouHoney:
.string "Mom: See you, honey!$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_DidYouMeetProfBirch:
.string "Mom: Did you introduce yourself to\n"
.string "Prof. Birch?$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_YouShouldRestABit:
.string "Mom: How are you doing, {PLAYER}?\n"
2022-05-19 19:14:13 +02:00
.string "You look a little tired.\p"
.string "I think you should rest a bit.$"
PlayersHouse_1F_Text_TakeCareHoney:
.string "Mom: Take care, honey!$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_GotDadsBadgeHeresSomethingFromMom:
.string "Mom: Oh? Did Dad give you that Badge?\p"
.string "Then here's something from your Mom!$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_DontPushYourselfTooHard:
.string "Don't push yourself too hard, dear.\n"
.string "You can always come home.\p"
.string "Go for it, honey!$"
PlayersHouse_1F_Text_IsThatAPokenav:
.string "Mom: What is that, honey? A Pokénav?\n"
.string "Someone from Devon gave it to you?\p"
2022-05-19 19:14:13 +02:00
.string "Well, honey, how about registering\n"
.string "your mom?\p"
.string "… … …$"
PlayersHouse_1F_Text_RegisteredMom:
.string "Registered Mom\n"
.string "in the Pokénav.$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_Vigoroth1:
.string "Fugiiiiih!$"
PlayersHouse_1F_Text_Vigoroth2:
.string "Huggoh, uggo uggo…$"
PlayersHouse_1F_Text_ReportFromPetalburgGym:
.string "Interviewer: …We brought you this\n"
.string "report from in front of Petalburg Gym.$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_TheresAMovieOnTV:
.string "There is a movie on Tv.\p"
2022-05-19 19:14:13 +02:00
.string "Two men are dancing on a big piano\n"
.string "keyboard.\p"
.string "Better get going!$"
PlayersHouse_1F_Text_RunningShoesManual:
.string "It's the instruction booklet for the\n"
.string "Running Shoes.\p"
2022-05-19 19:14:13 +02:00
.string "“Press the B Button to run while\n"
.string "wearing your Running Shoes.\p"
.string "“Lace up your Running Shoes and hit\n"
2022-05-19 19:14:13 +02:00
.string "the road running!”$"
PlayersHouse_1F_Text_TicketFromBrineyCameForYou:
.string "Dad: Hm?\p"
2022-05-19 19:14:13 +02:00
.string "Hey, it's {PLAYER}!\p"
.string "It's been a while since I saw you,\n"
.string "but you look…stronger, somehow.\p"
.string "That's the impression I get.\n"
.string "But your old man hasn't given up yet!\p"
.string "Oh, yes, I have something for you.\n"
.string "This came to you from someone named\l"
.string "Mr. Briney.$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_PortsInSlateportLilycove:
.string "Dad: Hm, a Ticket for a ferry?\p"
2022-05-19 19:14:13 +02:00
.string "If I recall, there are ferry ports in\n"
.string "Slateport and Lilycove.$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_BetterGetBackToGym:
.string "I'd better get back to Petalburg Gym.\p"
.string "Mom, thanks for looking after the house\n"
2022-05-19 19:14:13 +02:00
.string "while I'm away.$"
PlayersHouse_1F_Text_DadShouldStayLonger:
.string "Mom: That Dad of yours…\p"
2022-05-19 19:14:13 +02:00
.string "He comes home for the first time in a\n"
.string "while, but all he talks about is Pokémon.\p"
2022-05-19 19:14:13 +02:00
.string "He should relax and stay a little longer.$"
PlayersHouse_1F_Text_IsThatABreakingStory:
.string "Mom: Is that a breaking news story?$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_LatiEmergencyNewsFlash:
.string "We bring you this emergency\n"
.string "news flash!\p"
.string "In various Hoenn locales, there have\n"
.string "been reports of a Bzzt…colored\l"
.string "Pokémon in flight.\p"
.string "The identity of this Pokémon is\n"
2022-05-19 19:14:13 +02:00
.string "currently unknown.\p"
.string "We now return you to the regular\n"
.string "movie program.$"
PlayersHouse_1F_Text_WhatColorDidTheySay:
.string "Mom: {PLAYER}, did you catch that?\p"
2022-05-19 19:14:13 +02:00
.string "What color did the announcer say\n"
.string "that Pokémon was?$"
2022-05-19 19:14:13 +02:00
PlayersHouse_1F_Text_StillUnknownPokemon:
.string "Mom: Well, isn't that something!\n"
.string "There are still unknown Pokémon.$"