summaryrefslogtreecommitdiff
path: root/maps/FuchsiaGym.asm
blob: b608e79145d65d843304da12aae81fcfac1e997b (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
FuchsiaGym_MapScriptHeader: ; 0x195db7
	; trigger count
	db 0

	; callback count
	db 0
; 0x195db9

JanineScript_0x195db9: ; 0x195db9
	checkflag $0027
	iftrue UnknownScript_0x195e00
	applymovement $2, MovementData_0x195f27
	faceplayer
	loadfont
	2writetext UnknownText_0x195f35
	closetext
	loadmovesprites
	winlosstext UnknownText_0x195fa1, $0000
	loadtrainer JANINE, 1
	startbattle
	returnafterbattle
	setevent EVENT_BEAT_JANINE
	setevent $0517
	setevent $051a
	setevent $0482
	setevent $041e
	variablesprite $7, $28
	variablesprite $8, $28
	variablesprite $9, $28
	variablesprite $a, $27
	special $005e
	loadfont
	2writetext UnknownText_0x195feb
	playsound $009c
	waitbutton
	setflag $0027
	2jump UnknownScript_0x195e02
; 0x195e00

UnknownScript_0x195e00: ; 0x195e00
	faceplayer
	loadfont
UnknownScript_0x195e02: ; 0x195e02
	checkevent EVENT_GOT_TM06_TOXIC
	iftrue UnknownScript_0x195e15
	2writetext UnknownText_0x196002
	keeptextopen
	verbosegiveitem TM_06, 1
	iffalse UnknownScript_0x195e15
	setevent EVENT_GOT_TM06_TOXIC
UnknownScript_0x195e15: ; 0x195e15
	2writetext UnknownText_0x196074
	closetext
	loadmovesprites
	end
; 0x195e1b

FuschiaGym1Script_0x195e1b: ; 0x195e1b
	checkevent $0517
	iftrue UnknownScript_0x195e2c
	applymovement $3, MovementData_0x195f27
	faceplayer
	variablesprite $7, $28
	special $005e
UnknownScript_0x195e2c: ; 0x195e2c
	faceplayer
	loadfont
	checkevent $0517
	iftrue UnknownScript_0x195e4f
	2writetext UnknownText_0x1960e6
	closetext
	loadmovesprites
	winlosstext UnknownText_0x196126, $0000
	loadtrainer LASS, ALICE
	startbattle
	iftrue UnknownScript_0x195e4a
	returnafterbattle
	setevent $0517
	end
; 0x195e4a

UnknownScript_0x195e4a: ; 0x195e4a
	variablesprite $7, $a
	returnafterbattle
	end
; 0x195e4f

UnknownScript_0x195e4f: ; 0x195e4f
	2writetext UnknownText_0x196139
	closetext
	loadmovesprites
	end
; 0x195e55

FuschiaGym2Script_0x195e55: ; 0x195e55
	checkevent $051a
	iftrue UnknownScript_0x195e66
	applymovement $4, MovementData_0x195f27
	faceplayer
	variablesprite $8, $28
	special $005e
UnknownScript_0x195e66: ; 0x195e66
	faceplayer
	loadfont
	checkevent $051a
	iftrue UnknownScript_0x195e89
	2writetext UnknownText_0x196166
	closetext
	loadmovesprites
	winlosstext UnknownText_0x19617b, $0000
	loadtrainer LASS, LINDA
	startbattle
	iftrue UnknownScript_0x195e84
	returnafterbattle
	setevent $051a
	end
; 0x195e84

UnknownScript_0x195e84: ; 0x195e84
	variablesprite $8, $a
	returnafterbattle
	end
; 0x195e89

UnknownScript_0x195e89: ; 0x195e89
	2writetext UnknownText_0x196199
	closetext
	loadmovesprites
	end
; 0x195e8f

FuschiaGym3Script_0x195e8f: ; 0x195e8f
	checkevent $0482
	iftrue UnknownScript_0x195ea0
	applymovement $5, MovementData_0x195f27
	faceplayer
	variablesprite $9, $28
	special $005e
UnknownScript_0x195ea0: ; 0x195ea0
	faceplayer
	loadfont
	checkevent $0482
	iftrue UnknownScript_0x195ec3
	2writetext UnknownText_0x1961bb
	closetext
	loadmovesprites
	winlosstext UnknownText_0x1961f1, $0000
	loadtrainer PICNICKER, CINDY
	startbattle
	iftrue UnknownScript_0x195ebe
	returnafterbattle
	setevent $0482
	end
; 0x195ebe

UnknownScript_0x195ebe: ; 0x195ebe
	variablesprite $9, $a
	returnafterbattle
	end
; 0x195ec3

UnknownScript_0x195ec3: ; 0x195ec3
	2writetext UnknownText_0x19620c
	closetext
	loadmovesprites
	end
; 0x195ec9

FuschiaGym4Script_0x195ec9: ; 0x195ec9
	checkevent $041e
	iftrue UnknownScript_0x195eda
	applymovement $6, MovementData_0x195f27
	faceplayer
	variablesprite $a, $27
	special $005e
UnknownScript_0x195eda: ; 0x195eda
	faceplayer
	loadfont
	checkevent $041e
	iftrue UnknownScript_0x195efd
	2writetext UnknownText_0x196228
	closetext
	loadmovesprites
	winlosstext UnknownText_0x19624a, $0000
	loadtrainer CAMPER, BARRY
	startbattle
	iftrue UnknownScript_0x195ef8
	returnafterbattle
	setevent $041e
	end
; 0x195ef8

UnknownScript_0x195ef8: ; 0x195ef8
	variablesprite $a, $a
	returnafterbattle
	end
; 0x195efd

UnknownScript_0x195efd: ; 0x195efd
	2writetext UnknownText_0x19626b
	closetext
	loadmovesprites
	end
; 0x195f03

FuchsiaGymGuyScript: ; 0x195f03
	faceplayer
	loadfont
	checkevent EVENT_BEAT_JANINE
	iftrue .FuchsiaGymGuyWinScript
	2writetext FuchsiaGymGuyText
	closetext
	loadmovesprites
	end

.FuchsiaGymGuyWinScript
	2writetext FuchsiaGymGuyWinText
	closetext
	loadmovesprites
	end
; 0x195f17

MapFuchsiaGymSignpost1Script: ; 0x195f17
	checkflag $0027
	iftrue UnknownScript_0x195f20
	jumpstd $002d
; 0x195f20

UnknownScript_0x195f20: ; 0x195f20
	trainertotext JANINE, 1, $1
	jumpstd $002e
; 0x195f27

MovementData_0x195f27: ; 0x195f27
	turn_head_down
	turn_head_left
	turn_head_up
	turn_head_right
	turn_head_down
	turn_head_left
	turn_head_up
	turn_head_right
	turn_head_down
	turn_head_left
	turn_head_up
	turn_head_right
	turn_head_down
	step_end
; 0x195f35

UnknownText_0x195f35: ; 0x195f35
	text "Fufufufu…"

	para "I'm sorry to dis-"
	line "appoint you…"

	para "I'm only joking!"

	para "I'm the real deal!"

	para "JANINE of FUCHSIA"
	line "GYM, that's me!"
	done
; 0x195fa1

UnknownText_0x195fa1: ; 0x195fa1
	text "JANINE: You're a"
	line "tough one. You"
	cont "definitely won…"

	para "Here's SOULBADGE."
	line "Take it."
	done
; 0x195feb

UnknownText_0x195feb: ; 0x195feb
	text $52, " received"
	line "SOULBADGE."
	done
; 0x196002

UnknownText_0x196002: ; 0x196002
	text "JANINE: You're so"
	line "tough! I have a"
	cont "special gift!"

	para "It's TOXIC, a pow-"
	line "erful poison that"

	para "steadily saps the"
	line "victim's HP."
	done
; 0x196074

UnknownText_0x196074: ; 0x196074
	text "JANINE: I'm going"
	line "to really apply"

	para "myself and improve"
	line "my skills."

	para "I want to become"
	line "better than both"
	cont "Father and you!"
	done
; 0x1960e6

UnknownText_0x1960e6: ; 0x1960e6
	text "Fufufu!"

	para "I'm JANINE, the"
	line "GYM LEADER!"

	para "No, I'm not!"
	line "Gotcha, sucker!"
	done
; 0x196126

UnknownText_0x196126: ; 0x196126
	text "I had you fooled…"
	done
; 0x196139

UnknownText_0x196139: ; 0x196139
	text "How will you dis-"
	line "tinguish our real"
	cont "LEADER?"
	done
; 0x196166

UnknownText_0x196166: ; 0x196166
	text "Fooled you!"
	line "Hahaha!"
	done
; 0x19617b

UnknownText_0x19617b: ; 0x19617b
	text "Ooh… I lost…"
	line "You're not weak…"
	done
; 0x196199

UnknownText_0x196199: ; 0x196199
	text "Well? Wasn't my"
	line "disguise perfect?"
	done
; 0x1961bb

UnknownText_0x1961bb: ; 0x1961bb
	text "I'm JANINE!"

	para "How did you know I"
	line "was real?"

	para "Let's battle!"
	done
; 0x1961f1

UnknownText_0x1961f1: ; 0x1961f1
	text "Darn it!"
	line "I wanted to win!"
	done
; 0x19620c

UnknownText_0x19620c: ; 0x19620c
	text "You must be"
	line "getting tired."
	done
; 0x196228

UnknownText_0x196228: ; 0x196228
	text "Wahahaha!"

	para "You betcha!"
	line "I'm JANINE!"
	done
; 0x19624a

UnknownText_0x19624a: ; 0x19624a
	text "My disguise was"
	line "right on! Dang!"
	done
; 0x19626b

UnknownText_0x19626b: ; 0x19626b
	text "Hey, you. Was my"
	line "disguise cute or"
	cont "what, huh?"
	done
; 0x196299

FuchsiaGymGuyText: ; 0x196299
	text "Yo, CHAMP in"
	line "making!"

	para "Whoops! Take a"
	line "good look around"

	para "you. The trainers"
	line "all look like the"
	cont "LEADER, JANINE."

	para "Which of them is"
	line "the real JANINE?"
	done
; 0x196325

FuchsiaGymGuyWinText: ; 0x196325
	text "That was a great"
	line "battle, trainer"
	cont "from JOHTO!"
	done
; 0x196353

FuchsiaGym_MapEventHeader: ; 0x196353
	; filler
	db 0, 0

	; warps
	db 2
	warp_def $11, $4, 3, GROUP_FUCHSIA_CITY, MAP_FUCHSIA_CITY
	warp_def $11, $5, 3, GROUP_FUCHSIA_CITY, MAP_FUCHSIA_CITY

	; xy triggers
	db 0

	; signposts
	db 2
	signpost 15, 3, $0, MapFuchsiaGymSignpost1Script
	signpost 15, 6, $0, MapFuchsiaGymSignpost1Script

	; people-events
	db 6
	person_event SPRITE_JANINE, 14, 5, $3, $0, 255, 255, $90, 0, JanineScript_0x195db9, $ffff
	person_event SPRITE_FUSCHIA_GYM_1, 11, 9, $a, $0, 255, 255, $90, 0, FuschiaGym1Script_0x195e1b, $ffff
	person_event SPRITE_FUSCHIA_GYM_2, 15, 9, $a, $0, 255, 255, $90, 0, FuschiaGym2Script_0x195e55, $ffff
	person_event SPRITE_FUSCHIA_GYM_3, 8, 13, $a, $0, 255, 255, $90, 0, FuschiaGym3Script_0x195e8f, $ffff
	person_event SPRITE_FUSCHIA_GYM_4, 6, 8, $a, $0, 255, 255, $90, 0, FuschiaGym4Script_0x195ec9, $ffff
	person_event SPRITE_GYM_GUY, 19, 11, $6, $0, 255, 255, $90, 0, FuchsiaGymGuyScript, $ffff
; 0x1963bb