summaryrefslogtreecommitdiff
path: root/data/scripts/day_care.inc
blob: e96f52e2086691e3bec0ce86582d06d32ff0411b (plain)
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
Route5_PokemonDayCare_EventScript_1BF398:: @ 81BF398
	special sub_8110AB4
	compare VAR_RESULT, 2
	goto_if_eq EventScript_1A7AE0
	lock
	faceplayer
	showmoneybox 0, 0, 0
	specialvar VAR_RESULT, IsThereMonInRoute5Daycare
	compare VAR_RESULT, 1
	goto_if_eq EventScript_1BF46E
	msgbox Text_19DD66, MSGBOX_YESNO
	compare VAR_RESULT, YES
	goto_if_eq EventScript_1BF3DD
	msgbox Text_19DDB2
	goto EventScript_1BF541
	end

EventScript_1BF3DD:: @ 81BF3DD
	specialvar VAR_RESULT, CountPartyNonEggMons
	compare VAR_RESULT, 1
	goto_if_eq EventScript_1BF452
	msgbox Text_19DDBE
	fadescreen FADE_TO_BLACK
	hidemoneybox 0, 0
	special ChooseSendDaycareMon
	waitstate
	showmoneybox 0, 0, 0
	compare VAR_0x8004, 6
	goto_if_ge EventScript_1BF444
	specialvar VAR_RESULT, CountPartyAliveNonEggMons_IgnoreVar0x8004Slot
	compare VAR_RESULT, 0
	goto_if_eq EventScript_1BF460
	specialvar VAR_0x8005, GetSelectedMonNickAndSpecies
	msgbox Text_19DDF9
	waitse
	playmoncry VAR_0x8005, 0
	msgbox Text_19DE24
	waitmoncry
	special PutMonInRoute5Daycare
	incrementgamestat GAME_STAT_USED_DAYCARE
	goto EventScript_1BF541
	end

EventScript_1BF444:: @ 81BF444
	msgbox Text_19DDDC
	goto EventScript_1BF541
	end

EventScript_1BF452:: @ 81BF452
	msgbox Text_19DEF5
	goto EventScript_1BF541
	end

EventScript_1BF460:: @ 81BF460
	msgbox Text_19DF1D
	goto EventScript_1BF541
	end

EventScript_1BF46E:: @ 81BF46E
	setvar VAR_0x8004, 0
	specialvar VAR_RESULT, GetNumLevelsGainedForRoute5DaycareMon
	compare VAR_RESULT, 0
	call_if_ne EventScript_1BF4AA
	compare VAR_RESULT, 0
	call_if_eq EventScript_1BF4B3
	special GetCostToWithdrawRoute5DaycareMon
	msgbox Text_19DE80, MSGBOX_YESNO
	compare VAR_RESULT, YES
	goto_if_eq EventScript_1BF4BC
	goto EventScript_1BF444
	end

EventScript_1BF4AA:: @ 81BF4AA
	msgbox Text_19DF56
	return

EventScript_1BF4B3:: @ 81BF4B3
	msgbox Text_19DE3C
	return

EventScript_1BF4BC:: @ 81BF4BC
	specialvar VAR_RESULT, CalculatePlayerPartyCount
	compare VAR_RESULT, PARTY_SIZE
	goto_if_eq EventScript_1BF533
	specialvar VAR_RESULT, IsEnoughForCostInVar0x8005
	compare VAR_RESULT, 1
	goto_if_eq EventScript_1BF4EA
	msgbox Text_19E001
	goto EventScript_1BF541
	end

EventScript_1BF4EA:: @ 81BF4EA
	setvar VAR_0x8004, 0
	specialvar VAR_RESULT, TakePokemonFromRoute5Daycare
	special SubtractMoneyFromVar0x8005
	updatemoneybox 0, 0, 0
	copyvar VAR_0x8008, VAR_RESULT
	getpartysize
	subvar VAR_RESULT, 1
	getpartymonname 0, VAR_RESULT
	copyvar VAR_RESULT, VAR_0x8008
	msgbox Text_19DEAF
	textcolor 3
	waitse
	playmoncry VAR_RESULT, 0
	msgbox Text_19DECF
	call EventScript_1A6675
	waitmoncry
	goto EventScript_1BF541
	end

EventScript_1BF533:: @ 81BF533
	msgbox Text_19DFC2
	goto EventScript_1BF541
	end

EventScript_1BF541:: @ 81BF541
	hidemoneybox 0, 0
	release
	end

EventScript_81BF546:: @ 81BF546
	lockall
	msgbox Text_1BFB5A
	special EggHatch
	waitstate
	releaseall
	end

