summaryrefslogtreecommitdiff
path: root/maps/TeamRocketBaseB1F.asm
blob: 8a72e52341d782b2b018704153a20b18d85d0fb0 (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
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
TeamRocketBaseB1F_MapScriptHeader: ; 0x6c651
	; trigger count
	db 1

	; triggers
	dw UnknownScript_0x6c65a, $0000

	; callback count
	db 1

	; callbacks

	dbw 2, UnknownScript_0x6c65b
; 0x6c65a

UnknownScript_0x6c65a: ; 0x6c65a
	end
; 0x6c65b

UnknownScript_0x6c65b: ; 0x6c65b
	disappear $2
	return
; 0x6c65e

SecurityCamera1a: ; 0x6c65e
	checkevent EVENT_SECURITY_CAMERA_1
	iftrue NoSecurityCamera
	2call PlaySecurityCameraSounds
	checkevent $06da
	iftrue NoSecurityCamera
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $13, $2
	appear $2
	spriteface $0, $2
	applymovement $2, SecurityCameraMovement1
	2call TrainerCameraGrunt1
	if_equal $1, NoSecurityCamera
	2call PlaySecurityCameraSounds
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $13, $2
	appear $2
	applymovement $2, SecurityCameraMovement1
	2call TrainerCameraGrunt2
	if_equal $1, NoSecurityCamera
	setevent EVENT_SECURITY_CAMERA_1
	end
; 0x6c6a7

SecurityCamera1b: ; 0x6c6a7
	checkevent EVENT_SECURITY_CAMERA_1
	iftrue NoSecurityCamera
	2call PlaySecurityCameraSounds
	checkevent $06da
	iftrue NoSecurityCamera
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $13, $3
	appear $2
	spriteface $0, $2
	applymovement $2, SecurityCameraMovement1
	2call TrainerCameraGrunt1
	if_equal $1, NoSecurityCamera
	2call PlaySecurityCameraSounds
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $13, $3
	appear $2
	applymovement $2, SecurityCameraMovement1
	2call TrainerCameraGrunt2
	if_equal $1, NoSecurityCamera
	setevent EVENT_SECURITY_CAMERA_1
	end
; 0x6c6f0

SecurityCamera2a: ; 0x6c6f0
	checkevent EVENT_SECURITY_CAMERA_2
	iftrue NoSecurityCamera
	2call PlaySecurityCameraSounds
	checkevent $06da
	iftrue NoSecurityCamera
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $4, $7
	appear $2
	spriteface $0, $2
	applymovement $2, SecurityCameraMovement2
	2call TrainerCameraGrunt1
	if_equal $1, NoSecurityCamera
	2call PlaySecurityCameraSounds
	showemote $0, $0, 15
	playmusic $0039
	spriteface $0, $3
	moveperson $2, $c, $5
	appear $2
	applymovement $2, SecurityCameraMovement3
	2call TrainerCameraGrunt2
	if_equal $1, NoSecurityCamera
	setevent EVENT_SECURITY_CAMERA_2
	end
; 0x6c73c

SecurityCamera2b: ; 0x6c73c
	checkevent EVENT_SECURITY_CAMERA_2
	iftrue NoSecurityCamera
	2call PlaySecurityCameraSounds
	checkevent $06da
	iftrue NoSecurityCamera
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $4, $8
	appear $2
	spriteface $0, $2
	applymovement $2, SecurityCameraMovement4
	2call TrainerCameraGrunt1
	if_equal $1, NoSecurityCamera
	2call PlaySecurityCameraSounds
	showemote $0, $0, 15
	playmusic $0039
	spriteface $0, $3
	moveperson $2, $c, $5
	appear $2
	applymovement $2, SecurityCameraMovement5
	2call TrainerCameraGrunt2
	if_equal $1, NoSecurityCamera
	setevent EVENT_SECURITY_CAMERA_2
	end
; 0x6c788

SecurityCamera3a: ; 0x6c788
	checkevent EVENT_SECURITY_CAMERA_3
	iftrue NoSecurityCamera
	2call PlaySecurityCameraSounds
	checkevent $06da
	iftrue NoSecurityCamera
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $13, $6
	appear $2
	spriteface $0, $2
	applymovement $2, SecurityCameraMovement1
	2call TrainerCameraGrunt1
	if_equal $1, NoSecurityCamera
	2call PlaySecurityCameraSounds
	showemote $0, $0, 15
	playmusic $0039
	spriteface $0, $3
	moveperson $2, $19, $b
	appear $2
	applymovement $2, SecurityCameraMovement6
	2call TrainerCameraGrunt2
	if_equal $1, NoSecurityCamera
	setevent EVENT_SECURITY_CAMERA_3
	end
; 0x6c7d4

SecurityCamera3b: ; 0x6c7d4
	checkevent EVENT_SECURITY_CAMERA_3
	iftrue NoSecurityCamera
	2call PlaySecurityCameraSounds
	checkevent $06da
	iftrue NoSecurityCamera
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $13, $7
	appear $2
	spriteface $0, $2
	applymovement $2, SecurityCameraMovement1
	2call TrainerCameraGrunt1
	if_equal $1, NoSecurityCamera
	2call PlaySecurityCameraSounds
	showemote $0, $0, 15
	playmusic $0039
	spriteface $0, $3
	moveperson $2, $19, $c
	appear $2
	applymovement $2, SecurityCameraMovement7
	2call TrainerCameraGrunt2
	if_equal $1, NoSecurityCamera
	setevent EVENT_SECURITY_CAMERA_3
	end
; 0x6c820

SecurityCamera4: ; 0x6c820
	checkevent EVENT_SECURITY_CAMERA_4
	iftrue NoSecurityCamera
	2call PlaySecurityCameraSounds
	checkevent $06da
	iftrue NoSecurityCamera
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $11, $10
	appear $2
	spriteface $0, $2
	applymovement $2, SecurityCameraMovement1
	2call TrainerCameraGrunt1
	if_equal $1, NoSecurityCamera
	2call PlaySecurityCameraSounds
	showemote $0, $0, 15
	playmusic $0039
	spriteface $0, $3
	moveperson $2, $19, $b
	appear $2
	applymovement $2, SecurityCameraMovement8
	2call TrainerCameraGrunt2
	if_equal $1, NoSecurityCamera
	setevent EVENT_SECURITY_CAMERA_4
	end
; 0x6c86c

SecurityCamera5: ; 0x6c86c
	checkevent EVENT_SECURITY_CAMERA_5
	iftrue NoSecurityCamera
	2call PlaySecurityCameraSounds
	checkevent $06da
	iftrue NoSecurityCamera
	showemote $0, $0, 15
	playmusic $0039
	moveperson $2, $3, $10
	appear $2
	spriteface $0, $2
	applymovement $2, SecurityCameraMovement1
	2call TrainerCameraGrunt1
	if_equal $1, NoSecurityCamera
	2call PlaySecurityCameraSounds
	showemote $0, $0, 15
	playmusic $0039
	spriteface $0, $3
	moveperson $2, $e, $10
	appear $2
	applymovement $2, SecurityCameraMovement9
	2call TrainerCameraGrunt2
	if_equal $1, NoSecurityCamera
	setevent EVENT_SECURITY_CAMERA_5
	end
; 0x6c8b8

NoSecurityCamera: ; 0x6c8b8
	end
; 0x6c8b9

TrainerCameraGrunt1: ; 0x6c8b9
	loadfont
	2writetext CameraGrunt1SeenText
	closetext
	loadmovesprites
	winlosstext CameraGrunt1BeatenText, $0000
	setlasttalked $2
	loadtrainer GRUNTM, 20
	startbattle
	disappear $2
	returnafterbattle
	end
; 0x6c8ce

TrainerCameraGrunt2: ; 0x6c8ce
	loadfont
	2writetext CameraGrunt2SeenText
	closetext
	loadmovesprites
	winlosstext CameraGrunt2BeatenText, $0000
	setlasttalked $2
	loadtrainer GRUNTM, 21
	startbattle
	disappear $2
	returnafterbattle
	end
; 0x6c8e3

PlaySecurityCameraSounds: ; 0x6c8e3
	playsound $0030
	pause 10
	playsound $0030
	pause 10
	playsound $0030
	pause 10
	playsound $0030
	pause 10
	playsound $0030
	pause 10
	playsound $0030
	end
; 0x6c900

ExplodingTrap1: ; 0x6c900
	checkevent EVENT_EXPLODING_TRAP_1
	iftrue NoExplodingTrap
	2call KoffingExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_1
	end

ExplodingTrap2: ; 0x6c90e
	checkevent EVENT_EXPLODING_TRAP_2
	iftrue NoExplodingTrap
	2call VoltorbExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_2
	end

ExplodingTrap3: ; 0x6c91c
	checkevent EVENT_EXPLODING_TRAP_3
	iftrue NoExplodingTrap
	2call GeodudeExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_3
	end

ExplodingTrap4: ; 0x6c92a
	checkevent EVENT_EXPLODING_TRAP_4
	iftrue NoExplodingTrap
	2call VoltorbExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_4
	end

ExplodingTrap5: ; 0x6c938
	checkevent EVENT_EXPLODING_TRAP_5
	iftrue NoExplodingTrap
	2call GeodudeExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_5
	end

ExplodingTrap6: ; 0x6c946
	checkevent EVENT_EXPLODING_TRAP_6
	iftrue NoExplodingTrap
	2call KoffingExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_6
	end

ExplodingTrap7: ; 0x6c954
	checkevent EVENT_EXPLODING_TRAP_7
	iftrue NoExplodingTrap
	2call VoltorbExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_7
	end

ExplodingTrap8: ; 0x6c962
	checkevent EVENT_EXPLODING_TRAP_8
	iftrue NoExplodingTrap
	2call KoffingExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_8
	end

ExplodingTrap9: ; 0x6c970
	checkevent EVENT_EXPLODING_TRAP_9
	iftrue NoExplodingTrap
	2call KoffingExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_9
	end

ExplodingTrap10: ; 0x6c97e
	checkevent EVENT_EXPLODING_TRAP_10
	iftrue NoExplodingTrap
	2call VoltorbExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_10
	end

ExplodingTrap11: ; 0x6c98c
	checkevent EVENT_EXPLODING_TRAP_11
	iftrue NoExplodingTrap
	2call GeodudeExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_11
	end

ExplodingTrap12: ; 0x6c99a
	checkevent EVENT_EXPLODING_TRAP_12
	iftrue NoExplodingTrap
	2call GeodudeExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_12
	end

ExplodingTrap13: ; 0x6c9a8
	checkevent EVENT_EXPLODING_TRAP_13
	iftrue NoExplodingTrap
	2call GeodudeExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_13
	end

ExplodingTrap14: ; 0x6c9b6
	checkevent EVENT_EXPLODING_TRAP_14
	iftrue NoExplodingTrap
	2call KoffingExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_14
	end

ExplodingTrap15: ; 0x6c9c4
	checkevent EVENT_EXPLODING_TRAP_15
	iftrue NoExplodingTrap
	2call VoltorbExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_15
	end

ExplodingTrap16: ; 0x6c9d2
	checkevent EVENT_EXPLODING_TRAP_16
	iftrue NoExplodingTrap
	2call KoffingExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_16
	end

ExplodingTrap17: ; 0x6c9e0
	checkevent EVENT_EXPLODING_TRAP_17
	iftrue NoExplodingTrap
	2call VoltorbExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_17
	end

ExplodingTrap18: ; 0x6c9ee
	checkevent EVENT_EXPLODING_TRAP_18
	iftrue NoExplodingTrap
	2call GeodudeExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_18
	end

ExplodingTrap19: ; 0x6c9fc
	checkevent EVENT_EXPLODING_TRAP_19
	iftrue NoExplodingTrap
	2call GeodudeExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_19
	end

ExplodingTrap20: ; 0x6ca0a
	checkevent EVENT_EXPLODING_TRAP_20
	iftrue NoExplodingTrap
	2call VoltorbExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_20
	end

ExplodingTrap21: ; 0x6ca18
	checkevent EVENT_EXPLODING_TRAP_21
	iftrue NoExplodingTrap
	2call KoffingExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_21
	end

ExplodingTrap22: ; 0x6ca26
	checkevent EVENT_EXPLODING_TRAP_22
	iftrue NoExplodingTrap
	2call VoltorbExplodingTrap
	returnafterbattle
	setevent EVENT_EXPLODING_TRAP_22
	end

VoltorbExplodingTrap: ; 0x6ca34
	special $002e
	cry VOLTORB
	special $0031
	setlasttalked $ff
	writecode $3, $9
	loadpokedata VOLTORB, 23
	startbattle
	end

GeodudeExplodingTrap: ; 0x6ca47
	special $002e
	cry GEODUDE
	special $0031
	setlasttalked $ff
	writecode $3, $9
	loadpokedata GEODUDE, 21
	startbattle
	end

KoffingExplodingTrap: ; 0x6ca5a
	special $002e
	cry KOFFING
	special $0031
	setlasttalked $ff
	writecode $3, $9
	loadpokedata KOFFING, 21
	startbattle
	end

NoExplodingTrap: ; 0x6ca6d
	end
; 0x6ca6e

TrainerScientistJed: ; 0x6ca6e
	; bit/flag number
	dw $4a1

	; trainer group && trainer id
	db SCIENTIST, JED

	; text when seen
	dw ScientistJedSeenText

	; text when trainer beaten
	dw ScientistJedBeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw ScientistJedScript
; 0x6ca7a

ScientistJedScript: ; 0x6ca7a
	talkaftercancel
	loadfont
	2writetext UnknownText_0x6cc16
	closetext
	loadmovesprites
	end
; 0x6ca82

TrainerGruntM16: ; 0x6ca82
	; bit/flag number
	dw $500

	; trainer group && trainer id
	db GRUNTM, 16

	; text when seen
	dw GruntM16SeenText

	; text when trainer beaten
	dw GruntM16BeatenText

	; script when lost
	dw $0000

	; script when talk again
	dw GruntM16Script
; 0x6ca8e

GruntM16Script: ; 0x6ca8e
	talkaftercancel
	loadfont
	2writetext UnknownText_0x6cd1b
	closetext
	loadmovesprites
	end
; 0x6ca96

MapTeamRocketBaseB1FSignpost5Script: ; 0x6ca96
	jumptext SecurityCameraText
; 0x6ca99

MapTeamRocketBaseB1FSignpost7Script: ; 0x6ca99
	jumpstd $0004
; 0x6ca9c

MapTeamRocketBaseB1FSignpost0Script: ; 0x6ca9c
	loadfont
	checkevent EVENT_TURNED_OFF_SECURITY_CAMERAS
	iftrue UnknownScript_0x6cabe
	2writetext UnknownText_0x6cdad
	playsound $0021
	closetext
	loadmovesprites
	setevent EVENT_TURNED_OFF_SECURITY_CAMERAS
	setevent EVENT_SECURITY_CAMERA_1
	setevent EVENT_SECURITY_CAMERA_2
	setevent EVENT_SECURITY_CAMERA_3
	setevent EVENT_SECURITY_CAMERA_4
	setevent EVENT_SECURITY_CAMERA_5
	end
; 0x6cabe

UnknownScript_0x6cabe: ; 0x6cabe
	2writetext UnknownText_0x6cdd0
	closetext
	loadmovesprites
	end
; 0x6cac4

ItemFragment_0x6cac4: ; 0x6cac4
	db HYPER_POTION, 1
; 0x6cac6

ItemFragment_0x6cac6: ; 0x6cac6
	db NUGGET, 1
; 0x6cac8

ItemFragment_0x6cac8: ; 0x6cac8
	db GUARD_SPEC, 1
; 0x6caca

MapTeamRocketBaseB1FSignpostItem8: ; 0x6caca
	dw $0086
	db REVIVE
	
; 0x6cacd

SecurityCameraMovement1: ; 0x6cacd
	big_step_right
	big_step_right
	big_step_right
	big_step_right
	step_end
; 0x6cad2

SecurityCameraMovement2: ; 0x6cad2
	big_step_up
	big_step_right
	big_step_up
	big_step_up
	big_step_up
	big_step_up
	turn_head_right
	step_end
; 0x6cada

SecurityCameraMovement3: ; 0x6cada
	big_step_left
	big_step_left
	big_step_left
	big_step_up
	big_step_up
	big_step_up
	big_step_left
	big_step_left
	step_end
; 0x6cae3

SecurityCameraMovement4: ; 0x6cae3
; he jumps over a trap
	jump_step_up
	big_step_right
	big_step_up
	big_step_up
	big_step_up
	turn_head_right
	step_end
; 0x6caea

SecurityCameraMovement5: ; 0x6caea
	big_step_left
	big_step_left
	big_step_left
	big_step_up
	big_step_up
	big_step_left
	big_step_left
	step_end
; 0x6caf2

SecurityCameraMovement6: ; 0x6caf2
	big_step_up
	big_step_up
	big_step_right
	big_step_up
	big_step_up
	big_step_up
	big_step_left
	step_end
; 0x6cafa

SecurityCameraMovement7: ; 0x6cafa
	big_step_up
	big_step_up
	big_step_up
	big_step_right
	big_step_up
	big_step_up
	big_step_left
	step_end
; 0x6cb02

SecurityCameraMovement8: ; 0x6cb02
	big_step_down
	big_step_down
	big_step_right
	big_step_down
	big_step_down
	big_step_down
	big_step_left
	big_step_left
	big_step_left
	step_end
; 0x6cb0c

SecurityCameraMovement9: ; 0x6cb0c
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	step_end
; 0x6cb12

CameraGrunt1SeenText: ; 0x6cb12
	text "Hey!"
	line "Intruder alert!"
	done
; 0x6cb28

CameraGrunt1BeatenText: ; 0x6cb28
	text "Dang… I failed…"
	done
; 0x6cb39

CameraGrunt2SeenText: ; 0x6cb39
	text "It's my turn!"
	line "There's no escape!"
	done
; 0x6cb59

CameraGrunt2BeatenText: ; 0x6cb59
	text "Surveillance cams"
	line "are in the #MON"
	cont "statues."

	para "We'll keep appear-"
	line "ing until you trip"
	cont "a secret switch."
	done
; 0x6cbbb

ScientistJedSeenText: ; 0x6cbbb
	text "This was once a"
	line "ninja hideout."

	para "There are traps to"
	line "confound intruders"
	cont "like you."
	done
; 0x6cc0b

ScientistJedBeatenText: ; 0x6cc0b
	text "I get it…"
	done
; 0x6cc16

UnknownText_0x6cc16: ; 0x6cc16
	text "All right. I'll"
	line "divulge a secret"
	cont "about our hideout."

	para "That thing on the"
	line "floor up ahead is"
	cont "a warp panel."

	para "If you step on it,"
	line "you'll be warped"

	para "back to the en-"
	line "trance."
	done
; 0x6ccb7

GruntM16SeenText: ; 0x6ccb7
	text "Heheh. Feeling"
	line "lucky, punk?"

	para "Go ahead, take"
	line "another step."

	para "We've got traps"
	line "set in the floor!"
	done
; 0x6cd12

GruntM16BeatenText: ; 0x6cd12
	text "Kaboom!"
	done
; 0x6cd1b

UnknownText_0x6cd1b: ; 0x6cd1b
	text "I don't even know"
	line "where the traps"
	cont "are planted."

	para "You'll just have"
	line "to collect your"
	cont "courage and walk."
	done
; 0x6cd7c

SecurityCameraText: ; 0x6cd7c
	text "It's a PERSIAN"
	line "statue…"

	para "Its eyes are oddly"
	line "shiny."
	done
; 0x6cdad

UnknownText_0x6cdad: ; 0x6cdad
	text "A secret switch!"
	line "Better press it."
	done
; 0x6cdd0

UnknownText_0x6cdd0: ; 0x6cdd0
	text "The switch is"
	line "turned off."
	done
; 0x6cdeb

TeamRocketBaseB1F_MapEventHeader: ; 0x6cdeb
	; filler
	db 0, 0

	; warps
	db 4
	warp_def $2, $1b, 3, GROUP_MAHOGANY_MART_1F, MAP_MAHOGANY_MART_1F
	warp_def $e, $3, 1, GROUP_TEAM_ROCKET_BASE_B2F, MAP_TEAM_ROCKET_BASE_B2F
	warp_def $f, $5, 4, GROUP_TEAM_ROCKET_BASE_B1F, MAP_TEAM_ROCKET_BASE_B1F
	warp_def $2, $19, 3, GROUP_TEAM_ROCKET_BASE_B1F, MAP_TEAM_ROCKET_BASE_B1F

	; xy triggers
	db 30
	; There are five security cameras in the base.
	; Walking in front of one triggers two Rocket Grunts.
	xy_trigger 0, $2, $18, $0, SecurityCamera1a, $0, $0
	xy_trigger 0, $3, $18, $0, SecurityCamera1b, $0, $0
	xy_trigger 0, $2, $6, $0, SecurityCamera2a, $0, $0
	xy_trigger 0, $3, $6, $0, SecurityCamera2b, $0, $0
	xy_trigger 0, $6, $18, $0, SecurityCamera3a, $0, $0
	xy_trigger 0, $7, $18, $0, SecurityCamera3b, $0, $0
	xy_trigger 0, $10, $16, $0, SecurityCamera4, $0, $0
	xy_trigger 0, $10, $8, $0, SecurityCamera5, $0, $0
	; There are spots on the floor that trigger a Pokémon battle.
	; Each Pokémon (Voltorb, Koffing, Geodude) knows Selfdestruct.
	xy_trigger 0, $7, $2, $0, ExplodingTrap1, $0, $0
	xy_trigger 0, $7, $3, $0, ExplodingTrap2, $0, $0
	xy_trigger 0, $7, $4, $0, ExplodingTrap3, $0, $0
	xy_trigger 0, $8, $1, $0, ExplodingTrap4, $0, $0
	xy_trigger 0, $8, $3, $0, ExplodingTrap5, $0, $0
	xy_trigger 0, $8, $5, $0, ExplodingTrap6, $0, $0
	xy_trigger 0, $9, $3, $0, ExplodingTrap7, $0, $0
	xy_trigger 0, $9, $4, $0, ExplodingTrap8, $0, $0
	xy_trigger 0, $a, $1, $0, ExplodingTrap9, $0, $0
	xy_trigger 0, $a, $2, $0, ExplodingTrap10, $0, $0
	xy_trigger 0, $a, $3, $0, ExplodingTrap11, $0, $0
	xy_trigger 0, $a, $5, $0, ExplodingTrap12, $0, $0
	xy_trigger 0, $b, $2, $0, ExplodingTrap13, $0, $0
	xy_trigger 0, $b, $4, $0, ExplodingTrap14, $0, $0
	xy_trigger 0, $c, $1, $0, ExplodingTrap15, $0, $0
	xy_trigger 0, $c, $2, $0, ExplodingTrap16, $0, $0
	xy_trigger 0, $c, $4, $0, ExplodingTrap17, $0, $0
	xy_trigger 0, $c, $5, $0, ExplodingTrap18, $0, $0
	xy_trigger 0, $d, $1, $0, ExplodingTrap19, $0, $0
	xy_trigger 0, $d, $3, $0, ExplodingTrap20, $0, $0
	xy_trigger 0, $d, $4, $0, ExplodingTrap21, $0, $0
	xy_trigger 0, $d, $5, $0, ExplodingTrap22, $0, $0

	; signposts
	db 9
	signpost 11, 19, $0, MapTeamRocketBaseB1FSignpost0Script
	signpost 1, 24, $1, MapTeamRocketBaseB1FSignpost5Script
	signpost 1, 6, $1, MapTeamRocketBaseB1FSignpost5Script
	signpost 15, 8, $1, MapTeamRocketBaseB1FSignpost5Script
	signpost 15, 22, $1, MapTeamRocketBaseB1FSignpost5Script
	signpost 5, 24, $1, MapTeamRocketBaseB1FSignpost5Script
	signpost 11, 20, $0, MapTeamRocketBaseB1FSignpost7Script
	signpost 11, 21, $0, MapTeamRocketBaseB1FSignpost7Script
	signpost 11, 3, $7, MapTeamRocketBaseB1FSignpostItem8

	; people-events
	db 6
	person_event SPRITE_ROCKET, 4, 4, $6, $0, 255, 255, $0, 0, ObjectEvent, $06d9
	person_event SPRITE_ROCKET, 8, 6, $9, $0, 255, 255, $2, 3, TrainerGruntM16, $06da
	person_event SPRITE_SCIENTIST, 16, 22, $8, $0, 255, 255, $92, 3, TrainerScientistJed, $06da
	person_event SPRITE_POKE_BALL, 10, 31, $1, $0, 255, 255, $1, 0, ItemFragment_0x6cac4, $0669
	person_event SPRITE_POKE_BALL, 19, 18, $1, $0, 255, 255, $1, 0, ItemFragment_0x6cac6, $066a
	person_event SPRITE_POKE_BALL, 16, 25, $1, $0, 255, 255, $1, 0, ItemFragment_0x6cac8, $066b
; 0x6cf70