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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
|
LilycoveCity_MapScripts:: @ 814CA15
map_script 3, LilycoveCity_MapScript1_14CA20
map_script 1, LilycoveCity_MapScript1_14CA3F
.byte 0
LilycoveCity_MapScript1_14CA20:: @ 814CA20
setflag 2075
setvar 0x4086, 0
setflag 802
checkflag 2090
callif 1, LilycoveCity_EventScript_1A02C1
call LilycoveCity_EventScript_1A0196
call LilycoveCity_EventScript_1A014E
end
LilycoveCity_MapScript1_14CA3F:: @ 814CA3F
.ifndef SAPPHIRE
setmaptile 69, 4, 169, 1
setmaptile 70, 4, 680, 1
setmaptile 71, 4, 681, 1
setmaptile 72, 4, 682, 1
setmaptile 69, 5, 145, 1
setmaptile 70, 5, 688, 1
setmaptile 71, 5, 689, 0
setmaptile 72, 5, 690, 1
setmaptile 69, 6, 446, 0
setmaptile 70, 6, 447, 0
setmaptile 71, 6, 368, 0
setmaptile 72, 6, 445, 0
.endif
checkflag 112
callif 0, LilycoveCity_EventScript_14CABE
checkflag 2061
callif 1, LilycoveCity_EventScript_14CB2B
end
LilycoveCity_EventScript_14CABE:: @ 814CABE
setmaptile 76, 12, 656, 1
setmaptile 77, 12, 657, 1
setmaptile 76, 13, 672, 1
setmaptile 77, 13, 673, 1
setmaptile 76, 14, 664, 1
setmaptile 77, 14, 665, 1
setmaptile 76, 15, 672, 1
setmaptile 77, 15, 673, 1
setmaptile 77, 16, 664, 1
setmaptile 78, 16, 665, 1
setmaptile 77, 17, 672, 1
setmaptile 78, 17, 673, 1
return
LilycoveCity_EventScript_14CB2B:: @ 814CB2B
setmaptile 69, 4, 169, 1
setmaptile 70, 4, 169, 1
setmaptile 71, 4, 169, 1
setmaptile 72, 4, 169, 1
setmaptile 69, 5, 145, 1
setmaptile 70, 5, 145, 1
setmaptile 71, 5, 145, 1
setmaptile 72, 5, 145, 1
return
LilycoveCity_EventScript_14CB74:: @ 814CB74
lock
faceplayer
checkdailyflags
checkflag 2255
jumpeq LilycoveCity_EventScript_14CBB4
msgbox LilycoveCity_Text_1C5A7A, 4
random 10
addvar RESULT, 133
giveitem RESULT
compare RESULT, 0
jumpeq LilycoveCity_EventScript_1A029B
setflag 2255
msgbox LilycoveCity_Text_1C5B1D, 4
release
end
LilycoveCity_EventScript_14CBB4:: @ 814CBB4
msgbox LilycoveCity_Text_1C5B5D, 4
release
end
LilycoveCity_EventScript_14CBBE:: @ 814CBBE
msgbox LilycoveCity_Text_1686C9, 2
end
LilycoveCity_EventScript_14CBC7:: @ 814CBC7
lock
faceplayer
checkflag 2061
jumpeq LilycoveCity_EventScript_14CBDC
msgbox LilycoveCity_Text_168750, 4
release
end
LilycoveCity_EventScript_14CBDC:: @ 814CBDC
msgbox LilycoveCity_Text_168791, 4
release
end
LilycoveCity_EventScript_14CBE6:: @ 814CBE6
msgbox LilycoveCity_Text_168819, 2
end
LilycoveCity_EventScript_14CBEF:: @ 814CBEF
lock
faceplayer
checkflag 112
jumpeq LilycoveCity_EventScript_14CC04
msgbox LilycoveCity_Text_1688C1, 4
release
end
LilycoveCity_EventScript_14CC04:: @ 814CC04
msgbox LilycoveCity_Text_168934, 4
release
end
LilycoveCity_EventScript_14CC0E:: @ 814CC0E
lock
faceplayer
checkflag 112
jumpeq LilycoveCity_EventScript_14CC23
msgbox LilycoveCity_Text_1689BF, 4
release
end
LilycoveCity_EventScript_14CC23:: @ 814CC23
msgbox LilycoveCity_Text_168A55, 4
release
end
LilycoveCity_EventScript_14CC2D:: @ 814CC2D
msgbox LilycoveCity_Text_168A8D, 2
end
LilycoveCity_EventScript_14CC36:: @ 814CC36
msgbox LilycoveCity_Text_168B1F, 3
end
LilycoveCity_EventScript_14CC3F:: @ 814CC3F
msgbox LilycoveCity_Text_168B9B, 3
end
LilycoveCity_EventScript_14CC48:: @ 814CC48
lock
faceplayer
checkflag 2061
jumpeq LilycoveCity_EventScript_14CC5D
msgbox LilycoveCity_Text_168C16, 4
release
end
LilycoveCity_EventScript_14CC5D:: @ 814CC5D
msgbox LilycoveCity_Text_168D15, 4
release
end
LilycoveCity_EventScript_14CC67:: @ 814CC67
msgbox LilycoveCity_Text_168DA9, 3
end
LilycoveCity_EventScript_14CC70:: @ 814CC70
msgbox LilycoveCity_Text_168DE1, 3
end
LilycoveCity_EventScript_14CC79:: @ 814CC79
msgbox LilycoveCity_Text_168E2F, 3
end
LilycoveCity_EventScript_14CC82:: @ 814CC82
lockall
specialval 0x8004, 137
switch 0x8004
case 0, LilycoveCity_EventScript_14CCA2
msgbox LilycoveCity_Text_168EA4, 4
releaseall
end
LilycoveCity_EventScript_14CCA2:: @ 814CCA2
msgbox LilycoveCity_Text_168E67, 4
releaseall
end
LilycoveCity_EventScript_14CCAC:: @ 814CCAC
lockall
checkflag 2052
jumpeq LilycoveCity_EventScript_14CCC0
msgbox LilycoveCity_Text_168EDA, 4
releaseall
end
LilycoveCity_EventScript_14CCC0:: @ 814CCC0
msgbox LilycoveCity_Text_168F57, 4
releaseall
end
LilycoveCity_EventScript_14CCCA:: @ 814CCCA
msgbox LilycoveCity_Text_168FA1, 3
end
LilycoveCity_EventScript_14CCD3:: @ 814CCD3
msgbox LilycoveCity_Text_168FF3, 3
end
LilycoveCity_EventScript_14CCDC:: @ 814CCDC
msgbox LilycoveCity_Text_169072, 3
end
LilycoveCity_EventScript_14CCE5:: @ 814CCE5
lockall
checkflag 218
jumpeq LilycoveCity_EventScript_14CD18
msgbox LilycoveCity_Text_16864A, 4
move LAST_TALKED, LilycoveCity_Movement_1A0839
waitmove 0
msgbox LilycoveCity_Text_168675, 4
move LAST_TALKED, LilycoveCity_Movement_1A083D
waitmove 0
setflag 218
releaseall
end
LilycoveCity_EventScript_14CD18:: @ 814CD18
msgbox LilycoveCity_Text_16864A, 4
releaseall
end
LilycoveCity_EventScript_14CD22:: @ 814CD22
msgbox LilycoveCity_Text_168455, 2
end
LilycoveCity_EventScript_14CD2B:: @ 814CD2B
msgbox LilycoveCity_Text_1684C2, 2
end
LilycoveCity_EventScript_14CD34:: @ 814CD34
msgbox LilycoveCity_Text_168573, 2
end
LilycoveCity_EventScript_14CD3D:: @ 814CD3D
msgbox LilycoveCity_Text_1685EB, 2
end
LilycoveCity_EventScript_14CD46:: @ 814CD46
lock
faceplayer
checkgender
compare RESULT, 0
jumpeq LilycoveCity_EventScript_14CD60
compare RESULT, 1
jumpeq LilycoveCity_EventScript_14CDD3
end
LilycoveCity_EventScript_14CD60:: @ 814CD60
playmusic 415, 1
checkflag 286
callif 1, LilycoveCity_EventScript_14CDB0
checkflag 286
callif 0, LilycoveCity_EventScript_14CDB9
compare RESULT, 0
jumpeq LilycoveCity_EventScript_14CDC2
msgbox LilycoveCity_Text_167B94, 4
switch 0x4023
case 0, LilycoveCity_EventScript_14CE46
case 1, LilycoveCity_EventScript_14CE56
case 2, LilycoveCity_EventScript_14CE66
end
LilycoveCity_EventScript_14CDB0:: @ 814CDB0
msgbox LilycoveCity_Text_167B55, 5
return
LilycoveCity_EventScript_14CDB9:: @ 814CDB9
msgbox LilycoveCity_Text_1679BF, 5
return
LilycoveCity_EventScript_14CDC2:: @ 814CDC2
setflag 286
msgbox LilycoveCity_Text_167AEB, 4
playmusicbattle 0
fadedefault
release
end
LilycoveCity_EventScript_14CDD3:: @ 814CDD3
playmusic 421, 1
checkflag 286
callif 1, LilycoveCity_EventScript_14CE23
checkflag 286
callif 0, LilycoveCity_EventScript_14CE2C
compare RESULT, 0
jumpeq LilycoveCity_EventScript_14CE35
msgbox LilycoveCity_Text_1680A9, 4
switch 0x4023
case 0, LilycoveCity_EventScript_14CE76
case 1, LilycoveCity_EventScript_14CE86
case 2, LilycoveCity_EventScript_14CE96
end
LilycoveCity_EventScript_14CE23:: @ 814CE23
msgbox LilycoveCity_Text_168067, 5
return
LilycoveCity_EventScript_14CE2C:: @ 814CE2C
msgbox LilycoveCity_Text_167F75, 5
return
LilycoveCity_EventScript_14CE35:: @ 814CE35
setflag 286
msgbox LilycoveCity_Text_16802C, 4
playmusicbattle 0
fadedefault
release
end
LilycoveCity_EventScript_14CE46:: @ 814CE46
trainerbattle 3, OPPONENT_MAY_11, 0, LilycoveCity_Text_167BD5
jump LilycoveCity_EventScript_14CEA6
end
LilycoveCity_EventScript_14CE56:: @ 814CE56
trainerbattle 3, OPPONENT_MAY_12, 0, LilycoveCity_Text_167BD5
jump LilycoveCity_EventScript_14CEA6
end
LilycoveCity_EventScript_14CE66:: @ 814CE66
trainerbattle 3, OPPONENT_MAY_10, 0, LilycoveCity_Text_167BD5
jump LilycoveCity_EventScript_14CEA6
end
LilycoveCity_EventScript_14CE76:: @ 814CE76
trainerbattle 3, OPPONENT_BRENDAN_11, 0, LilycoveCity_Text_1680E4
jump LilycoveCity_EventScript_14CF12
end
LilycoveCity_EventScript_14CE86:: @ 814CE86
trainerbattle 3, OPPONENT_BRENDAN_12, 0, LilycoveCity_Text_1680E4
jump LilycoveCity_EventScript_14CF12
end
LilycoveCity_EventScript_14CE96:: @ 814CE96
trainerbattle 3, OPPONENT_BRENDAN_10, 0, LilycoveCity_Text_1680E4
jump LilycoveCity_EventScript_14CF12
end
LilycoveCity_EventScript_14CEA6:: @ 814CEA6
msgbox LilycoveCity_Text_167C6B, 4
setvar RESULT, 0
checkflag 2060
callif 1, LilycoveCity_EventScript_14CEDE
compare RESULT, 0
callif 1, LilycoveCity_EventScript_14CEEE
compare RESULT, 1
callif 1, LilycoveCity_EventScript_14CEF7
clearflag 722
clearflag 849
jump LilycoveCity_EventScript_14CF6B
end
LilycoveCity_EventScript_14CEDE:: @ 814CEDE
checkflag 2062
jumpeq LilycoveCity_EventScript_14CEE8
return
LilycoveCity_EventScript_14CEE8:: @ 814CEE8
setvar RESULT, 1
return
LilycoveCity_EventScript_14CEEE:: @ 814CEEE
msgbox LilycoveCity_Text_167D08, 4
return
LilycoveCity_EventScript_14CEF7:: @ 814CEF7
checkflag 2052
jumpeq LilycoveCity_EventScript_14CF09
msgbox LilycoveCity_Text_167DDD, 4
return
LilycoveCity_EventScript_14CF09:: @ 814CF09
msgbox LilycoveCity_Text_167EAA, 4
return
LilycoveCity_EventScript_14CF12:: @ 814CF12
msgbox LilycoveCity_Text_168149, 4
setvar RESULT, 0
checkflag 2060
callif 1, LilycoveCity_EventScript_14CEDE
compare RESULT, 0
callif 1, LilycoveCity_EventScript_14CF47
compare RESULT, 1
callif 1, LilycoveCity_EventScript_14CF50
clearflag 760
jump LilycoveCity_EventScript_14CF6B
end
LilycoveCity_EventScript_14CF47:: @ 814CF47
msgbox LilycoveCity_Text_1681EA, 4
return
LilycoveCity_EventScript_14CF50:: @ 814CF50
checkflag 2052
jumpeq LilycoveCity_EventScript_14CF62
msgbox LilycoveCity_Text_168282, 4
return
LilycoveCity_EventScript_14CF62:: @ 814CF62
msgbox LilycoveCity_Text_16835A, 4
return
LilycoveCity_EventScript_14CF6B:: @ 814CF6B
closebutton
move LAST_TALKED, LilycoveCity_Movement_1A0845
waitmove 0
pause 50
setanimation 0, 1
doanimation 30
pause 15
disappear LAST_TALKED
checkanimation 30
playmusicbattle 0
fadedefault
setflag 292
release
end
|