gUnknown_81BF555:: @ 81BF555
	.string "I'm the DAY-CARE MAN.\p"
	.string "I help take care of the precious\n"
	.string "POKéMON of TRAINERS.\p"
	.string "If you'd like me to raise your\n"
	.string "POKéMON, have a word with my wife.$"

gUnknown_81BF5E3:: @ 81BF5E3
	.string "Ah, it's you!\p"
	.string "We were raising your POKéMON, and\n"
	.string "my goodness, were we surprised!\p"
	.string "Your POKéMON had an EGG!\p"
	.string "We don't know how it got there,\n"
	.string "but your POKéMON had it.\p"
	.string "You do want it, yes?$"

gUnknown_81BF69A:: @ 81BF69A
	.string "Ah, it's you! Good to see you.\n"
	.string "Your {STR_VAR_1}'s doing fine.$"

gUnknown_81BF6CF:: @ 81BF6CF
	.string "Well then, I'll keep it.\n"
	.string "Thanks!$"

gUnknown_81BF6F0:: @ 81BF6F0
	.string "You have no room for it…\n"
	.string "Come back when you've made room.$"

Text_1BF72A:: @ 81BF72A
	.string "{PLAYER} received the EGG from\n"
	.string "the DAY-CARE MAN.$"

gUnknown_81BF755:: @ 81BF755
	.string "Take good care of it.$"

Text_1BF76B:: @ 81BF76B
	.string "ポケモンを ひきとりたい ときは\n"
	.string "ばさんに いって おくれ$"

gUnknown_81BF789:: @ 81BF789
	.string "Ah, it's you! Your {STR_VAR_1} and\n"
	.string "{STR_VAR_2} are doing fine.$"

gUnknown_81BF7B6:: @ 81BF7B6
	.string "I really will keep it.\n"
	.string "You do want this, yes?$"

gUnknown_81BF7E4:: @ 81BF7E4
	.string "I'm the DAY-CARE LADY.\p"
	.string "We can raise POKéMON for you.\p"
	.string "Would you like us to raise one?$"

gUnknown_81BF839:: @ 81BF839
	.string "Which POKéMON should we raise for\n"
	.string "you?$"

gUnknown_81BF860:: @ 81BF860
	.string "Fine, we'll raise your {STR_VAR_1}\n"
	.string "for a while.\p"
	.string "Come back for it later.$"

gUnknown_81BF89F:: @ 81BF89F
	.string "We can raise two of your POKéMON.\p"
	.string "Would you like us to raise one\n"
	.string "more POKéMON for you?$"

gUnknown_81BF8F6:: @ 81BF8F6
	.string "My husband was looking for you.$"

gUnknown_81BF916:: @ 81BF916
	.string "Oh, fine, then.\n"
	.string "Come again.$"

gUnknown_81BF932:: @ 81BF932
	.string "You don't have enough money…$"

gUnknown_81BF94F:: @ 81BF94F
	.string "Will you take back the other one,\n"
	.string "too?$"

gUnknown_81BF976:: @ 81BF976
	.string "Fine.\n"
	.string "Come again.$"

gUnknown_81BF988:: @ 81BF988
	.string "Ah, it's you!\n"
	.string "Good to see you.\p"
	.string "Your POKéMON can only be doing\n"
	.string "good!$"

gUnknown_81BF9CC:: @ 81BF9CC
	.string "By level, your {STR_VAR_1} has\n"
	.string "grown by {STR_VAR_2}.$"

gUnknown_81BF9EF:: @ 81BF9EF
	.string "Your POKéMON party is full.\n"
	.string "Make room, then come see me.$"

Text_1BFA28:: @ 81BFA28
	.string "どっちの ポケモンを ひきとるかい?$"

gUnknown_81BFA3B:: @ 81BFA3B
	.string "If you want your {STR_VAR_1} back,\n"
	.string "it will cost ¥{STR_VAR_2}.$"

gUnknown_81BFA67:: @ 81BFA67
	.string "Perfect!\n"
	.string "Here's your POKéMON.$"

gUnknown_81BFA85:: @ 81BFA85
	.string "{PLAYER} took back {STR_VAR_1} from\n"
	.string "the DAY-CARE LADY.$"

gUnknown_81BFAAD:: @ 81BFAAD
	.string "Oh? But you have just one\n"
	.string "POKéMON.\p"
	.string "Come back another time.$"

gUnknown_81BFAE8:: @ 81BFAE8
	.string "Will you take your POKéMON back?$"

gUnknown_81BFB09:: @ 81BFB09
	.string "If you leave me that POKéMON,\n"
	.string "what will you battle with?\p"
	.string "Come back another time.$"

Text_1BFB5A:: @ 81BFB5A
	.string "Huh?$"