TeamRocketBaseB1F_MapScriptHeader: ; trigger count db 1 ; triggers dw UnknownScript_0x6c65a, $0000 ; callback count db 1 ; callbacks dbw 2, UnknownScript_0x6c65b UnknownScript_0x6c65a: end UnknownScript_0x6c65b: disappear $2 return SecurityCamera1a: checkevent EVENT_SECURITY_CAMERA_1 iftrue NoSecurityCamera scall PlaySecurityCameraSounds checkevent EVENT_TEAM_ROCKET_BASE_POPULATION iftrue NoSecurityCamera showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $13, $2 appear $2 spriteface $0, LEFT applymovement $2, SecurityCameraMovement1 scall TrainerCameraGrunt1 if_equal $1, NoSecurityCamera scall PlaySecurityCameraSounds showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $13, $2 appear $2 applymovement $2, SecurityCameraMovement1 scall TrainerCameraGrunt2 if_equal $1, NoSecurityCamera setevent EVENT_SECURITY_CAMERA_1 end SecurityCamera1b: checkevent EVENT_SECURITY_CAMERA_1 iftrue NoSecurityCamera scall PlaySecurityCameraSounds checkevent EVENT_TEAM_ROCKET_BASE_POPULATION iftrue NoSecurityCamera showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $13, $3 appear $2 spriteface $0, LEFT applymovement $2, SecurityCameraMovement1 scall TrainerCameraGrunt1 if_equal $1, NoSecurityCamera scall PlaySecurityCameraSounds showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $13, $3 appear $2 applymovement $2, SecurityCameraMovement1 scall TrainerCameraGrunt2 if_equal $1, NoSecurityCamera setevent EVENT_SECURITY_CAMERA_1 end SecurityCamera2a: checkevent EVENT_SECURITY_CAMERA_2 iftrue NoSecurityCamera scall PlaySecurityCameraSounds checkevent EVENT_TEAM_ROCKET_BASE_POPULATION iftrue NoSecurityCamera showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $4, $7 appear $2 spriteface $0, LEFT applymovement $2, SecurityCameraMovement2 scall TrainerCameraGrunt1 if_equal $1, NoSecurityCamera scall PlaySecurityCameraSounds showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER spriteface $0, RIGHT moveperson $2, $c, $5 appear $2 applymovement $2, SecurityCameraMovement3 scall TrainerCameraGrunt2 if_equal $1, NoSecurityCamera setevent EVENT_SECURITY_CAMERA_2 end SecurityCamera2b: checkevent EVENT_SECURITY_CAMERA_2 iftrue NoSecurityCamera scall PlaySecurityCameraSounds checkevent EVENT_TEAM_ROCKET_BASE_POPULATION iftrue NoSecurityCamera showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $4, $8 appear $2 spriteface $0, LEFT applymovement $2, SecurityCameraMovement4 scall TrainerCameraGrunt1 if_equal $1, NoSecurityCamera scall PlaySecurityCameraSounds showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER spriteface $0, RIGHT moveperson $2, $c, $5 appear $2 applymovement $2, SecurityCameraMovement5 scall TrainerCameraGrunt2 if_equal $1, NoSecurityCamera setevent EVENT_SECURITY_CAMERA_2 end SecurityCamera3a: checkevent EVENT_SECURITY_CAMERA_3 iftrue NoSecurityCamera scall PlaySecurityCameraSounds checkevent EVENT_TEAM_ROCKET_BASE_POPULATION iftrue NoSecurityCamera showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $13, $6 appear $2 spriteface $0, LEFT applymovement $2, SecurityCameraMovement1 scall TrainerCameraGrunt1 if_equal $1, NoSecurityCamera scall PlaySecurityCameraSounds showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER spriteface $0, RIGHT moveperson $2, $19, $b appear $2 applymovement $2, SecurityCameraMovement6 scall TrainerCameraGrunt2 if_equal $1, NoSecurityCamera setevent EVENT_SECURITY_CAMERA_3 end SecurityCamera3b: checkevent EVENT_SECURITY_CAMERA_3 iftrue NoSecurityCamera scall PlaySecurityCameraSounds checkevent EVENT_TEAM_ROCKET_BASE_POPULATION iftrue NoSecurityCamera showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $13, $7 appear $2 spriteface $0, LEFT applymovement $2, SecurityCameraMovement1 scall TrainerCameraGrunt1 if_equal $1, NoSecurityCamera scall PlaySecurityCameraSounds showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER spriteface $0, RIGHT moveperson $2, $19, $c appear $2 applymovement $2, SecurityCameraMovement7 scall TrainerCameraGrunt2 if_equal $1, NoSecurityCamera setevent EVENT_SECURITY_CAMERA_3 end SecurityCamera4: checkevent EVENT_SECURITY_CAMERA_4 iftrue NoSecurityCamera scall PlaySecurityCameraSounds checkevent EVENT_TEAM_ROCKET_BASE_POPULATION iftrue NoSecurityCamera showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $11, $10 appear $2 spriteface $0, LEFT applymovement $2, SecurityCameraMovement1 scall TrainerCameraGrunt1 if_equal $1, NoSecurityCamera scall PlaySecurityCameraSounds showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER spriteface $0, RIGHT moveperson $2, $19, $b appear $2 applymovement $2, SecurityCameraMovement8 scall TrainerCameraGrunt2 if_equal $1, NoSecurityCamera setevent EVENT_SECURITY_CAMERA_4 end SecurityCamera5: checkevent EVENT_SECURITY_CAMERA_5 iftrue NoSecurityCamera scall PlaySecurityCameraSounds checkevent EVENT_TEAM_ROCKET_BASE_POPULATION iftrue NoSecurityCamera showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER moveperson $2, $3, $10 appear $2 spriteface $0, LEFT applymovement $2, SecurityCameraMovement1 scall TrainerCameraGrunt1 if_equal $1, NoSecurityCamera scall PlaySecurityCameraSounds showemote EMOTE_SHOCK, $0, 15 playmusic MUSIC_ROCKET_ENCOUNTER spriteface $0, RIGHT moveperson $2, $e, $10 appear $2 applymovement $2, SecurityCameraMovement9 scall TrainerCameraGrunt2 if_equal $1, NoSecurityCamera setevent EVENT_SECURITY_CAMERA_5 end NoSecurityCamera: end TrainerCameraGrunt1: loadfont writetext CameraGrunt1SeenText closetext loadmovesprites winlosstext CameraGrunt1BeatenText, $0000 setlasttalked $2 loadtrainer GRUNTM, 20 startbattle disappear $2 returnafterbattle end TrainerCameraGrunt2: loadfont writetext CameraGrunt2SeenText closetext loadmovesprites winlosstext CameraGrunt2BeatenText, $0000 setlasttalked $2 loadtrainer GRUNTM, 21 startbattle disappear $2 returnafterbattle end PlaySecurityCameraSounds: playsound SFX_LICK pause 10 playsound SFX_LICK pause 10 playsound SFX_LICK pause 10 playsound SFX_LICK pause 10 playsound SFX_LICK pause 10 playsound SFX_LICK end ExplodingTrap1: checkevent EVENT_EXPLODING_TRAP_1 iftrue NoExplodingTrap scall KoffingExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_1 end ExplodingTrap2: checkevent EVENT_EXPLODING_TRAP_2 iftrue NoExplodingTrap scall VoltorbExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_2 end ExplodingTrap3: checkevent EVENT_EXPLODING_TRAP_3 iftrue NoExplodingTrap scall GeodudeExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_3 end ExplodingTrap4: checkevent EVENT_EXPLODING_TRAP_4 iftrue NoExplodingTrap scall VoltorbExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_4 end ExplodingTrap5: checkevent EVENT_EXPLODING_TRAP_5 iftrue NoExplodingTrap scall GeodudeExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_5 end ExplodingTrap6: checkevent EVENT_EXPLODING_TRAP_6 iftrue NoExplodingTrap scall KoffingExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_6 end ExplodingTrap7: checkevent EVENT_EXPLODING_TRAP_7 iftrue NoExplodingTrap scall VoltorbExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_7 end ExplodingTrap8: checkevent EVENT_EXPLODING_TRAP_8 iftrue NoExplodingTrap scall KoffingExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_8 end ExplodingTrap9: checkevent EVENT_EXPLODING_TRAP_9 iftrue NoExplodingTrap scall KoffingExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_9 end ExplodingTrap10: checkevent EVENT_EXPLODING_TRAP_10 iftrue NoExplodingTrap scall VoltorbExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_10 end ExplodingTrap11: checkevent EVENT_EXPLODING_TRAP_11 iftrue NoExplodingTrap scall GeodudeExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_11 end ExplodingTrap12: checkevent EVENT_EXPLODING_TRAP_12 iftrue NoExplodingTrap scall GeodudeExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_12 end ExplodingTrap13: checkevent EVENT_EXPLODING_TRAP_13 iftrue NoExplodingTrap scall GeodudeExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_13 end ExplodingTrap14: checkevent EVENT_EXPLODING_TRAP_14 iftrue NoExplodingTrap scall KoffingExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_14 end ExplodingTrap15: checkevent EVENT_EXPLODING_TRAP_15 iftrue NoExplodingTrap scall VoltorbExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_15 end ExplodingTrap16: checkevent EVENT_EXPLODING_TRAP_16 iftrue NoExplodingTrap scall KoffingExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_16 end ExplodingTrap17: checkevent EVENT_EXPLODING_TRAP_17 iftrue NoExplodingTrap scall VoltorbExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_17 end ExplodingTrap18: checkevent EVENT_EXPLODING_TRAP_18 iftrue NoExplodingTrap scall GeodudeExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_18 end ExplodingTrap19: checkevent EVENT_EXPLODING_TRAP_19 iftrue NoExplodingTrap scall GeodudeExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_19 end ExplodingTrap20: checkevent EVENT_EXPLODING_TRAP_20 iftrue NoExplodingTrap scall VoltorbExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_20 end ExplodingTrap21: checkevent EVENT_EXPLODING_TRAP_21 iftrue NoExplodingTrap scall KoffingExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_21 end ExplodingTrap22: checkevent EVENT_EXPLODING_TRAP_22 iftrue NoExplodingTrap scall VoltorbExplodingTrap returnafterbattle setevent EVENT_EXPLODING_TRAP_22 end VoltorbExplodingTrap: special Function8c084 cry VOLTORB special Function8c079 setlasttalked $ff writecode VAR_BATTLETYPE, BATTLETYPE_TRAP loadpokedata VOLTORB, 23 startbattle end GeodudeExplodingTrap: special Function8c084 cry GEODUDE special Function8c079 setlasttalked $ff writecode VAR_BATTLETYPE, BATTLETYPE_TRAP loadpokedata GEODUDE, 21 startbattle end KoffingExplodingTrap: special Function8c084 cry KOFFING special Function8c079 setlasttalked $ff writecode VAR_BATTLETYPE, BATTLETYPE_TRAP loadpokedata KOFFING, 21 startbattle end NoExplodingTrap: end TrainerScientistJed: trainer EVENT_BEAT_SCIENTIST_JED, SCIENTIST, JED, ScientistJedSeenText, ScientistJedBeatenText, $0000, ScientistJedScript ScientistJedScript: talkaftercancel loadfont writetext UnknownText_0x6cc16 closetext loadmovesprites end TrainerGruntM16: trainer EVENT_BEAT_ROCKET_GRUNTM_16, GRUNTM, 16, GruntM16SeenText, GruntM16BeatenText, $0000, GruntM16Script GruntM16Script: talkaftercancel loadfont writetext UnknownText_0x6cd1b closetext loadmovesprites end MapTeamRocketBaseB1FSignpost5Script: jumptext SecurityCameraText MapTeamRocketBaseB1FSignpost7Script: jumpstd teamrocketoath MapTeamRocketBaseB1FSignpost0Script: loadfont checkevent EVENT_TURNED_OFF_SECURITY_CAMERAS iftrue UnknownScript_0x6cabe writetext UnknownText_0x6cdad playsound SFX_TALLY 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 UnknownScript_0x6cabe: writetext UnknownText_0x6cdd0 closetext loadmovesprites end ItemFragment_0x6cac4: db HYPER_POTION, 1 ItemFragment_0x6cac6: db NUGGET, 1 ItemFragment_0x6cac8: db GUARD_SPEC, 1 MapTeamRocketBaseB1FSignpostItem8: dwb EVENT_TEAM_ROCKET_BASE_B1F_HIDDEN_REVIVE, REVIVE SecurityCameraMovement1: big_step_right big_step_right big_step_right big_step_right step_end SecurityCameraMovement2: big_step_up big_step_right big_step_up big_step_up big_step_up big_step_up turn_head_right step_end SecurityCameraMovement3: 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 SecurityCameraMovement4: ; 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 SecurityCameraMovement5: big_step_left big_step_left big_step_left big_step_up big_step_up big_step_left big_step_left step_end SecurityCameraMovement6: big_step_up big_step_up big_step_right big_step_up big_step_up big_step_up big_step_left step_end SecurityCameraMovement7: big_step_up big_step_up big_step_up big_step_right big_step_up big_step_up big_step_left step_end SecurityCameraMovement8: 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 SecurityCameraMovement9: big_step_left big_step_left big_step_left big_step_left big_step_left step_end CameraGrunt1SeenText: text "Hey!" line "Intruder alert!" done CameraGrunt1BeatenText: text "Dang… I failed…" done CameraGrunt2SeenText: text "It's my turn!" line "There's no escape!" done CameraGrunt2BeatenText: 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 ScientistJedSeenText: text "This was once a" line "ninja hideout." para "There are traps to" line "confound intruders" cont "like you." done ScientistJedBeatenText: text "I get it…" done UnknownText_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 GruntM16SeenText: text "Heheh. Feeling" line "lucky, punk?" para "Go ahead, take" line "another step." para "We've got traps" line "set in the floor!" done GruntM16BeatenText: text "Kaboom!" done UnknownText_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 SecurityCameraText: text "It's a PERSIAN" line "statue…" para "Its eyes are oddly" line "shiny." done UnknownText_0x6cdad: text "A secret switch!" line "Better press it." done UnknownText_0x6cdd0: text "The switch is" line "turned off." done TeamRocketBaseB1F_MapEventHeader: ; 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, SIGNPOST_READ, MapTeamRocketBaseB1FSignpost0Script signpost 1, 24, SIGNPOST_UP, MapTeamRocketBaseB1FSignpost5Script signpost 1, 6, SIGNPOST_UP, MapTeamRocketBaseB1FSignpost5Script signpost 15, 8, SIGNPOST_UP, MapTeamRocketBaseB1FSignpost5Script signpost 15, 22, SIGNPOST_UP, MapTeamRocketBaseB1FSignpost5Script signpost 5, 24, SIGNPOST_UP, MapTeamRocketBaseB1FSignpost5Script signpost 11, 20, SIGNPOST_READ, MapTeamRocketBaseB1FSignpost7Script signpost 11, 21, SIGNPOST_READ, MapTeamRocketBaseB1FSignpost7Script signpost 11, 3, SIGNPOST_ITEM, MapTeamRocketBaseB1FSignpostItem8 ; people-events db 6 person_event SPRITE_ROCKET, 4, 4, UP << 2 | $2, $0, -1, -1, $0, 0, ObjectEvent, EVENT_TEAM_ROCKET_BASE_SECURITY_GRUNTS person_event SPRITE_ROCKET, 8, 6, LEFT << 2 | $1, $0, -1, -1, $2, 3, TrainerGruntM16, EVENT_TEAM_ROCKET_BASE_POPULATION person_event SPRITE_SCIENTIST, 16, 22, LEFT << 2 | $0, $0, -1, -1, (PAL_OW_BLUE << 4) | $82, 3, TrainerScientistJed, EVENT_TEAM_ROCKET_BASE_POPULATION person_event SPRITE_POKE_BALL, 10, 31, DOWN << 2 | $1, $0, -1, -1, $1, 0, ItemFragment_0x6cac4, EVENT_TEAM_ROCKET_BASE_B1F_HYPER_POTION person_event SPRITE_POKE_BALL, 19, 18, DOWN << 2 | $1, $0, -1, -1, $1, 0, ItemFragment_0x6cac6, EVENT_TEAM_ROCKET_BASE_B1F_NUGGET person_event SPRITE_POKE_BALL, 16, 25, DOWN << 2 | $1, $0, -1, -1, $1, 0, ItemFragment_0x6cac8, EVENT_TEAM_ROCKET_BASE_B1F_GUARD_SPEC