pokecrystal/maps/PlayersHouse1F.asm

410 lines
7.7 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
2018-01-23 00:10:09 +00:00
const PLAYERSHOUSE1F_MOM1
const PLAYERSHOUSE1F_MOM2
const PLAYERSHOUSE1F_MOM3
const PLAYERSHOUSE1F_MOM4
const PLAYERSHOUSE1F_POKEFAN_F
2015-11-27 05:22:14 +00:00
2018-01-23 00:10:09 +00:00
PlayersHouse1F_MapScripts:
db 2 ; scene scripts
scene_script .DummyScene0
scene_script .DummyScene1
db 0 ; callbacks
.DummyScene0:
end
.DummyScene1:
end
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a4d8:
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a4db:
playmusic MUSIC_MOM
2018-01-23 00:10:09 +00:00
showemote EMOTE_SHOCK, PLAYERSHOUSE1F_MOM1, 15
spriteface PLAYER, LEFT
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
iffalse UnknownScript_0x7a4f2
2018-01-23 00:10:09 +00:00
applymovement PLAYERSHOUSE1F_MOM1, MovementData_0x7a5fc
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x7a4f6
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a4f2:
2018-01-23 00:10:09 +00:00
applymovement PLAYERSHOUSE1F_MOM1, MovementData_0x7a5fe
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a4f6:
2015-12-09 23:25:44 +00:00
opentext
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a604
2015-11-30 03:29:45 +00:00
buttonsound
2018-01-12 06:40:20 +00:00
stringtotext GearName, MEM_BUFFER_1
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x7a57e
2015-07-10 12:08:03 +00:00
setflag ENGINE_POKEGEAR
setflag ENGINE_PHONE_CARD
2016-01-27 17:25:12 +00:00
addcellnum PHONE_MOM
setscene 1
2018-01-23 00:10:09 +00:00
setevent EVENT_PLAYERS_HOUSE_MOM_1
clearevent EVENT_PLAYERS_HOUSE_MOM_2
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a6bd
2015-11-30 03:29:45 +00:00
buttonsound
special SetDayOfWeek
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a519:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a742
yesorno
iffalse UnknownScript_0x7a52a
special InitialSetDSTFlag
yesorno
iffalse UnknownScript_0x7a519
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x7a531
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a52a:
special InitialClearDSTFlag
yesorno
iffalse UnknownScript_0x7a519
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a531:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a763
yesorno
iffalse UnknownScript_0x7a542
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x7a53b
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a53b:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a7cb
2015-11-30 03:29:45 +00:00
buttonsound
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x7a549
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a542:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a807
2015-11-30 03:29:45 +00:00
buttonsound
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x7a549
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a549:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a850
2015-11-25 15:16:29 +00:00
waitbutton
closetext
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_1
iftrue UnknownScript_0x7a55d
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2
iffalse UnknownScript_0x7a564
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x7a56b
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a55d:
2018-01-23 00:10:09 +00:00
applymovement PLAYERSHOUSE1F_MOM1, MovementData_0x7a600
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x7a56b
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a564:
2018-01-23 00:10:09 +00:00
applymovement PLAYERSHOUSE1F_MOM1, MovementData_0x7a602
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x7a56b
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a56b:
special RestartMapMusic
2018-01-23 00:10:09 +00:00
spriteface PLAYERSHOUSE1F_MOM1, LEFT
end
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a572:
playmusic MUSIC_MOM
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x7a4f6
2015-07-10 08:45:35 +00:00
GearName:
db "#GEAR@"
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a57e:
jumpstd receiveitem
end
2015-07-10 08:45:35 +00:00
MomScript_0x7a582:
faceplayer
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_2
checkscene
iffalse UnknownScript_0x7a572
2015-12-09 23:25:44 +00:00
opentext
checkevent EVENT_FIRST_TIME_BANKING_WITH_MOM
iftrue UnknownScript_0x7a5af
2013-09-24 07:48:58 +00:00
checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
iftrue UnknownScript_0x7a5b8
2013-09-24 07:48:58 +00:00
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
iftrue UnknownScript_0x7a5b5
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
iftrue UnknownScript_0x7a5a9
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a8b5
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a5a9:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a8e5
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a5af:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x7a957
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a5b5:
setevent EVENT_FIRST_TIME_BANKING_WITH_MOM
2015-07-10 08:45:35 +00:00
UnknownScript_0x7a5b8:
2013-09-24 07:48:58 +00:00
setevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
special BankOfMom
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
NeighborScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
checkmorn
iftrue .MornScript
checkday
iftrue .DayScript
checknite
iftrue .NiteScript
.MornScript:
writetext NeighborMornIntroText
2015-11-30 03:29:45 +00:00
buttonsound
jump .Main
.DayScript:
writetext NeighborDayIntroText
2015-11-30 03:29:45 +00:00
buttonsound
jump .Main
.NiteScript:
writetext NeighborNiteIntroText
2015-11-30 03:29:45 +00:00
buttonsound
jump .Main
.Main:
writetext NeighborText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2018-01-23 00:10:09 +00:00
spriteface PLAYERSHOUSE1F_POKEFAN_F, RIGHT
end
TVScript:
jumptext TVText
StoveScript:
jumptext StoveText
SinkScript:
jumptext SinkText
FridgeScript:
jumptext FridgeText
2015-07-10 08:45:35 +00:00
MovementData_0x7a5fc:
2016-05-14 17:46:14 +00:00
turn_head RIGHT
step_end
2015-07-10 08:45:35 +00:00
MovementData_0x7a5fe:
2016-05-14 17:46:14 +00:00
slow_step RIGHT
step_end
2015-07-10 08:45:35 +00:00
MovementData_0x7a600:
2016-05-14 17:46:14 +00:00
turn_head LEFT
step_end
2015-07-10 08:45:35 +00:00
MovementData_0x7a602:
2016-05-14 17:46:14 +00:00
slow_step LEFT
step_end
2015-07-10 08:45:35 +00:00
UnknownText_0x7a604:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x7a6bd:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x7a742:
text "Is it Daylight"
line "Saving Time now?"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x7a763:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x7a7cb:
text "Don't you just"
line "turn the #GEAR"
para "on and select the"
line "PHONE icon?"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x7a807:
text "I'll read the"
line "instructions."
para "Turn the #GEAR"
line "on and select the"
cont "PHONE icon."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x7a850:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x7a8b5:
text "PROF.ELM is wait-"
line "ing for you."
para "Hurry up, baby!"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x7a8e5:
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
2015-07-10 08:45:35 +00:00
UnknownText_0x7a957:
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
StoveText:
text "Mom's specialty!"
para "CINNABAR VOLCANO"
line "BURGER!"
done
SinkText:
text "The sink is spot-"
line "less. Mom likes it"
cont "clean."
done
FridgeText:
text "Let's see what's"
line "in the fridge…"
para "FRESH WATER and"
line "tasty LEMONADE!"
done
TVText:
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-23 00:10:09 +00:00
PlayersHouse1F_MapEvents:
db 0, 0 ; filler
db 3 ; warp events
warp_event 6, 7, 2, NEW_BARK_TOWN
warp_event 7, 7, 2, NEW_BARK_TOWN
warp_event 9, 0, 1, PLAYERS_HOUSE_2F
db 2 ; coord events
coord_event 8, 4, 0, UnknownScript_0x7a4d8
coord_event 9, 4, 0, UnknownScript_0x7a4db
db 4 ; bg events
bg_event 0, 1, BGEVENT_READ, StoveScript
bg_event 1, 1, BGEVENT_READ, SinkScript
bg_event 2, 1, BGEVENT_READ, FridgeScript
bg_event 4, 1, BGEVENT_READ, TVScript
db 5 ; object events
2018-01-23 00:10:09 +00:00
object_event 7, 4, SPRITE_MOM, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MomScript_0x7a582, EVENT_PLAYERS_HOUSE_MOM_1
object_event 2, 2, SPRITE_MOM, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, MORN, 0, OBJECTTYPE_SCRIPT, 0, MomScript_0x7a582, EVENT_PLAYERS_HOUSE_MOM_2
object_event 7, 4, SPRITE_MOM, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, DAY, 0, OBJECTTYPE_SCRIPT, 0, MomScript_0x7a582, EVENT_PLAYERS_HOUSE_MOM_2
object_event 0, 2, SPRITE_MOM, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, NITE, 0, OBJECTTYPE_SCRIPT, 0, MomScript_0x7a582, EVENT_PLAYERS_HOUSE_MOM_2
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