summaryrefslogtreecommitdiff
path: root/maps/CherrygroveCity.asm
blob: a29f53b916ee35e6e7f10b18f9e645f4db4261c6 (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
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
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
CherrygroveCity_MapScriptHeader: ; 0x19c000
	; trigger count
	db 2

	; triggers
	dw UnknownScript_0x19c00d, $0000
	dw UnknownScript_0x19c00e, $0000

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x19c00f
; 0x19c00d

UnknownScript_0x19c00d: ; 0x19c00d
	end
; 0x19c00e

UnknownScript_0x19c00e: ; 0x19c00e
	end
; 0x19c00f

UnknownScript_0x19c00f: ; 0x19c00f
	setflag $0042
	return
; 0x19c013

GrampsScript_0x19c013: ; 0x19c013
	faceplayer
	loadfont
	2writetext UnknownText_0x19c1e3
	yesorno
	iffalse UnknownScript_0x19c0a4
	2jump UnknownScript_0x19c01f
; 0x19c01f

UnknownScript_0x19c01f: ; 0x19c01f
	2writetext UnknownText_0x19c26f
	closetext
	loadmovesprites
	playmusic $0011
	follow $2, $0
	applymovement $2, MovementData_0x19c195
	loadfont
	2writetext UnknownText_0x19c285
	closetext
	loadmovesprites
	applymovement $2, MovementData_0x19c19b
	spriteface $0, $1
	loadfont
	2writetext UnknownText_0x19c304
	closetext
	loadmovesprites
	applymovement $2, MovementData_0x19c1a3
	spriteface $0, $1
	loadfont
	2writetext UnknownText_0x19c359
	closetext
	loadmovesprites
	applymovement $2, MovementData_0x19c1ac
	spriteface $0, $2
	loadfont
	2writetext UnknownText_0x19c3a7
	closetext
	loadmovesprites
	applymovement $2, MovementData_0x19c1b6
	spriteface $0, $1
	pause 60
	spriteface $2, $2
	spriteface $0, $3
	loadfont
	2writetext UnknownText_0x19c3ec
	keeptextopen
	stringtotext .mapcardname, $1
	2call .UnknownScript_0x19c097
	setflag $0001
	2writetext UnknownText_0x19c438
	keeptextopen
	2writetext UnknownText_0x19c451
	closetext
	loadmovesprites
	stopfollow
	special $003d
	spriteface $0, $1
	applymovement $2, MovementData_0x19c1cb
	playsound $001f
	disappear $2
	clearevent EVENT_GUIDE_GENT_VISIBLE_IN_CHERRYGROVE
	waitbutton
	end

.UnknownScript_0x19c097 ; 0x19c097
	jumpstd $002f
	end

.mapcardname ; 0x19c09b
	db "MAP CARD@"
; 0x19c0a4

UnknownScript_0x19c0a4: ; 0x19c0a4
	2writetext UnknownText_0x19c49f
	closetext
	loadmovesprites
	end
; 0x19c0aa

UnknownScript_0x19c0aa: ; 0x19c0aa
	moveperson $3, $27, $7
; 0x19c0ae

UnknownScript_0x19c0ae: ; 0x19c0ae
	spriteface $0, $3
	showemote $0, $0, 15
	special $006a
	pause 15
	appear $3
	applymovement $3, MovementData_0x19c1ce
	spriteface $0, $3
	playmusic $001f
	loadfont
	2writetext UnknownText_0x19c4e2
	closetext
	loadmovesprites
	checkevent EVENT_GOT_TOTODILE_FROM_ELM
	iftrue UnknownScript_0x19c0ee
	checkevent EVENT_GOT_CHIKORITA_FROM_ELM
	iftrue UnknownScript_0x19c104
	winlosstext UnknownText_0x19c57f, UnknownText_0x19c5e6
	setlasttalked $3
	loadtrainer RIVAL1, RIVAL1_3
	writecode $3, $1
	startbattle
	reloadmapmusic
	reloadmap
	iftrue UnknownScript_0x19c11a
	2jump UnknownScript_0x19c126
; 0x19c0ee

UnknownScript_0x19c0ee: ; 0x19c0ee
	winlosstext UnknownText_0x19c57f, UnknownText_0x19c5e6
	setlasttalked $3
	loadtrainer RIVAL1, RIVAL1_1
	writecode $3, $1
	startbattle
	reloadmapmusic
	reloadmap
	iftrue UnknownScript_0x19c11a
	2jump UnknownScript_0x19c126
; 0x19c104

UnknownScript_0x19c104: ; 0x19c104
	winlosstext UnknownText_0x19c57f, UnknownText_0x19c5e6
	setlasttalked $3
	loadtrainer RIVAL1, RIVAL1_2
	writecode $3, $1
	startbattle
	reloadmapmusic
	reloadmap
	iftrue UnknownScript_0x19c11a
	2jump UnknownScript_0x19c126
; 0x19c11a

UnknownScript_0x19c11a: ; 0x19c11a
	playmusic $0020
	loadfont
	2writetext UnknownText_0x19c608
	closetext
	loadmovesprites
	2jump UnknownScript_0x19c12f
; 0x19c126

UnknownScript_0x19c126: ; 0x19c126
	playmusic $0020
	loadfont
	2writetext UnknownText_0x19c59e
	closetext
	loadmovesprites
UnknownScript_0x19c12f: ; 0x19c12f
	playsound $0041
	applymovement $0, MovementData_0x19c1d4
	spriteface $0, $2
	applymovement $3, MovementData_0x19c1da
	disappear $3
	dotrigger $0
	special $001b
	playmapmusic
	end
; 0x19c146

TeacherScript_0x19c146: ; 0x19c146
	faceplayer
	loadfont
	checkflag $0001
	iftrue UnknownScript_0x19c154
	2writetext UnknownText_0x19c650
	closetext
	loadmovesprites
	end
; 0x19c154

UnknownScript_0x19c154: ; 0x19c154
	2writetext UnknownText_0x19c6a8
	closetext
	loadmovesprites
	end
; 0x19c15a

YoungsterScript_0x19c15a: ; 0x19c15a
	faceplayer
	loadfont
	checkflag $000b
	iftrue UnknownScript_0x19c168
	2writetext UnknownText_0x19c6d6
	closetext
	loadmovesprites
	end
; 0x19c168

UnknownScript_0x19c168: ; 0x19c168
	2writetext UnknownText_0x19c701
	closetext
	loadmovesprites
	end
; 0x19c16e

FisherScript_0x19c16e: ; 0x19c16e
	faceplayer
	loadfont
	checkevent EVENT_GOT_MYSTIC_WATER_IN_CHERRYGROVE
	iftrue UnknownScript_0x19c183
	2writetext UnknownText_0x19c766
	keeptextopen
	verbosegiveitem MYSTIC_WATER, 1
	iffalse UnknownScript_0x19c187
	setevent EVENT_GOT_MYSTIC_WATER_IN_CHERRYGROVE
UnknownScript_0x19c183: ; 0x19c183
	2writetext UnknownText_0x19c7c1
	closetext
UnknownScript_0x19c187: ; 0x19c187
	loadmovesprites
	end
; 0x19c189

MapCherrygroveCitySignpost0Script: ; 0x19c189
	jumptext UnknownText_0x19c7e0
; 0x19c18c

MapCherrygroveCitySignpost1Script: ; 0x19c18c
	jumptext UnknownText_0x19c815
; 0x19c18f

MapCherrygroveCitySignpost3Script: ; 0x19c18f
	jumpstd $0010
; 0x19c192

MapCherrygroveCitySignpost2Script: ; 0x19c192
	jumpstd $0011
; 0x19c195

MovementData_0x19c195: ; 0x19c195
	step_left
	step_left
	step_up
	step_left
	turn_head_up
	step_end
; 0x19c19b

MovementData_0x19c19b: ; 0x19c19b
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	turn_head_up
	step_end
; 0x19c1a3

MovementData_0x19c1a3: ; 0x19c1a3
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	step_left
	turn_head_up
	step_end
; 0x19c1ac

MovementData_0x19c1ac: ; 0x19c1ac
	step_left
	step_left
	step_left
	step_down
	step_left
	step_left
	step_left
	step_down
	turn_head_left
	step_end
; 0x19c1b6

MovementData_0x19c1b6: ; 0x19c1b6
	step_down
	step_down
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_right
	step_right
	step_right
	step_right
	step_right
	turn_head_up
	step_end
; 0x19c1cb

MovementData_0x19c1cb: ; 0x19c1cb
	step_up
	step_up
	step_end
; 0x19c1ce

MovementData_0x19c1ce: ; 0x19c1ce
	step_left
	step_left
	step_left
	step_left
	step_left
	step_end
; 0x19c1d4

MovementData_0x19c1d4: ; 0x19c1d4
	big_step_down
	turn_head_up
	step_end
; 0x19c1d7

MovementData_0x19c1d7: ; 0x19c1d7
	step_left
	turn_head_down
	step_end
; 0x19c1da

MovementData_0x19c1da: ; 0x19c1da
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	big_step_up
	big_step_up
	big_step_left
	big_step_left
	step_end
; 0x19c1e3

UnknownText_0x19c1e3: ; 0x19c1e3
	text "You're a rookie"
	line "trainer, aren't"
	cont "you? I can tell!"

	para "That's OK! Every-"
	line "one is a rookie"
	cont "at some point!"

	para "If you'd like, I"
	line "can teach you a"
	cont "few things."
	done
; 0x19c26f

UnknownText_0x19c26f: ; 0x19c26f
	text "OK, then!"
	line "Follow me!"
	done
; 0x19c285

UnknownText_0x19c285: ; 0x19c285
	text "This is a #MON"
	line "CENTER. They heal"

	para "your #MON in no"
	line "time at all."

	para "You'll be relying"
	line "on them a lot, so"

	para "you better learn"
	line "about them."
	done
; 0x19c304

UnknownText_0x19c304: ; 0x19c304
	text "This is a #MON"
	line "MART."

	para "They sell BALLS"
	line "for catching wild"

	para "#MON and other"
	line "useful items."
	done
; 0x19c359

UnknownText_0x19c359: ; 0x19c359
	text "ROUTE 30 is out"
	line "this way."

	para "Trainers will be"
	line "battling their"

	para "prized #MON"
	line "there."
	done
; 0x19c3a7

UnknownText_0x19c3a7: ; 0x19c3a7
	text "This is the sea,"
	line "as you can see."

	para "Some #MON are"
	line "found only in"
	cont "water."
	done
; 0x19c3ec

UnknownText_0x19c3ec: ; 0x19c3ec
	text "Here…"

	para "It's my house!"
	line "Thanks for your"
	cont "company."

	para "Let me give you a"
	line "small gift."
	done
; 0x19c438

UnknownText_0x19c438: ; 0x19c438
	text $52, "'s #GEAR"
	line "now has a MAP!"
	done
; 0x19c451

UnknownText_0x19c451: ; 0x19c451
	text "#GEAR becomes"
	line "more useful as you"
	cont "add CARDS."

	para "I wish you luck on"
	line "your journey!"
	done
; 0x19c49f

UnknownText_0x19c49f: ; 0x19c49f
	text "Oh… It's something"
	line "I enjoy doing…"

	para "Fine. Come see me"
	line "when you like."
	done
; 0x19c4e2

UnknownText_0x19c4e2: ; 0x19c4e2
	text $56, " ", $56, " ", $56

	para "You got a #MON"
	line "at the LAB."

	para "What a waste."
	line "A wimp like you."

	para $56, " ", $56, " ", $56

	para "Don't you get what"
	line "I'm saying?"

	para "Well, I too, have"
	line "a good #MON."

	para "I'll show you"
	line "what I mean!"
	done
; 0x19c57f

UnknownText_0x19c57f: ; 0x19c57f
	text "Humph. Are you"
	line "happy you won?"
	done
; 0x19c59e

UnknownText_0x19c59e: ; 0x19c59e
	text $56, " ", $56, " ", $56

	para "My name's ???."

	para "I'm going to be"
	line "the world's great-"
	cont "est #MON"
	cont "trainer."
	done
; 0x19c5e6

UnknownText_0x19c5e6: ; 0x19c5e6
	text "Humph. That was a"
	line "waste of time."
	done
; 0x19c608

UnknownText_0x19c608: ; 0x19c608
	text $56, " ", $56, " ", $56

	para "My name's ???."

	para "I'm going to be"
	line "the world's great-"
	cont "est #MON"
	cont "trainer."
	done
; 0x19c650

UnknownText_0x19c650: ; 0x19c650
	text "Did you talk to"
	line "the old man by the"
	cont "#MON CENTER?"

	para "He'll put a MAP of"
	line "JOHTO on your"
	cont "#GEAR."
	done
; 0x19c6a8

UnknownText_0x19c6a8: ; 0x19c6a8
	text "When you're with"
	line "#MON, going"
	cont "anywhere is fun."
	done
; 0x19c6d6

UnknownText_0x19c6d6: ; 0x19c6d6
	text "MR.#MON's house"
	line "is still farther"
	cont "up ahead."
	done
; 0x19c701

UnknownText_0x19c701: ; 0x19c701
	text "I battled the"
	line "trainers on the"
	cont "road."

	para "My #MON lost."
	line "They're a mess! I"

	para "must take them to"
	line "a #MON CENTER."
	done
; 0x19c766

UnknownText_0x19c766: ; 0x19c766
	text "A #MON I caught"
	line "had an item."

	para "I think it's"
	line "MYSTIC WATER."

	para "I don't need it,"
	line "so do you want it?"
	done
; 0x19c7c1

UnknownText_0x19c7c1: ; 0x19c7c1
	text "Back to fishing"
	line "for me, then."
	done
; 0x19c7e0

UnknownText_0x19c7e0: ; 0x19c7e0
	text "CHERRYGROVE CITY"

	para "The City of Cute,"
	line "Fragrant Flowers"
	done
; 0x19c815

UnknownText_0x19c815: ; 0x19c815
	text "GUIDE GENT'S HOUSE"
	done
; 0x19c829

CherrygroveCity_MapEventHeader: ; 0x19c829
	; filler
	db 0, 0

	; warps
	db 5
	warp_def $3, $17, 2, GROUP_CHERRYGROVE_MART, MAP_CHERRYGROVE_MART
	warp_def $3, $1d, 1, GROUP_CHERRYGROVE_POKECENTER_1F, MAP_CHERRYGROVE_POKECENTER_1F
	warp_def $7, $11, 1, GROUP_CHERRYGROVE_GYM_SPEECH_HOUSE, MAP_CHERRYGROVE_GYM_SPEECH_HOUSE
	warp_def $9, $19, 1, GROUP_GUIDE_GENTS_HOUSE, MAP_GUIDE_GENTS_HOUSE
	warp_def $b, $1f, 1, GROUP_CHERRYGROVE_EVOLUTION_SPEECH_HOUSE, MAP_CHERRYGROVE_EVOLUTION_SPEECH_HOUSE

	; xy triggers
	db 2
	xy_trigger 1, $6, $21, $0, UnknownScript_0x19c0ae, $0, $0
	xy_trigger 1, $7, $21, $0, UnknownScript_0x19c0aa, $0, $0

	; signposts
	db 4
	signpost 8, 30, $0, MapCherrygroveCitySignpost0Script
	signpost 9, 23, $0, MapCherrygroveCitySignpost1Script
	signpost 3, 24, $0, MapCherrygroveCitySignpost2Script
	signpost 3, 30, $0, MapCherrygroveCitySignpost3Script

	; people-events
	db 5
	person_event SPRITE_GRAMPS, 10, 36, $6, $0, 255, 255, $0, 0, GrampsScript_0x19c013, $06fe
	person_event SPRITE_SILVER, 10, 43, $3, $0, 255, 255, $0, 0, ObjectEvent, $06be
	person_event SPRITE_TEACHER, 16, 31, $5, $1, 255, 255, $90, 0, TeacherScript_0x19c146, $ffff
	person_event SPRITE_YOUNGSTER, 11, 27, $5, $1, 255, 255, $80, 0, YoungsterScript_0x19c15a, $ffff
	person_event SPRITE_FISHER, 16, 11, $9, $0, 255, 255, $a0, 0, FisherScript_0x19c16e, $ffff
; 0x19c8ad