1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
object_const_def
const DAYCARE_GRAMPS
const DAYCARE_GRANNY
DayCare_MapScripts:
def_scene_scripts
def_callbacks
callback MAPCALLBACK_OBJECTS, .EggCheckCallback
.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
endcallback
.PutDayCareManOutside:
setevent EVENT_DAY_CARE_MAN_IN_DAY_CARE
clearevent EVENT_DAY_CARE_MAN_ON_ROUTE_34
endcallback
DayCareManScript_Inside:
faceplayer
opentext
checkevent EVENT_GOT_ODD_EGG
iftrue .AlreadyHaveOddEgg
writetext DayCareManText_GiveOddEgg
promptbutton
closetext
readvar VAR_PARTYCOUNT
ifequal PARTY_LENGTH, .PartyFull
special GiveOddEgg
opentext
writetext DayCareText_GotOddEgg
playsound SFX_KEY_ITEM
waitsfx
writetext DayCareText_DescribeOddEgg
waitbutton
closetext
setevent EVENT_GOT_ODD_EGG
end
.PartyFull:
opentext
writetext DayCareText_PartyFull
waitbutton
closetext
end
.AlreadyHaveOddEgg:
special DayCareMan
waitbutton
closetext
end
DayCareLadyScript:
faceplayer
opentext
checkflag ENGINE_DAY_CARE_MAN_HAS_EGG
iftrue .HusbandWasLookingForYou
special DayCareLady
waitbutton
closetext
end
.HusbandWasLookingForYou:
writetext Text_GrampsLookingForYou
waitbutton
closetext
end
DayCareBookshelf:
jumpstd DifficultBookshelfScript
Text_GrampsLookingForYou:
text "Gramps was looking"
line "for you."
done
Text_DayCareManTalksAboutEggTicket: ; unreferenced
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
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
DayCareText_ComeAgain: ; unreferenced
text "Come again."
done
DayCareText_GotOddEgg:
text "<PLAYER> received"
line "ODD EGG!"
done
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
DayCareText_PartyFull:
text "You've no room for"
line "this."
done
DayCare_MapEvents:
db 0, 0 ; filler
def_warp_events
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
def_coord_events
def_bg_events
bg_event 0, 1, BGEVENT_READ, DayCareBookshelf
bg_event 1, 1, BGEVENT_READ, DayCareBookshelf
def_object_events
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
|