summaryrefslogtreecommitdiff
path: root/maps/BillsFamilysHouse.asm
diff options
context:
space:
mode:
Diffstat (limited to 'maps/BillsFamilysHouse.asm')
-rw-r--r--maps/BillsFamilysHouse.asm244
1 files changed, 244 insertions, 0 deletions
diff --git a/maps/BillsFamilysHouse.asm b/maps/BillsFamilysHouse.asm
new file mode 100644
index 00000000..b80aacc7
--- /dev/null
+++ b/maps/BillsFamilysHouse.asm
@@ -0,0 +1,244 @@
+ const_def 2 ; object constants
+ const BILLSFAMILYSHOUSE_BILL
+ const BILLSFAMILYSHOUSE_POKEFAN_F
+ const BILLSFAMILYSHOUSE_TWIN
+
+BillsFamilysHouse_MapScripts:
+ db 0 ; scene scripts
+
+ db 0 ; callbacks
+
+BillScript:
+ faceplayer
+ opentext
+ checkevent EVENT_GOT_EEVEE
+ iftrue .GotEevee
+ writetext BillTakeThisEeveeText
+ yesorno
+ iffalse .Refused
+ writetext BillImCountingOnYouText
+ buttonsound
+ waitsfx
+ checkcode VAR_PARTYCOUNT
+ ifequal PARTY_LENGTH, .NoRoom
+ writetext ReceivedEeveeText
+ playsound SFX_CAUGHT_MON
+ waitsfx
+ givepoke EEVEE, 20
+ setevent EVENT_GOT_EEVEE
+ writetext BillEeveeMayEvolveText
+ waitbutton
+ closetext
+ end
+
+.NoRoom:
+ writetext BillPartyFullText
+ waitbutton
+ closetext
+ end
+
+.Refused:
+ writetext BillNoEeveeText
+ waitbutton
+ closetext
+ end
+
+.GotEevee:
+ writetext BillPopWontWorkText
+ waitbutton
+ closetext
+ end
+
+BillsMomScript:
+ faceplayer
+ opentext
+ checkevent EVENT_MET_BILL
+ iffalse .HaventMetBill
+ writetext BillsPopText
+ waitbutton
+ closetext
+ end
+
+.HaventMetBill:
+ writetext BillsMomText
+ waitbutton
+ closetext
+ end
+
+BillsSisterScript:
+ faceplayer
+ opentext
+ checkcellnum PHONE_BILL
+ iftrue .GotBillsNumber
+ writetext BillsSisterUsefulNumberText
+ askforphonenumber PHONE_BILL
+ ifequal PHONE_CONTACTS_FULL, .NoRoom
+ ifequal PHONE_CONTACT_REFUSED, .Refused
+ waitsfx
+ addcellnum PHONE_BILL
+ writetext RecordedBillsNumberText
+ playsound SFX_REGISTER_PHONE_NUMBER
+ waitsfx
+ buttonsound
+.GotBillsNumber:
+ writetext BillsSisterStorageSystemText
+ waitbutton
+ closetext
+ end
+
+.Refused:
+ writetext BillsSisterRefusedNumberText
+ waitbutton
+ closetext
+ end
+
+.NoRoom:
+ writetext BillsSisterPhoneFullText
+ buttonsound
+ jump .Refused
+
+BillsHouseBookshelf1:
+ jumpstd picturebookshelf
+
+BillsHouseBookshelf2:
+ jumpstd magazinebookshelf
+
+BillsHouseRadio:
+ jumpstd radio2
+
+BillTakeThisEeveeText:
+ text "BILL: Hi, <PLAYER>!"
+ line "Do us a favor and"
+ cont "take this EEVEE."
+
+ para "It came over when"
+ line "I was adjusting"
+ cont "the TIME CAPSULE."
+
+ para "Someone has to"
+ line "take care of it,"
+
+ para "but I don't like"
+ line "being outside."
+
+ para "Can I count on you"
+ line "to play with it,"
+ cont "<PLAYER>?"
+ done
+
+BillImCountingOnYouText:
+ text "BILL: I knew it!"
+ line "Way to go, hero!"
+
+ para "You're the real"
+ line "deal, dude!"
+
+ para "OK, I'm counting"
+ line "on you. Take good"
+ cont "care of it."
+ done
+
+ReceivedEeveeText:
+ text "<PLAYER> received"
+ line "EEVEE!"
+ done
+
+BillEeveeMayEvolveText:
+ text "BILL: PROF.ELM"
+ line "claims EEVEE may"
+
+ para "evolve in new and"
+ line "unknown ways."
+ done
+
+BillPartyFullText:
+ text "Whoa, wait. You"
+ line "can't carry any"
+ cont "more #MON."
+ done
+
+BillNoEeveeText:
+ text "Oh… Now what to"
+ line "do?"
+ done
+
+BillPopWontWorkText:
+ text "BILL: I used to"
+ line "experiment with a"
+ cont "TELEPORTER."
+
+ para "I ought to do a"
+ line "follow-up."
+ done
+
+BillsPopText:
+ text "Oh, you collect"
+ line "#MON? My son"
+ cont "BILL is an expert."
+
+ para "He had to leave"
+ line "for the #MON"
+
+ para "CENTER in ECRUTEAK"
+ line "CITY."
+ done
+
+BillsMomText:
+ text "I am so glad to"
+ line "see my son again."
+ done
+
+BillsSisterUsefulNumberText:
+ text "Are you a trainer?"
+
+ para "I've got a useful"
+ line "phone number for"
+ cont "you."
+ done
+
+RecordedBillsNumberText:
+ text "<PLAYER> recorded"
+ line "BILL's number."
+ done
+
+BillsSisterRefusedNumberText:
+ text "My brother made"
+ line "the PC #MON"
+ cont "storage system."
+
+ para "I was going to"
+ line "give you BILL's"
+ cont "number…"
+ done
+
+BillsSisterPhoneFullText:
+ text "You can't record"
+ line "any more numbers."
+ done
+
+BillsSisterStorageSystemText:
+ text "My big brother"
+ line "BILL made the PC"
+
+ para "#MON storage"
+ line "system."
+ done
+
+BillsFamilysHouse_MapEvents:
+ db 0, 0 ; filler
+
+ db 2 ; warp events
+ warp_event 2, 7, GOLDENROD_CITY, 4
+ warp_event 3, 7, GOLDENROD_CITY, 4
+
+ db 0 ; coord events
+
+ db 3 ; bg events
+ bg_event 0, 1, BGEVENT_READ, BillsHouseBookshelf2
+ bg_event 1, 1, BGEVENT_READ, BillsHouseBookshelf1
+ bg_event 7, 1, BGEVENT_READ, BillsHouseRadio
+
+ db 3 ; object events
+ object_event 2, 3, SPRITE_BILL, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BillScript, EVENT_MET_BILL
+ object_event 5, 3, SPRITE_POKEFAN_F, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BillsMomScript, -1
+ object_event 5, 4, SPRITE_TWIN, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, BillsSisterScript, -1