pokeemerald/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc

410 lines
13 KiB
PHP
Raw Normal View History

.set LOCALID_MOM, 1
.set LOCALID_RIVAL_MOM, 4
.set LOCALID_RIVAL, 7
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_MapScripts::
map_script MAP_SCRIPT_ON_LOAD, LittlerootTown_MaysHouse_1F_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_MaysHouse_1F_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, LittlerootTown_MaysHouse_1F_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_OnLoad:
call_if_lt VAR_LITTLEROOT_INTRO_STATE, 6, LittlerootTown_MaysHouse_1F_EventScript_SetMovingBoxes
call_if_set FLAG_RECEIVED_RUNNING_SHOES, LittlerootTown_MaysHouse_1F_EventScript_CheckShowShoesManual
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_SetMovingBoxes::
2021-11-16 23:12:16 +01:00
setmetatile 5, 4, METATILE_BrendansMaysHouse_MovingBox_Open, TRUE
setmetatile 5, 2, METATILE_BrendansMaysHouse_MovingBox_Closed, TRUE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_CheckShowShoesManual::
2017-11-10 02:21:31 +01:00
checkplayergender
goto_if_eq VAR_RESULT, FEMALE, LittlerootTown_MaysHouse_1F_EventScript_ShowRunningShoesManual
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_ShowRunningShoesManual::
2021-11-16 23:12:16 +01:00
setmetatile 6, 7, METATILE_BrendansMaysHouse_BookOnTable, TRUE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_OnTransition:
call_if_eq VAR_LITTLEROOT_INTRO_STATE, 3, LittlerootTown_MaysHouse_1F_EventScript_MoveMomToDoor
call_if_eq VAR_LITTLEROOT_INTRO_STATE, 5, LittlerootTown_MaysHouse_1F_EventScript_MoveMomToStairs
call_if_eq VAR_LITTLEROOT_INTRO_STATE, 6, LittlerootTown_MaysHouse_1F_EventScript_MoveMomToTV
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MoveMomToStairs::
setobjectxyperm LOCALID_MOM, 2, 4
setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MoveMomToTV::
setobjectxyperm LOCALID_MOM, 6, 5
setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MoveMomToDoor::
setobjectxyperm LOCALID_MOM, 1, 8
setobjectmovementtype LOCALID_MOM, MOVEMENT_TYPE_FACE_UP
2017-11-10 02:21:31 +01:00
return
@ Many of the below scripts have no gender check because they assume youre in the correct house
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_OnFrame:
map_script_2 VAR_LITTLEROOT_INTRO_STATE, 3, LittlerootTown_MaysHouse_1F_EventScript_EnterHouseMovingIn
map_script_2 VAR_LITTLEROOT_INTRO_STATE, 5, LittlerootTown_MaysHouse_1F_EventScript_GoUpstairsToSetClock
map_script_2 VAR_LITTLEROOT_INTRO_STATE, 6, LittlerootTown_MaysHouse_1F_EventScript_PetalburgGymReport
2019-11-08 08:03:45 +01:00
map_script_2 VAR_LITTLEROOT_HOUSES_STATE_BRENDAN, 1, LittlerootTown_MaysHouse_1F_EventScript_YoureNewNeighbor
map_script_2 VAR_LITTLEROOT_HOUSES_STATE_MAY, 3, PlayersHouse_1F_EventScript_GetSSTicketAndSeeLatiTV
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_GoUpstairsToSetClock::
2017-11-10 02:21:31 +01:00
lockall
msgbox PlayersHouse_1F_Text_GoSetTheClock, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PushTowardStairs
applymovement LOCALID_MOM, LittlerootTown_MaysHouse_1F_Movement_PushTowardStairs
2017-11-10 02:21:31 +01:00
waitmovement 0
warp MAP_LITTLEROOT_TOWN_MAYS_HOUSE_2F, 1, 1
2017-11-10 02:21:31 +01:00
waitstate
releaseall
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_PushTowardStairs:
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_EnterHouseMovingIn::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8004, LOCALID_MOM
setvar VAR_0x8005, FEMALE
goto PlayersHouse_1F_EventScript_EnterHouseMovingIn
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_PetalburgGymReport::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8004, FEMALE
setvar VAR_0x8005, LOCALID_MOM
goto PlayersHouse_1F_EventScript_PetalburgGymReportFemale
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_YoureNewNeighbor::
2017-11-10 02:21:31 +01:00
lockall
playse SE_PIN
applymovement LOCALID_RIVAL_MOM, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_RIVAL_MOM, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterRight
applymovement LOCALID_RIVAL_MOM, LittlerootTown_MaysHouse_1F_Movement_RivalMomApproach
2017-11-10 02:21:31 +01:00
waitmovement 0
special GetRivalSonDaughterString
msgbox RivalsHouse_1F_Text_OhYoureTheNewNeighbor, MSGBOX_DEFAULT
2019-01-02 22:12:43 +01:00
setflag FLAG_MET_RIVAL_MOM
2019-11-08 08:03:45 +01:00
setvar VAR_LITTLEROOT_HOUSES_STATE_BRENDAN, 2
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_RivalMomApproach:
walk_down
walk_left
walk_left
walk_left
walk_left
walk_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_EventScript_RivalMom::
2017-11-10 02:21:31 +01:00
lock
faceplayer
goto_if_set FLAG_DEFEATED_RIVAL_ROUTE103, RivalsHouse_1F_EventScript_GoHomeEverySoOften
goto_if_set FLAG_SYS_POKEMON_GET, RivalsHouse_1F_EventScript_RivalIsOnRoute103
goto_if_eq VAR_LITTLEROOT_RIVAL_STATE, 3, RivalsHouse_1F_EventScript_RivalTooBusy
special GetRivalSonDaughterString
msgbox RivalsHouse_1F_Text_LikeChildLikeFather, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_EventScript_RivalTooBusy::
msgbox RivalsHouse_1F_Text_TooBusyToNoticeVisit, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_EventScript_RivalIsOnRoute103::
msgbox RivalsHouse_1F_Text_WentOutToRoute103, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_EventScript_GoHomeEverySoOften::
msgbox RivalsHouse_1F_Text_ShouldGoHomeEverySoOften, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_EventScript_RivalSibling::
2017-11-10 02:21:31 +01:00
lock
faceplayer
special GetPlayerBigGuyGirlString
msgbox RivalsHouse_1F_Text_DoYouHavePokemon, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_GoSeeRoom::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8004, LOCALID_MOM
setvar VAR_0x8005, FEMALE
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFasterRight
2017-11-10 02:21:31 +01:00
waitmovement 0
goto PlayersHouse_1F_EventScript_MomGoSeeRoom
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MeetRival0::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8008, 0
goto LittlerootTown_MaysHouse_1F_EventScript_MeetRival
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MeetRival1::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8008, 1
goto LittlerootTown_MaysHouse_1F_EventScript_MeetRival
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MeetRival2::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8008, 2
goto LittlerootTown_MaysHouse_1F_EventScript_MeetRival
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MeetRival::
2020-08-21 00:02:00 +02:00
playse SE_EXIT
2017-11-10 02:21:31 +01:00
delay 10
addobject LOCALID_RIVAL
2017-11-10 02:21:31 +01:00
delay 30
playse SE_PIN
applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_RIVAL, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
call_if_ne VAR_0x8008, 1, LittlerootTown_MaysHouse_1F_EventScript_PlayerFaceMay
2021-05-21 22:08:00 +02:00
playbgm MUS_ENCOUNTER_MAY, TRUE
call_if_eq VAR_0x8008, 0, LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer0
call_if_eq VAR_0x8008, 1, LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer1
call_if_eq VAR_0x8008, 2, LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer2
msgbox RivalsHouse_1F_Text_MayWhoAreYou, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call_if_eq VAR_0x8008, 0, LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs0
call_if_eq VAR_0x8008, 1, LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs1
call_if_eq VAR_0x8008, 2, LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs2
2020-08-21 00:02:00 +02:00
playse SE_EXIT
removeobject LOCALID_RIVAL
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_MAY
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_2F_POKE_BALL
clearflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_BEDROOM
2017-11-10 02:21:31 +01:00
delay 30
setvar VAR_LITTLEROOT_RIVAL_STATE, 3
2019-08-05 17:23:45 +02:00
setvar VAR_LITTLEROOT_TOWN_STATE, 1
2017-12-22 08:46:19 +01:00
savebgm MUS_DUMMY
2017-11-10 02:21:31 +01:00
fadedefaultbgm
releaseall
end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_PlayerFaceMay::
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterDown
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer0::
applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer0
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer1::
applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer1
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer2::
applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer2
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer0:
walk_in_place_faster_left
walk_left
walk_in_place_faster_up
walk_up
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer1:
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_MayApproachPlayer2:
walk_in_place_faster_right
walk_right
walk_in_place_faster_up
walk_up
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs0::
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit0
applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs0
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs1::
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit1
applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs1
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_EventScript_MayGoUpstairs2::
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit2
applymovement LOCALID_RIVAL, LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs2
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit0:
delay_16
delay_8
walk_in_place_faster_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit1:
delay_16
delay_8
walk_in_place_faster_right
delay_16
delay_16
walk_in_place_faster_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_PlayerWatchMayExit2:
delay_16
delay_8
walk_in_place_faster_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs0:
walk_in_place_faster_right
walk_right
walk_in_place_faster_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs1:
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
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
LittlerootTown_MaysHouse_1F_Movement_MayGoUpstairs2:
walk_in_place_faster_left
walk_left
walk_in_place_faster_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_Text_OhYoureTheNewNeighbor:
.string "Oh, hello. And you are?\p"
.string "… … … … … … … … …\n"
.string "… … … … … … … … …\p"
2018-12-07 16:41:08 +01:00
.string "Oh, you're {PLAYER}{KUN}, our new next-door\n"
.string "neighbor! Hi!\p"
.string "We have a {STR_VAR_1} about the same\n"
.string "age as you.\p"
.string "Our {STR_VAR_1} was excited about making\n"
.string "a new friend.\p"
.string "Our {STR_VAR_1} is upstairs, I think.$"
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_Text_LikeChildLikeFather:
.string "Like child, like father.\p"
.string "My husband is as wild about POKéMON\n"
.string "as our child.\p"
2018-12-07 16:41:08 +01:00
.string "If he's not at his LAB, he's likely\n"
.string "scrabbling about in grassy places.$"
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_Text_TooBusyToNoticeVisit:
.string "That {RIVAL}!\p"
.string "I guess our child is too busy with\n"
.string "POKéMON to notice that you came\l"
.string "to visit, {PLAYER}{KUN}.$"
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_Text_WentOutToRoute103:
.string "Oh, {RIVAL} went out to ROUTE 103\n"
.string "just a little while ago.\p"
.string "Like father, like child.\n"
2018-12-07 16:41:08 +01:00
.string "{RIVAL} can't stay quietly at home.$"
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_Text_ShouldGoHomeEverySoOften:
2018-12-07 16:41:08 +01:00
.string "I think it's wonderful for people to\n"
.string "travel with POKéMON.\p"
.string "But you should go home every so often\n"
2018-12-07 16:41:08 +01:00
.string "to let your mother know you're okay.\p"
.string "She might not say it, but I'm sure she\n"
.string "worries about you, {PLAYER}{KUN}.$"
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_Text_MayWhoAreYou:
.string "Huh?\n"
.string "Who… Who are you?\p"
.string "… … … … … … … …\n"
.string "… … … … … … … …\p"
2018-12-07 16:41:08 +01:00
.string "Oh, you're {PLAYER}{KUN}.\n"
.string "So your move was today.\p"
2018-12-07 16:41:08 +01:00
.string "Um… I'm MAY.\n"
.string "Glad to meet you!\p"
.string "I…\n"
.string "I have this dream of becoming friends\l"
.string "with POKéMON all over the world.\p"
.string "I… I heard about you, {PLAYER}{KUN}, from\n"
.string "my dad, PROF. BIRCH.\p"
.string "I was hoping that you would be nice,\n"
.string "{PLAYER}{KUN}, and that we could be friends.\p"
2018-12-07 16:41:08 +01:00
.string "Oh, this is silly, isn't it?\n"
.string "I… I've just met you, {PLAYER}{KUN}.\p"
.string "Eheheh…\p"
.string "Oh, no! I forgot!\p"
.string "I was supposed to go help Dad catch\n"
.string "some wild POKéMON!\p"
2018-12-07 16:41:08 +01:00
.string "{PLAYER}{KUN}, I'll catch you later!$"
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_Text_BrendanWhoAreYou:
.string "Hey!\n"
.string "You…\p"
.string "Who are you?\p"
2018-12-07 16:41:08 +01:00
.string "Oh, you're {PLAYER}, aren't you?\n"
.string "Moved in next door, right?\p"
2018-12-07 16:41:08 +01:00
.string "I didn't know that you're a girl.\p"
.string "Dad, PROF. BIRCH, said that our new\n"
2018-12-07 16:41:08 +01:00
.string "next-door neighbor is a GYM LEADER's\l"
.string "kid, so I assumed you'd be a guy.\p"
.string "My name's BRENDAN.\n"
.string "So, hi, neighbor!\p"
2018-12-07 16:41:08 +01:00
.string "Huh? Hey, {PLAYER}, don't you have\n"
.string "a POKéMON?\p"
.string "Do you want me to go catch you one?\p"
.string "Aw, darn, I forgot…\p"
2018-12-07 16:41:08 +01:00
.string "I'm supposed to go help my dad catch\n"
.string "some wild POKéMON.\p"
.string "Some other time, okay?$"
2021-07-20 21:18:31 +02:00
RivalsHouse_1F_Text_DoYouHavePokemon:
.string "Hi, neighbor!\p"
.string "Do you already have your\n"
.string "own POKéMON?$"