pokecrystal-board/maps/PlayersHouse1F.asm

410 lines
7.9 KiB
NASM
Raw Normal View History

object_const_def
2018-01-22 16:10:09 -08:00
const PLAYERSHOUSE1F_MOM1
const PLAYERSHOUSE1F_MOM2
const PLAYERSHOUSE1F_MOM3
const PLAYERSHOUSE1F_MOM4
const PLAYERSHOUSE1F_POKEFAN_F
2015-11-26 21:22:14 -08:00
2018-01-22 16:10:09 -08:00
PlayersHouse1F_MapScripts:
def_scene_scripts
scene_script PlayersHouse1FNoop1Scene, SCENE_PLAYERSHOUSE1F_MEET_MOM
scene_script PlayersHouse1FNoop2Scene, SCENE_PLAYERSHOUSE1F_NOOP
def_callbacks
PlayersHouse1FNoop1Scene:
end
PlayersHouse1FNoop2Scene:
end
2018-03-01 11:20:27 -08:00
MeetMomLeftScript:
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
2018-03-01 11:20:27 -08:00
MeetMomRightScript:
playmusic MUSIC_MOM
2018-01-22 16:10:09 -08:00
showemote EMOTE_SHOCK, PLAYERSHOUSE1F_MOM1, 15
turnobject PLAYER, LEFT
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
2018-03-01 11:20:27 -08:00
iffalse .OnRight
applymovement PLAYERSHOUSE1F_MOM1, MomTurnsTowardPlayerMovement
sjump MeetMomScript
2018-03-01 11:20:27 -08:00
.OnRight:
applymovement PLAYERSHOUSE1F_MOM1, MomWalksToPlayerMovement
2018-03-01 11:20:27 -08:00
MeetMomScript:
2015-12-09 15:25:44 -08:00
opentext
writetext ElmsLookingForYouText
2019-11-03 09:48:54 -08:00
promptbutton
getstring STRING_BUFFER_4, PokegearName
2018-03-01 11:20:27 -08:00
scall PlayersHouse1FReceiveItemStd
2015-07-10 05:08:03 -07:00
setflag ENGINE_POKEGEAR
setflag ENGINE_PHONE_CARD
2016-01-27 09:25:12 -08:00
addcellnum PHONE_MOM
setscene SCENE_PLAYERSHOUSE1F_NOOP
2018-01-22 16:10:09 -08:00
setevent EVENT_PLAYERS_HOUSE_MOM_1
clearevent EVENT_PLAYERS_HOUSE_MOM_2
writetext MomGivesPokegearText
2019-11-03 09:48:54 -08:00
promptbutton
special SetDayOfWeek
2018-03-01 11:20:27 -08:00
.SetDayOfWeek:
writetext IsItDSTText
yesorno
2018-03-01 11:20:27 -08:00
iffalse .WrongDay
special InitialSetDSTFlag
yesorno
2018-03-01 11:20:27 -08:00
iffalse .SetDayOfWeek
sjump .DayOfWeekDone
2018-03-01 11:20:27 -08:00
.WrongDay:
special InitialClearDSTFlag
yesorno
2018-03-01 11:20:27 -08:00
iffalse .SetDayOfWeek
.DayOfWeekDone:
writetext ComeHomeForDSTText
yesorno
2018-03-01 11:20:27 -08:00
iffalse .ExplainPhone
sjump .KnowPhone
2018-03-01 11:20:27 -08:00
.KnowPhone:
writetext KnowTheInstructionsText
2019-11-03 09:48:54 -08:00
promptbutton
sjump .FinishPhone
2018-03-01 11:20:27 -08:00
.ExplainPhone:
writetext DontKnowTheInstructionsText
2019-11-03 09:48:54 -08:00
promptbutton
sjump .FinishPhone
2018-03-01 11:20:27 -08:00
.FinishPhone:
writetext InstructionsNextText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
2018-03-01 11:20:27 -08:00
iftrue .FromRight
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2
2018-03-01 11:20:27 -08:00
iffalse .FromLeft
sjump .Finish
2018-03-01 11:20:27 -08:00
.FromRight:
applymovement PLAYERSHOUSE1F_MOM1, MomTurnsBackMovement
sjump .Finish
2018-03-01 11:20:27 -08:00
.FromLeft:
applymovement PLAYERSHOUSE1F_MOM1, MomWalksBackMovement
sjump .Finish
2018-03-01 11:20:27 -08:00
.Finish:
special RestartMapMusic
turnobject PLAYERSHOUSE1F_MOM1, LEFT
end
2018-03-01 11:20:27 -08:00
MeetMomTalkedScript:
playmusic MUSIC_MOM
sjump MeetMomScript
PokegearName:
db "#GEAR@"
2018-03-01 11:20:27 -08:00
PlayersHouse1FReceiveItemStd:
jumpstd ReceiveItemScript
end
2018-03-01 11:20:27 -08:00
MomScript:
faceplayer
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2
checkscene
iffalse MeetMomTalkedScript ; SCENE_PLAYERSHOUSE1F_MEET_MOM
2015-12-09 15:25:44 -08:00
opentext
checkevent EVENT_FIRST_TIME_BANKING_WITH_MOM
2018-03-01 11:20:27 -08:00
iftrue .FirstTimeBanking
2013-09-24 00:48:58 -07:00
checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
2018-03-01 11:20:27 -08:00
iftrue .BankOfMom
2013-09-24 00:48:58 -07:00
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
2018-03-01 11:20:27 -08:00
iftrue .GaveMysteryEgg
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
2018-03-01 11:20:27 -08:00
iftrue .GotAPokemon
writetext HurryUpElmIsWaitingText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.GotAPokemon:
writetext SoWhatWasProfElmsErrandText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.FirstTimeBanking:
writetext ImBehindYouText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2018-03-01 11:20:27 -08:00
.GaveMysteryEgg:
setevent EVENT_FIRST_TIME_BANKING_WITH_MOM
2018-03-01 11:20:27 -08:00
.BankOfMom:
2013-09-24 00:48:58 -07:00
setevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
special BankOfMom
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
NeighborScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
checktime MORN
iftrue .MornScript
checktime DAY
iftrue .DayScript
checktime NITE
iftrue .NiteScript
.MornScript:
writetext NeighborMornIntroText
2019-11-03 09:48:54 -08:00
promptbutton
sjump .Main
.DayScript:
writetext NeighborDayIntroText
2019-11-03 09:48:54 -08:00
promptbutton
sjump .Main
.NiteScript:
writetext NeighborNiteIntroText
2019-11-03 09:48:54 -08:00
promptbutton
sjump .Main
.Main:
writetext NeighborText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
turnobject PLAYERSHOUSE1F_POKEFAN_F, RIGHT
end
PlayersHouse1FTVScript:
jumptext PlayersHouse1FTVText
PlayersHouse1FStoveScript:
jumptext PlayersHouse1FStoveText
PlayersHouse1FSinkScript:
jumptext PlayersHouse1FSinkText
PlayersHouse1FFridgeScript:
jumptext PlayersHouse1FFridgeText
MomTurnsTowardPlayerMovement:
2016-05-14 10:46:14 -07:00
turn_head RIGHT
step_end
MomWalksToPlayerMovement:
2016-05-14 10:46:14 -07:00
slow_step RIGHT
step_end
MomTurnsBackMovement:
2016-05-14 10:46:14 -07:00
turn_head LEFT
step_end
MomWalksBackMovement:
2016-05-14 10:46:14 -07:00
slow_step LEFT
step_end
ElmsLookingForYouText:
text "Oh, <PLAYER>…! Our"
line "neighbor, PROF."
para "ELM, was looking"
line "for you."
para "He said he wanted"
line "you to do some-"
cont "thing for him."
para "Oh! I almost for-"
line "got! Your #MON"
para "GEAR is back from"
line "the repair shop."
para "Here you go!"
done
MomGivesPokegearText:
text "#MON GEAR, or"
line "just #GEAR."
para "It's essential if"
line "you want to be a"
cont "good trainer."
para "Oh, the day of the"
line "week isn't set."
para "You mustn't forget"
line "that!"
done
IsItDSTText:
text "Is it Daylight"
line "Saving Time now?"
done
ComeHomeForDSTText:
text "Come home to"
line "adjust your clock"
para "for Daylight"
line "Saving Time."
para "By the way, do you"
line "know how to use"
cont "the PHONE?"
done
KnowTheInstructionsText:
text "Don't you just"
line "turn the #GEAR"
para "on and select the"
line "PHONE icon?"
done
DontKnowTheInstructionsText:
text "I'll read the"
line "instructions."
para "Turn the #GEAR"
line "on and select the"
cont "PHONE icon."
done
InstructionsNextText:
text "Phone numbers are"
line "stored in memory."
para "Just choose a name"
line "you want to call."
para "Gee, isn't that"
line "convenient?"
done
HurryUpElmIsWaitingText:
text "PROF.ELM is wait-"
line "ing for you."
para "Hurry up, baby!"
done
SoWhatWasProfElmsErrandText:
text "So, what was PROF."
line "ELM's errand?"
para "…"
para "That does sound"
line "challenging."
para "But, you should be"
line "proud that people"
cont "rely on you."
done
ImBehindYouText:
text "<PLAYER>, do it!"
para "I'm behind you all"
line "the way!"
done
NeighborMornIntroText:
text "Good morning,"
line "<PLAY_G>!"
para "I'm visiting!"
done
NeighborDayIntroText:
text "Hello, <PLAY_G>!"
line "I'm visiting!"
done
NeighborNiteIntroText:
text "Good evening,"
line "<PLAY_G>!"
para "I'm visiting!"
done
NeighborText:
text "<PLAY_G>, have you"
line "heard?"
para "My daughter is"
line "adamant about"
para "becoming PROF."
line "ELM's assistant."
para "She really loves"
line "#MON!"
done
PlayersHouse1FStoveText:
text "Mom's specialty!"
para "CINNABAR VOLCANO"
line "BURGER!"
done
PlayersHouse1FSinkText:
text "The sink is spot-"
line "less. Mom likes it"
cont "clean."
done
PlayersHouse1FFridgeText:
text "Let's see what's"
line "in the fridge…"
para "FRESH WATER and"
line "tasty LEMONADE!"
done
PlayersHouse1FTVText:
text "There's a movie on"
line "TV: Stars dot the"
para "sky as two boys"
line "ride on a train…"
para "I'd better get"
line "rolling too!"
done
2018-01-22 16:10:09 -08:00
PlayersHouse1F_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-01 19:22:07 -08:00
warp_event 6, 7, NEW_BARK_TOWN, 2
warp_event 7, 7, NEW_BARK_TOWN, 2
warp_event 9, 0, PLAYERS_HOUSE_2F, 1
def_coord_events
coord_event 8, 4, SCENE_PLAYERSHOUSE1F_MEET_MOM, MeetMomLeftScript
coord_event 9, 4, SCENE_PLAYERSHOUSE1F_MEET_MOM, MeetMomRightScript
def_bg_events
bg_event 0, 1, BGEVENT_READ, PlayersHouse1FStoveScript
bg_event 1, 1, BGEVENT_READ, PlayersHouse1FSinkScript
bg_event 2, 1, BGEVENT_READ, PlayersHouse1FFridgeScript
bg_event 4, 1, BGEVENT_READ, PlayersHouse1FTVScript
def_object_events
2018-03-01 11:20:27 -08:00
object_event 7, 4, SPRITE_MOM, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MomScript, EVENT_PLAYERS_HOUSE_MOM_1
object_event 2, 2, SPRITE_MOM, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, MORN, 0, OBJECTTYPE_SCRIPT, 0, MomScript, EVENT_PLAYERS_HOUSE_MOM_2
object_event 7, 4, SPRITE_MOM, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, DAY, 0, OBJECTTYPE_SCRIPT, 0, MomScript, EVENT_PLAYERS_HOUSE_MOM_2
object_event 0, 2, SPRITE_MOM, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, NITE, 0, OBJECTTYPE_SCRIPT, 0, MomScript, EVENT_PLAYERS_HOUSE_MOM_2
2018-02-01 19:22:07 -08:00
object_event 4, 4, SPRITE_POKEFAN_F, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, NeighborScript, EVENT_PLAYERS_HOUSE_1F_NEIGHBOR