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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
|
Route117_EventScript_1B222D:: @ 81B222D
lock
faceplayer
special GetDaycareMonNicknames
specialvar RESULT, GetDaycareState
compare RESULT, 1
goto_if_eq Route117_EventScript_1B2262
compare RESULT, 2
goto_if_eq Route117_EventScript_1B22E7
compare RESULT, 3
goto_if_eq Route117_EventScript_1B22FE
msgbox Route117_Text_1B25CB, 4
release
end
Route117_EventScript_1B2262:: @ 81B2262
msgbox Route117_Text_1B2659, MSGBOX_YESNO
compare RESULT, YES
goto_if_eq Route117_EventScript_1B2298
msgbox Route117_Text_1B28C4, MSGBOX_YESNO
compare RESULT, YES
goto_if_eq Route117_EventScript_1B2298
msgbox Route117_Text_1B2745, 4
clearflag FLAG_PENDING_DAYCARE_EGG
special RejectEggFromDayCare
release
end
Route117_EventScript_1B2298:: @ 81B2298
specialvar RESULT, CalculatePlayerPartyCount
compare RESULT, 6
goto_if_ne Route117_EventScript_1B22B2
msgbox Route117_Text_1B2766, 4
release
end
Route117_EventScript_1B22B2:: @ 81B22B2
message Route117_Text_1B27A2
playfanfare BGM_FANFA1
waitfanfare
waitmessage
waitbuttonpress
msgbox Route117_Text_1B27CD, 4
special GiveEggFromDaycare
clearflag FLAG_PENDING_DAYCARE_EGG
release
end
Route117_EventScript_1B22CD:: @ 81B22CD
specialvar RESULT, sub_8042B4C
compare RESULT, 1
call_if_eq Route117_EventScript_1B22DE
return
Route117_EventScript_1B22DE:: @ 81B22DE
msgbox Route117_Text_1B27E3, 4
return
Route117_EventScript_1B22E7:: @ 81B22E7
special GetDaycareMonNicknames
msgbox Route117_Text_1B2710, 4
setvar VAR_SPECIAL_4, 0
call Route117_EventScript_1B22CD
release
end
Route117_EventScript_1B22FE:: @ 81B22FE
special GetDaycareMonNicknames
msgbox Route117_Text_1B2897, 4
special SetDaycareCompatibilityString
special ShowFieldMessageStringVar4
waitmessage
waitbuttonpress
setvar VAR_SPECIAL_4, 0
call Route117_EventScript_1B22CD
setvar VAR_SPECIAL_4, 1
call Route117_EventScript_1B22CD
release
end
Route117_PokemonDayCare_EventScript_1B2327:: @ 81B2327
lock
faceplayer
specialvar RESULT, GetDaycareState
compare RESULT, 1
goto_if_eq Route117_PokemonDayCare_EventScript_1B2407
compare RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B242B
compare RESULT, 3
goto_if_eq Route117_PokemonDayCare_EventScript_1B2558
msgbox Route117_PokemonDayCare_Text_1B28F2, MSGBOX_YESNO
compare RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B236C
msgbox Route117_PokemonDayCare_Text_1B2A14, 4
release
end
Route117_PokemonDayCare_EventScript_1B236C:: @ 81B236C
specialvar RESULT, GetNumValidDaycarePartyMons
compare RESULT, 1
goto_if_eq Route117_PokemonDayCare_EventScript_1B23F3
msgbox Route117_PokemonDayCare_Text_1B2947, 4
fadescreen 1
special ChooseSendDaycareMon
waitstate
compare VAR_SPECIAL_4, 255
goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
specialvar RESULT, CountAlivePartyMonsExceptSelectedOne
compare RESULT, 0
goto_if_eq Route117_PokemonDayCare_EventScript_1B23FD
specialvar VAR_SPECIAL_5, GetSelectedDaycareMonNickname
waitse
playmoncry VAR_SPECIAL_5, 0
msgbox Route117_PokemonDayCare_Text_1B296E, 4
waitmoncry
special StoreSelectedPokemonInDaycare
incrementgamestat GAME_STAT_USED_DAYCARE
specialvar RESULT, GetDaycareState
compare RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B23DA
release
end
Route117_PokemonDayCare_EventScript_1B23D0:: @ 81B23D0
msgbox Route117_PokemonDayCare_Text_1B2A76, 4
release
end
Route117_PokemonDayCare_EventScript_1B23DA:: @ 81B23DA
msgbox Route117_PokemonDayCare_Text_1B29AD, MSGBOX_YESNO
compare RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B236C
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B23F3:: @ 81B23F3
msgbox Route117_PokemonDayCare_Text_1B2BBB, 4
release
end
Route117_PokemonDayCare_EventScript_1B23FD:: @ 81B23FD
msgbox Route117_PokemonDayCare_Text_1B2C17, 4
release
end
Route117_PokemonDayCare_EventScript_1B2407:: @ 81B2407
msgbox Route117_PokemonDayCare_Text_1B29F4, 4
release
end
Route117_PokemonDayCare_EventScript_1B2411:: @ 81B2411
msgbox Route117_PokemonDayCare_Text_1B2ACC, 4
return
Route117_PokemonDayCare_EventScript_1B241A:: @ 81B241A
specialvar RESULT, GetNumLevelsGainedFromDaycare
compare RESULT, 0
call_if_ne Route117_PokemonDayCare_EventScript_1B2411
return
Route117_PokemonDayCare_EventScript_1B242B:: @ 81B242B
msgbox Route117_PokemonDayCare_Text_1B2A88, 4
setvar VAR_SPECIAL_4, 0
call Route117_PokemonDayCare_EventScript_1B241A
msgbox Route117_PokemonDayCare_Text_1B29AD, MSGBOX_YESNO
compare RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B236C
msgbox Route117_PokemonDayCare_Text_1B2BF6, MSGBOX_YESNO
compare RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B2469
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B2469:: @ 81B2469
specialvar RESULT, CalculatePlayerPartyCount
compare RESULT, 6
goto_if_eq Route117_PokemonDayCare_EventScript_1B2539
specialvar RESULT, GetDaycareState
setvar VAR_SPECIAL_4, 0
compare RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B24A8
special ShowDaycareLevelMenu
waitstate
copyvar VAR_SPECIAL_4, RESULT
compare RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
goto Route117_PokemonDayCare_EventScript_1B24A8
end
Route117_PokemonDayCare_EventScript_1B24A8:: @ 81B24A8
special GetDaycareCost
msgbox Route117_PokemonDayCare_Text_1B2B49, MSGBOX_YESNO
compare RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B24C4
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B24C4:: @ 81B24C4
specialvar RESULT, HasEnoughMoneyFor
compare RESULT, 1
goto_if_eq Route117_PokemonDayCare_EventScript_1B24DE
msgbox Route117_PokemonDayCare_Text_1B2A30, 4
release
end
Route117_PokemonDayCare_EventScript_1B24DE:: @ 81B24DE
applymovement 1, Route117_PokemonDayCare_Movement_1B2543
waitmovement 0
specialvar RESULT, TakePokemonFromDaycare
special PayMoneyFor
playse SE_REGI
msgbox Route117_PokemonDayCare_Text_1B2B75, 4
waitse
playmoncry RESULT, 0
msgbox Route117_PokemonDayCare_Text_1B2B93, 4
waitmoncry
specialvar RESULT, GetDaycareState
compare RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B2520
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B2520:: @ 81B2520
msgbox Route117_PokemonDayCare_Text_1B2A4F, MSGBOX_YESNO
compare RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B2469
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B2539:: @ 81B2539
msgbox Route117_PokemonDayCare_Text_1B2AEF, 4
release
end
Route117_PokemonDayCare_Movement_1B2543:: @ 81B2543
step_14
step_14
step_02
step_14
step_14
step_03
step_14
step_14
step_01
slow_step_up
step_54
step_14
step_14
step_14
step_14
step_14
step_00
step_55
slow_step_down
step_end
@ 81B2557
end
Route117_PokemonDayCare_EventScript_1B2558:: @ 81B2558
msgbox Route117_PokemonDayCare_Text_1B2A88, 4
setvar VAR_SPECIAL_4, 0
call Route117_PokemonDayCare_EventScript_1B241A
setvar VAR_SPECIAL_4, 1
call Route117_PokemonDayCare_EventScript_1B241A
msgbox Route117_PokemonDayCare_Text_1B2BF6, MSGBOX_YESNO
compare RESULT, YES
goto_if_eq Route117_PokemonDayCare_EventScript_1B2469
msgbox Route117_PokemonDayCare_Text_1B2A76, 4
release
end
@ 81B2591
special ShowDaycareLevelMenu
waitstate
compare RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
copyvar VAR_SPECIAL_4, RESULT
specialvar RESULT, TakePokemonFromDaycare
msgbox Route117_PokemonDayCare_Text_1B2B75, 4
msgbox Route117_PokemonDayCare_Text_1B2A76, 4
release
end
S_EggHatch:: @ 81B25BC
lockall
msgbox UnknownString_81B2C68, 4
special EggHatch
waitstate
releaseall
end
|