2020-07-24 13:49:26 +00:00
|
|
|
object_const_def
|
2015-11-27 05:22:14 +00:00
|
|
|
const DAYCARE_GRAMPS
|
|
|
|
const DAYCARE_GRANNY
|
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
DayCare_MapScripts:
|
2020-07-24 13:49:26 +00:00
|
|
|
def_scene_scripts
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_callbacks
|
2018-01-13 05:47:38 +00:00
|
|
|
callback MAPCALLBACK_OBJECTS, .EggCheckCallback
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
.EggCheckCallback:
|
2017-12-10 18:37:15 +00:00
|
|
|
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
|
2020-07-17 12:37:03 +00:00
|
|
|
endcallback
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-10 18:37:15 +00:00
|
|
|
.PutDayCareManOutside:
|
|
|
|
setevent EVENT_DAY_CARE_MAN_IN_DAY_CARE
|
|
|
|
clearevent EVENT_DAY_CARE_MAN_ON_ROUTE_34
|
2020-07-17 12:37:03 +00:00
|
|
|
endcallback
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
DayCareManScript_Inside:
|
2013-02-17 06:54:07 +00:00
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_GOT_ODD_EGG
|
2015-12-26 04:34:33 +00:00
|
|
|
iftrue .AlreadyHaveOddEgg
|
|
|
|
writetext DayCareManText_GiveOddEgg
|
2019-11-03 17:48:54 +00:00
|
|
|
promptbutton
|
2015-11-25 15:16:29 +00:00
|
|
|
closetext
|
2019-03-10 19:31:59 +00:00
|
|
|
readvar VAR_PARTYCOUNT
|
2018-02-03 02:09:17 +00:00
|
|
|
ifequal PARTY_LENGTH, .PartyFull
|
2018-01-24 16:17:05 +00:00
|
|
|
special GiveOddEgg
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2015-12-26 04:34:33 +00:00
|
|
|
writetext DayCareText_GotOddEgg
|
2014-04-30 10:04:35 +00:00
|
|
|
playsound SFX_KEY_ITEM
|
2015-11-25 15:16:29 +00:00
|
|
|
waitsfx
|
2015-12-26 04:34:33 +00:00
|
|
|
writetext DayCareText_DescribeOddEgg
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
2013-09-24 07:48:58 +00:00
|
|
|
setevent EVENT_GOT_ODD_EGG
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
.PartyFull:
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2015-12-26 04:34:33 +00:00
|
|
|
writetext DayCareText_PartyFull
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
.AlreadyHaveOddEgg:
|
2018-01-24 16:17:05 +00:00
|
|
|
special DayCareMan
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
DayCareLadyScript:
|
2013-02-17 06:54:07 +00:00
|
|
|
faceplayer
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2017-12-10 18:37:15 +00:00
|
|
|
checkflag ENGINE_DAY_CARE_MAN_HAS_EGG
|
2015-12-26 04:34:33 +00:00
|
|
|
iftrue .HusbandWasLookingForYou
|
2018-01-24 16:17:05 +00:00
|
|
|
special DayCareLady
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
.HusbandWasLookingForYou:
|
|
|
|
writetext Text_GrampsLookingForYou
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-06-26 04:01:08 +00:00
|
|
|
DayCareBookshelf:
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd DifficultBookshelfScript
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
Text_GrampsLookingForYou:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Gramps was looking"
|
|
|
|
line "for you."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
Text_DayCareManTalksAboutEggTicket: ; unreferenced
|
2014-03-06 05:29:44 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
DayCareManText_GiveOddEgg:
|
2014-03-06 05:29:44 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-10-26 19:45:57 +00:00
|
|
|
DayCareText_ComeAgain: ; unreferenced
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Come again."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
DayCareText_GotOddEgg:
|
2015-06-28 04:59:17 +00:00
|
|
|
text "<PLAYER> received"
|
2014-03-06 05:29:44 +00:00
|
|
|
line "ODD EGG!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
DayCareText_DescribeOddEgg:
|
2014-03-06 05:29:44 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-12-26 04:34:33 +00:00
|
|
|
DayCareText_PartyFull:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "You've no room for"
|
|
|
|
line "this."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
DayCare_MapEvents:
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0, 0 ; filler
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_warp_events
|
2018-02-02 03:22:07 +00: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
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_coord_events
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_bg_events
|
2018-02-02 03:22:07 +00:00
|
|
|
bg_event 0, 1, BGEVENT_READ, DayCareBookshelf
|
|
|
|
bg_event 1, 1, BGEVENT_READ, DayCareBookshelf
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2020-07-24 13:49:26 +00:00
|
|
|
def_object_events
|
2018-02-02 03:22:07 +00: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
|