summaryrefslogtreecommitdiff
path: root/maps/PowerPlant.asm
blob: 02c3720ad7f72366c12325e820259b77109e1b59 (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
PowerPlant_MapScriptHeader: ; 0x188db9
	; trigger count
	db 2

	; triggers
	dw UnknownScript_0x188dc3, $0000
	dw UnknownScript_0x188dc4, $0000

	; callback count
	db 0
; 0x188dc3

UnknownScript_0x188dc3: ; 0x188dc3
	end
; 0x188dc4

UnknownScript_0x188dc4: ; 0x188dc4
	end
; 0x188dc5

UnknownScript_0x188dc5: ; 0x188dc5
	playsound $006a
	showemote $0, $2, 15
	waitbutton
	pause 30
	applymovement $2, MovementData_0x188ed5
	spriteface $3, $0
	spriteface $4, $0
	loadfont
	2writetext UnknownText_0x188f22
	closetext
	loadmovesprites
	spriteface $2, $2
	spriteface $0, $3
	loadfont
	2writetext UnknownText_0x188f7f
	closetext
	loadmovesprites
	spriteface $0, $0
	applymovement $2, MovementData_0x188eda
	dotrigger $0
	end
; 0x188df5

OfficerScript_0x188df5: ; 0x188df5
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x188e0f
	checkevent EVENT_MET_MANAGER_AT_POWER_PLANT
	iftrue UnknownScript_0x188e09
	2writetext UnknownText_0x188ee0
	closetext
	loadmovesprites
	end
; 0x188e09

UnknownScript_0x188e09: ; 0x188e09
	2writetext UnknownText_0x188f7f
	closetext
	loadmovesprites
	end
; 0x188e0f

UnknownScript_0x188e0f: ; 0x188e0f
	2writetext UnknownText_0x188fa2
	closetext
	loadmovesprites
	end
; 0x188e15

GymGuyScript_0x188e15: ; 0x188e15
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x188e23
	2writetext UnknownText_0x188fcf
	closetext
	loadmovesprites
	end
; 0x188e23

UnknownScript_0x188e23: ; 0x188e23
	2writetext UnknownText_0x189038
	closetext
	loadmovesprites
	end
; 0x188e29

GymGuyScript_0x188e29: ; 0x188e29
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x188e37
	2writetext UnknownText_0x189079
	closetext
	loadmovesprites
	end
; 0x188e37

UnknownScript_0x188e37: ; 0x188e37
	2writetext UnknownText_0x1890ef
	closetext
	loadmovesprites
	end
; 0x188e3d

OfficerScript_0x188e3d: ; 0x188e3d
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x188e4b
	2writetext UnknownText_0x18910e
	closetext
	loadmovesprites
	end
; 0x188e4b

UnknownScript_0x188e4b: ; 0x188e4b
	2writetext UnknownText_0x18917f
	closetext
	loadmovesprites
	end
; 0x188e51

GymGuyScript_0x188e51: ; 0x188e51
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x188e5f
	2writetext UnknownText_0x1891c2
	closetext
	loadmovesprites
	end
; 0x188e5f

UnknownScript_0x188e5f: ; 0x188e5f
	2writetext UnknownText_0x189225
	closetext
	loadmovesprites
	end
; 0x188e65

FisherScript_0x188e65: ; 0x188e65
	faceplayer
	loadfont
	checkevent EVENT_RETURNED_MACHINE_PART
	iftrue UnknownScript_0x188eac
	checkitem MACHINE_PART
	iftrue UnknownScript_0x188e93
	checkevent EVENT_MET_MANAGER_AT_POWER_PLANT
	iftrue UnknownScript_0x188e8d
	2writetext UnknownText_0x189264
	closetext
	loadmovesprites
	setevent EVENT_MET_MANAGER_AT_POWER_PLANT
	clearevent $076d
	clearevent EVENT_FOUND_MACHINE_PART_IN_CERULEAN_GYM
	domaptrigger GROUP_CERULEAN_GYM, MAP_CERULEAN_GYM, $1
	dotrigger $1
	end
; 0x188e8d

UnknownScript_0x188e8d: ; 0x188e8d
	2writetext UnknownText_0x189308
	closetext
	loadmovesprites
	end
; 0x188e93

UnknownScript_0x188e93: ; 0x188e93
	2writetext UnknownText_0x18936e
	keeptextopen
	takeitem MACHINE_PART, 1
	setevent EVENT_RETURNED_MACHINE_PART
	clearevent $0772
	setevent $0771
	setevent $076c
	setevent EVENT_RESTORED_POWER_TO_KANTO
	clearevent $0749
UnknownScript_0x188eac: ; 0x188eac
	checkevent EVENT_GOT_TM07_ZAP_CANNON
	iftrue UnknownScript_0x188ec5
	2writetext UnknownText_0x1893c4
	keeptextopen
	verbosegiveitem TM_07, 1
	iffalse UnknownScript_0x188ec3
	setevent EVENT_GOT_TM07_ZAP_CANNON
	2writetext UnknownText_0x1893f4
	closetext
UnknownScript_0x188ec3: ; 0x188ec3
	loadmovesprites
	end
; 0x188ec5

UnknownScript_0x188ec5: ; 0x188ec5
	2writetext UnknownText_0x189475
	closetext
	loadmovesprites
	end
; 0x188ecb

GymGuyScript_0x188ecb: ; 0x188ecb
	faceplayer
	loadfont
	trade $6
	closetext
	loadmovesprites
	end
; 0x188ed2

MapPowerPlantSignpost1Script: ; 0x188ed2
	jumpstd $0001
; 0x188ed5

MovementData_0x188ed5: ; 0x188ed5
	step_right
	step_right
	step_up
	step_up
	step_end
; 0x188eda

MovementData_0x188eda: ; 0x188eda
	step_down
	step_down
	step_left
	step_left
	turn_head_down
	step_end
; 0x188ee0

UnknownText_0x188ee0: ; 0x188ee0
	text "A thief broke into"
	line "the POWER PLANT…"

	para "What is the world"
	line "coming to?"
	done
; 0x188f22

UnknownText_0x188f22: ; 0x188f22
	text "I just got word"
	line "from CERULEAN."

	para "It appears that a"
	line "shady character"

	para "has been loitering"
	line "around."
	done
; 0x188f7f

UnknownText_0x188f7f: ; 0x188f7f
	text "Could I ask for"
	line "your cooperation?"
	done
; 0x188fa2

UnknownText_0x188fa2: ; 0x188fa2
	text "We'll have to beef"
	line "up our security"
	cont "presence."
	done
; 0x188fcf

UnknownText_0x188fcf: ; 0x188fcf
	text "Someone made off"
	line "with a part that's"

	para "essential for the"
	line "generator."

	para "Without it, the"
	line "new generator's"
	cont "useless!"
	done
; 0x189038

UnknownText_0x189038: ; 0x189038
	text "The generator's up"
	line "and running. It's"

	para "making electricity"
	line "to spare."
	done
; 0x189079

UnknownText_0x189079: ; 0x189079
	text "This POWER PLANT"
	line "had been abandoned"
	cont "in the past."

	para "We got it back up"
	line "and running to"

	para "provide power to"
	line "the MAGNET TRAIN."
	done
; 0x1890ef

UnknownText_0x1890ef: ; 0x1890ef
	text "The generator's"
	line "running again!"
	done
; 0x18910e

UnknownText_0x18910e: ; 0x18910e
	text "The POWER PLANT's"
	line "MANAGER is up"
	cont "ahead."

	para "But since someone"
	line "wrecked the gener-"
	cont "ator, he's been"
	cont "both sad and"
	cont "furious…"
	done
; 0x18917f

UnknownText_0x18917f: ; 0x18917f
	text "Since the gener-"
	line "ator's been fixed,"

	para "the MANAGER has"
	line "been cheerful."
	done
; 0x1891c2

UnknownText_0x1891c2: ; 0x1891c2
	text "The MAGNET TRAIN"
	line "consumes a lot of"
	cont "electricity."

	para "It can't move if"
	line "the new generator"
	cont "isn't operating."
	done
; 0x189225

UnknownText_0x189225: ; 0x189225
	text "All right! We can"
	line "finally get the"

	para "MAGNET TRAIN"
	line "running again."
	done
; 0x189264

UnknownText_0x189264: ; 0x189264
	text "MANAGER: I, I, I'm"
	line "ready to blast"
	cont "someone!"

	para "Who would dare"
	line "ruin my generator?"

	para "I spent so much"
	line "time on it!"

	para "If I catch him,"
	line "he's going to get"

	para "a taste of my ZAP"
	line "CANNON!"
	done
; 0x189308

UnknownText_0x189308: ; 0x189308
	text "MANAGER: I won't"
	line "forgive him!"

	para "The culprit can"
	line "cry and apologize,"

	para "but I'll still"
	line "hammer him!"

	para "Gahahahah!"
	done
; 0x18936e

UnknownText_0x18936e: ; 0x18936e
	text "MANAGER: Ah! Yeah!"

	para "That's the missing"
	line "PART from my be-"
	cont "loved generator!"
	cont "You found it?"
	done
; 0x1893c4

UnknownText_0x1893c4: ; 0x1893c4
	text "Wahah! Thanks!"

	para "Here! Take this TM"
	line "as a reward!"
	done
; 0x1893f4

UnknownText_0x1893f4: ; 0x1893f4
	text "MANAGER: TM07 is"
	line "my ZAP CANNON."

	para "It's a powerful"
	line "technique!"

	para "It's not what any-"
	line "one would consider"

	para "accurate, but it"
	line "packs a wallop!"
	done
; 0x189475

UnknownText_0x189475: ; 0x189475
	text "MANAGER: My be-"
	line "loved generator!"

	para "Keep pumping the"
	line "electricity out!"
	done
; 0x1894b9

PowerPlant_MapEventHeader: ; 0x1894b9
	; filler
	db 0, 0

	; warps
	db 2
	warp_def $11, $2, 2, GROUP_ROUTE_10_NORTH, MAP_ROUTE_10_NORTH
	warp_def $11, $3, 2, GROUP_ROUTE_10_NORTH, MAP_ROUTE_10_NORTH

	; xy triggers
	db 1
	xy_trigger 1, $c, $5, $0, UnknownScript_0x188dc5, $0, $0

	; signposts
	db 2
	signpost 1, 0, $0, MapPowerPlantSignpost1Script
	signpost 1, 1, $0, MapPowerPlantSignpost1Script

	; people-events
	db 7
	person_event SPRITE_OFFICER, 18, 8, $6, $0, 255, 255, $a0, 0, OfficerScript_0x188df5, $ffff
	person_event SPRITE_GYM_GUY, 13, 6, $3, $0, 255, 255, $90, 0, GymGuyScript_0x188e15, $ffff
	person_event SPRITE_GYM_GUY, 15, 10, $7, $0, 255, 255, $90, 0, GymGuyScript_0x188e29, $ffff
	person_event SPRITE_OFFICER, 7, 13, $8, $0, 255, 255, $a0, 0, OfficerScript_0x188e3d, $ffff
	person_event SPRITE_GYM_GUY, 6, 11, $5, $1, 255, 255, $90, 0, GymGuyScript_0x188e51, $ffff
	person_event SPRITE_FISHER, 14, 18, $7, $0, 255, 255, $80, 0, FisherScript_0x188e65, $ffff
	person_event SPRITE_GYM_GUY, 9, 9, $7, $0, 255, 255, $90, 0, GymGuyScript_0x188ecb, $ffff
; 0x189536