pokecrystal-board/maps/DayCare.asm

174 lines
3.2 KiB
NASM
Raw Normal View History

object_const_def ; object_event constants
2015-11-26 21:22:14 -08:00
const DAYCARE_GRAMPS
const DAYCARE_GRANNY
DayCare_MapScripts:
db 0 ; scene scripts
db 1 ; callbacks
callback MAPCALLBACK_OBJECTS, .EggCheckCallback
2015-12-25 20:34:33 -08:00
.EggCheckCallback:
checkflag ENGINE_DAY_CARE_MAN_HAS_EGG
iftrue .PutDayCareManOutside
clearevent EVENT_DAY_CARE_MAN_IN_DAY_CARE
setevent EVENT_DAY_CARE_MAN_ON_ROUTE_34
return
.PutDayCareManOutside:
setevent EVENT_DAY_CARE_MAN_IN_DAY_CARE
clearevent EVENT_DAY_CARE_MAN_ON_ROUTE_34
return
2015-12-25 20:34:33 -08:00
DayCareManScript_Inside:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_ODD_EGG
2015-12-25 20:34:33 -08:00
iftrue .AlreadyHaveOddEgg
writetext DayCareManText_GiveOddEgg
2019-11-03 09:48:54 -08:00
promptbutton
2015-11-25 07:16:29 -08:00
closetext
readvar VAR_PARTYCOUNT
2018-02-02 18:09:17 -08:00
ifequal PARTY_LENGTH, .PartyFull
special GiveOddEgg
2015-12-09 15:25:44 -08:00
opentext
2015-12-25 20:34:33 -08:00
writetext DayCareText_GotOddEgg
playsound SFX_KEY_ITEM
2015-11-25 07:16:29 -08:00
waitsfx
2015-12-25 20:34:33 -08:00
writetext DayCareText_DescribeOddEgg
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_ODD_EGG
end
2015-12-25 20:34:33 -08:00
.PartyFull:
2015-12-09 15:25:44 -08:00
opentext
2015-12-25 20:34:33 -08:00
writetext DayCareText_PartyFull
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-25 20:34:33 -08:00
.AlreadyHaveOddEgg:
special DayCareMan
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-25 20:34:33 -08:00
DayCareLadyScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
checkflag ENGINE_DAY_CARE_MAN_HAS_EGG
2015-12-25 20:34:33 -08:00
iftrue .HusbandWasLookingForYou
special DayCareLady
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-25 20:34:33 -08:00
.HusbandWasLookingForYou:
writetext Text_GrampsLookingForYou
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-25 21:01:08 -07:00
DayCareBookshelf:
jumpstd difficultbookshelf
2015-12-25 20:34:33 -08:00
Text_GrampsLookingForYou:
text "Gramps was looking"
line "for you."
done
2015-12-25 20:34:33 -08:00
Text_DayCareManTalksAboutEggTicket:
text "I'm the DAY-CARE"
line "MAN."
para "There's something"
line "new in GOLDENROD"
para "called the TRADE"
line "CORNER."
para "I was given an EGG"
line "TICKET that can be"
para "traded in for a"
line "ODD EGG."
para "But since we run a"
line "DAY-CARE, we don't"
para "need it. You may"
line "as well have it."
done
2015-12-25 20:34:33 -08:00
DayCareManText_GiveOddEgg:
text "I'm the DAY-CARE"
line "MAN."
para "Do you know about"
line "EGGS?"
para "I was raising"
line "#MON with my"
cont "wife, you see."
para "We were shocked to"
line "find an EGG!"
para "How incredible is"
line "that?"
para "Well, wouldn't you"
line "like this EGG?"
para "Then fine, this is"
line "yours to keep!"
done
2015-12-25 20:34:33 -08:00
DayCareText_ComeAgain:
text "Come again."
done
2015-12-25 20:34:33 -08:00
DayCareText_GotOddEgg:
text "<PLAYER> received"
line "ODD EGG!"
done
2015-12-25 20:34:33 -08:00
DayCareText_DescribeOddEgg:
text "I found that when"
line "I was caring for"
para "someone's #MON"
line "before."
para "But the trainer"
line "didn't want the"
para "EGG, so I'd kept"
line "it around."
done
2015-12-25 20:34:33 -08:00
DayCareText_PartyFull:
text "You've no room for"
line "this."
done
DayCare_MapEvents:
db 0, 0 ; filler
db 4 ; warp events
2018-02-01 19:22:07 -08:00
warp_event 0, 5, ROUTE_34, 3
warp_event 0, 6, ROUTE_34, 4
warp_event 2, 7, ROUTE_34, 5
warp_event 3, 7, ROUTE_34, 5
db 0 ; coord events
db 2 ; bg events
2018-02-01 19:22:07 -08:00
bg_event 0, 1, BGEVENT_READ, DayCareBookshelf
bg_event 1, 1, BGEVENT_READ, DayCareBookshelf
db 2 ; object events
2018-02-01 19:22:07 -08:00
object_event 2, 3, SPRITE_GRAMPS, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DayCareManScript_Inside, EVENT_DAY_CARE_MAN_IN_DAY_CARE
object_event 5, 3, SPRITE_GRANNY, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, DayCareLadyScript, -1