pokecrystal-board/maps/UndergroundPathSwitchRoomEntrances.asm

977 lines
20 KiB
NASM
Raw Normal View History

2015-12-09 08:38:40 -08:00
UNDERGROUND_DOOR_CLOSED1 EQU $2a
UNDERGROUND_DOOR_CLOSED2 EQU $3e
UNDERGROUND_DOOR_CLOSED3 EQU $3f
UNDERGROUND_DOOR_OPEN1 EQU $2d
UNDERGROUND_DOOR_OPEN2 EQU $3d
UGDOOR_1 EQU $1006
UGDOOR_2 EQU $0a06
UGDOOR_3 EQU $0206
UGDOOR_4 EQU $020a
UGDOOR_5 EQU $0a0a
UGDOOR_6 EQU $100a
UGDOOR_7 EQU $0c06
UGDOOR_8 EQU $0c08
UGDOOR_9 EQU $0606
UGDOOR_10 EQU $0608
UGDOOR_11 EQU $0c0a
UGDOOR_12 EQU $0c0c
UGDOOR_13 EQU $060a
UGDOOR_14 EQU $060c
UGDOOR_15 EQU $120a
UGDOOR_16 EQU $120c
doorstate: macro
changeblock UGDOOR_\1 / $100, UGDOOR_\1 % $100, UNDERGROUND_DOOR_\2
endm
2015-11-26 21:22:14 -08:00
const_value set 2
const UNDERGROUNDPATHSWITCHROOMENTRANCES_PHARMACIST1
const UNDERGROUNDPATHSWITCHROOMENTRANCES_PHARMACIST2
const UNDERGROUNDPATHSWITCHROOMENTRANCES_ROCKET1
const UNDERGROUNDPATHSWITCHROOMENTRANCES_ROCKET2
const UNDERGROUNDPATHSWITCHROOMENTRANCES_ROCKET3
const UNDERGROUNDPATHSWITCHROOMENTRANCES_ROCKET_GIRL
const UNDERGROUNDPATHSWITCHROOMENTRANCES_TEACHER
const UNDERGROUNDPATHSWITCHROOMENTRANCES_SUPER_NERD
const UNDERGROUNDPATHSWITCHROOMENTRANCES_POKE_BALL1
const UNDERGROUNDPATHSWITCHROOMENTRANCES_POKE_BALL2
const UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER
2015-07-10 01:20:21 -07:00
UndergroundPathSwitchRoomEntrances_MapScriptHeader:
.MapTriggers:
db 2
; triggers
2015-12-09 08:38:40 -08:00
dw .Trigger0, 0
dw .Trigger1, 0
.MapCallbacks:
db 1
; callbacks
2015-12-09 08:38:40 -08:00
dbw 1, .UpdateDoorPositions
2015-12-09 08:38:40 -08:00
.Trigger0:
end
2015-12-09 08:38:40 -08:00
.Trigger1:
end
2015-12-09 08:38:40 -08:00
.UpdateDoorPositions:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_4
2015-12-09 08:38:40 -08:00
iffalse .false4
doorstate 1, OPEN1
.false4:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_5
2015-12-09 08:38:40 -08:00
iffalse .false5
doorstate 2, OPEN1
.false5:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_6
2015-12-09 08:38:40 -08:00
iffalse .false6
doorstate 3, OPEN1
.false6:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_7
2015-12-09 08:38:40 -08:00
iffalse .false7
doorstate 4, OPEN1
.false7:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_8
2015-12-09 08:38:40 -08:00
iffalse .false8
doorstate 5, OPEN1
.false8:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_9
2015-12-09 08:38:40 -08:00
iffalse .false9
doorstate 6, OPEN1
.false9:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_10
2015-12-09 08:38:40 -08:00
iffalse .false10
doorstate 7, CLOSED1
doorstate 8, OPEN1
.false10:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_11
2015-12-09 08:38:40 -08:00
iffalse .false11
doorstate 9, CLOSED1
doorstate 10, OPEN1
.false11:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_12
2015-12-09 08:38:40 -08:00
iffalse .false12
doorstate 11, CLOSED1
doorstate 12, OPEN1
.false12:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_13
2015-12-09 08:38:40 -08:00
iffalse .false13
doorstate 13, CLOSED1
doorstate 14, OPEN1
.false13:
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_14
2015-12-09 08:38:40 -08:00
iffalse .false14
doorstate 15, CLOSED1
doorstate 16, OPEN1
.false14:
return
2015-07-10 01:20:21 -07:00
SuperNerdScript_0x7ca7a:
2015-12-09 08:38:40 -08:00
jumptextfaceplayer UndergroundPathSwitchRoomEntrances_SuperNerdText
2015-07-10 01:20:21 -07:00
TeacherScript_0x7ca7d:
2015-12-09 08:38:40 -08:00
jumptextfaceplayer UndergroundPathSwitchRoomEntrances_TeacherText
2015-12-09 08:38:40 -08:00
UndergroundSilverTrigger1:
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
pause 15
playsound SFX_EXIT_BUILDING
2015-11-26 21:22:14 -08:00
appear UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER
2015-11-25 07:16:29 -08:00
waitsfx
2015-12-09 08:38:40 -08:00
applymovement UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER, UndergroundSilverApproachMovement1
spriteface PLAYER, RIGHT
2015-12-09 08:38:40 -08:00
scall UndergroundSilverBattleScript
applymovement UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER, UndergroundSilverRetreatMovement1
playsound SFX_EXIT_BUILDING
2015-11-26 21:22:14 -08:00
disappear UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER
2015-12-09 08:38:40 -08:00
dotrigger 1
2015-11-25 07:16:29 -08:00
waitsfx
playmapmusic
end
2015-12-09 08:38:40 -08:00
UndergroundSilverTrigger2:
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
pause 15
playsound SFX_EXIT_BUILDING
2015-11-26 21:22:14 -08:00
appear UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER
2015-11-25 07:16:29 -08:00
waitsfx
2015-12-09 08:38:40 -08:00
applymovement UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER, UndergroundSilverApproachMovement2
spriteface PLAYER, RIGHT
2015-12-09 08:38:40 -08:00
scall UndergroundSilverBattleScript
applymovement UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER, UndergroundSilverRetreatMovement2
playsound SFX_EXIT_BUILDING
2015-11-26 21:22:14 -08:00
disappear UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER
2015-12-09 08:38:40 -08:00
dotrigger 1
2015-11-25 07:16:29 -08:00
waitsfx
playmapmusic
end
2015-12-09 08:38:40 -08:00
UndergroundSilverBattleScript:
checkevent EVENT_RIVAL_BURNED_TOWER
2015-12-09 08:38:40 -08:00
iftrue .Continue
setevent EVENT_RIVAL_BURNED_TOWER
2015-12-09 08:38:40 -08:00
domaptrigger BURNED_TOWER_1F, 1
.Continue:
playmusic MUSIC_RIVAL_ENCOUNTER
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext UndergroundSilverBeforeText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
setevent EVENT_RIVAL_UNDERGROUND_PATH
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_TOTODILE_FROM_ELM
2015-12-09 08:38:40 -08:00
iftrue .Totodile
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_CHIKORITA_FROM_ELM
2015-12-09 08:38:40 -08:00
iftrue .Chikorita
winlosstext UndergroundSilverWinText, UndergroundSilverLossText
setlasttalked UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER
loadtrainer RIVAL1, RIVAL1_12
startbattle
reloadmapmusic
returnafterbattle
2015-12-09 08:38:40 -08:00
jump .FinishRivalBattle
2015-12-09 08:38:40 -08:00
.Totodile:
winlosstext UndergroundSilverWinText, UndergroundSilverLossText
setlasttalked UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER
loadtrainer RIVAL1, RIVAL1_10
startbattle
reloadmapmusic
returnafterbattle
2015-12-09 08:38:40 -08:00
jump .FinishRivalBattle
2015-12-09 08:38:40 -08:00
.Chikorita:
winlosstext UndergroundSilverWinText, UndergroundSilverLossText
setlasttalked UNDERGROUNDPATHSWITCHROOMENTRANCES_SILVER
loadtrainer RIVAL1, RIVAL1_11
startbattle
reloadmapmusic
returnafterbattle
2015-12-09 08:38:40 -08:00
jump .FinishRivalBattle
2015-12-09 08:38:40 -08:00
.FinishRivalBattle:
playmusic MUSIC_RIVAL_AFTER
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext UndergroundSilverAfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerGruntM11:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_ROCKET_GRUNTM_11, GRUNTM, 11, GruntM11SeenText, GruntM11BeatenText, 0, GruntM11Script
2015-07-10 01:20:21 -07:00
GruntM11Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext GruntM11AfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerGruntM25:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_ROCKET_GRUNTM_25, GRUNTM, 25, GruntM25SeenText, GruntM25BeatenText, 0, GruntM25Script
2015-07-10 01:20:21 -07:00
GruntM25Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext GruntM25AfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerBurglarDuncan:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_BURGLAR_DUNCAN, BURGLAR, DUNCAN, BurglarDuncanSeenText, BurglarDuncanBeatenText, 0, BurglarDuncanScript
2015-07-10 01:20:21 -07:00
BurglarDuncanScript:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext BurglarDuncanAfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerBurglarEddie:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_BURGLAR_EDDIE, BURGLAR, EDDIE, BurglarEddieSeenText, BurglarEddieBeatenText, 0, BurglarEddieScript
2015-07-10 01:20:21 -07:00
BurglarEddieScript:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext BurglarEddieAfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerGruntM13:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_ROCKET_GRUNTM_13, GRUNTM, 13, GruntM13SeenText, GruntM13BeatenText, 0, GruntM13Script
2015-07-10 01:20:21 -07:00
GruntM13Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext GruntM13AfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerGruntF3:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_ROCKET_GRUNTF_3, GRUNTF, 3, GruntF3SeenText, GruntF3BeatenText, 0, GruntF3Script
2015-07-10 01:20:21 -07:00
GruntF3Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext GruntF3AfterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-09 08:38:40 -08:00
Switch1Script:
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext SwitchRoomText_Switch1
2015-11-29 19:29:45 -08:00
buttonsound
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_1
2015-12-09 08:38:40 -08:00
iftrue .On
writetext SwitchRoomText_OffTurnOn
yesorno
2015-12-09 08:38:40 -08:00
iffalse UndergroundPathSwitchRoomEntrances_DontToggle
copybytetovar UndergroundSwitchPositions
2015-12-09 08:38:40 -08:00
addvar 1
copyvartobyte UndergroundSwitchPositions
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_1
2015-12-09 08:38:40 -08:00
jump UndergroundPathSwitchRoomEntrances_UpdateDoors
2015-12-09 08:38:40 -08:00
.On:
writetext SwitchRoomText_OnTurnOff
yesorno
2015-12-09 08:38:40 -08:00
iffalse UndergroundPathSwitchRoomEntrances_DontToggle
copybytetovar UndergroundSwitchPositions
addvar -1
copyvartobyte UndergroundSwitchPositions
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_1
2015-12-09 08:38:40 -08:00
jump UndergroundPathSwitchRoomEntrances_UpdateDoors
2015-12-09 08:38:40 -08:00
Switch2Script:
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext SwitchRoomText_Switch2
2015-11-29 19:29:45 -08:00
buttonsound
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_2
2015-12-09 08:38:40 -08:00
iftrue .On
writetext SwitchRoomText_OffTurnOn
yesorno
2015-12-09 08:38:40 -08:00
iffalse UndergroundPathSwitchRoomEntrances_DontToggle
copybytetovar UndergroundSwitchPositions
2015-12-09 08:38:40 -08:00
addvar 2
copyvartobyte UndergroundSwitchPositions
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_2
2015-12-09 08:38:40 -08:00
jump UndergroundPathSwitchRoomEntrances_UpdateDoors
2015-12-09 08:38:40 -08:00
.On:
writetext SwitchRoomText_OnTurnOff
yesorno
2015-12-09 08:38:40 -08:00
iffalse UndergroundPathSwitchRoomEntrances_DontToggle
copybytetovar UndergroundSwitchPositions
addvar -2
copyvartobyte UndergroundSwitchPositions
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_2
2015-12-09 08:38:40 -08:00
jump UndergroundPathSwitchRoomEntrances_UpdateDoors
2015-12-09 08:38:40 -08:00
Switch3Script:
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext SwitchRoomText_Switch3
2015-11-29 19:29:45 -08:00
buttonsound
2013-09-24 00:48:58 -07:00
checkevent EVENT_SWITCH_3
2015-12-09 08:38:40 -08:00
iftrue .On
writetext SwitchRoomText_OffTurnOn
yesorno
2015-12-09 08:38:40 -08:00
iffalse UndergroundPathSwitchRoomEntrances_DontToggle
copybytetovar UndergroundSwitchPositions
2015-12-09 08:38:40 -08:00
addvar 3
copyvartobyte UndergroundSwitchPositions
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_3
2015-12-09 08:38:40 -08:00
jump UndergroundPathSwitchRoomEntrances_UpdateDoors
2015-12-09 08:38:40 -08:00
.On:
writetext SwitchRoomText_OnTurnOff
yesorno
2015-12-09 08:38:40 -08:00
iffalse UndergroundPathSwitchRoomEntrances_DontToggle
copybytetovar UndergroundSwitchPositions
addvar -3
copyvartobyte UndergroundSwitchPositions
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_3
2015-12-09 08:38:40 -08:00
jump UndergroundPathSwitchRoomEntrances_UpdateDoors
2015-12-09 08:38:40 -08:00
EmergencySwitchScript:
2015-12-09 15:25:44 -08:00
opentext
2015-12-09 08:38:40 -08:00
writetext SwitchRoomText_Emergency
2015-11-29 19:29:45 -08:00
buttonsound
2013-09-24 00:48:58 -07:00
checkevent EVENT_EMERGENCY_SWITCH
2015-12-09 08:38:40 -08:00
iftrue .On
writetext SwitchRoomText_OffTurnOn
yesorno
2015-12-09 08:38:40 -08:00
iffalse UndergroundPathSwitchRoomEntrances_DontToggle
writebyte 7
copyvartobyte UndergroundSwitchPositions
2013-09-24 00:48:58 -07:00
setevent EVENT_EMERGENCY_SWITCH
setevent EVENT_SWITCH_1
setevent EVENT_SWITCH_2
setevent EVENT_SWITCH_3
2015-12-09 08:38:40 -08:00
jump UndergroundPathSwitchRoomEntrances_UpdateDoors
2015-12-09 08:38:40 -08:00
.On:
writetext SwitchRoomText_OnTurnOff
yesorno
2015-12-09 08:38:40 -08:00
iffalse UndergroundPathSwitchRoomEntrances_DontToggle
writebyte 0
copyvartobyte UndergroundSwitchPositions
2013-09-24 00:48:58 -07:00
clearevent EVENT_EMERGENCY_SWITCH
clearevent EVENT_SWITCH_1
clearevent EVENT_SWITCH_2
clearevent EVENT_SWITCH_3
2015-12-09 08:38:40 -08:00
jump UndergroundPathSwitchRoomEntrances_UpdateDoors
2015-12-09 08:38:40 -08:00
UndergroundPathSwitchRoomEntrances_DontToggle:
2015-11-25 07:16:29 -08:00
closetext
end
2015-12-09 08:38:40 -08:00
UndergroundPathSwitchRoomEntrances_UpdateDoors:
copybytetovar UndergroundSwitchPositions
2015-12-09 08:38:40 -08:00
if_equal 0, .Position0
if_equal 1, .Position1
if_equal 2, .Position2
if_equal 3, .Position3
if_equal 4, .Position4
if_equal 5, .Position5
if_equal 6, .Position6
if_equal 7, .EmergencyPosition
.Position0:
playsound SFX_ENTER_DOOR
2015-12-09 08:38:40 -08:00
scall .Clear4
scall .Clear5
scall .Clear6
scall .Clear7
scall .Clear8
scall .Clear9
scall .Clear10
scall .Clear11
scall .Clear12
scall .Clear13
scall .Clear14
reloadmappart
2015-11-25 07:16:29 -08:00
closetext
end
2015-12-09 08:38:40 -08:00
.Position1:
playsound SFX_ENTER_DOOR
2015-12-09 08:38:40 -08:00
scall .Set4
scall .Set10
scall .Set13
scall .Clear9
scall .Clear11
scall .Clear12
scall .Clear14
reloadmappart
2015-11-25 07:16:29 -08:00
closetext
end
2015-12-09 08:38:40 -08:00
.Position2:
playsound SFX_ENTER_DOOR
2015-12-09 08:38:40 -08:00
scall .Set5
scall .Set11
scall .Set12
scall .Clear8
scall .Clear10
scall .Clear13
scall .Clear14
reloadmappart
2015-11-25 07:16:29 -08:00
closetext
end
2015-12-09 08:38:40 -08:00
.Position3:
playsound SFX_ENTER_DOOR
2015-12-09 08:38:40 -08:00
scall .Set6
scall .Set10
scall .Set13
scall .Clear7
scall .Clear11
scall .Clear12
scall .Clear14
reloadmappart
2015-11-25 07:16:29 -08:00
closetext
end
2015-12-09 08:38:40 -08:00
.Position4:
playsound SFX_ENTER_DOOR
2015-12-09 08:38:40 -08:00
scall .Set7
scall .Set11
scall .Set12
scall .Clear6
scall .Clear10
scall .Clear13
scall .Clear14
reloadmappart
2015-11-25 07:16:29 -08:00
closetext
end
2015-12-09 08:38:40 -08:00
.Position5:
playsound SFX_ENTER_DOOR
2015-12-09 08:38:40 -08:00
scall .Set8
scall .Set10
scall .Set13
scall .Clear5
scall .Clear11
scall .Clear12
scall .Clear14
reloadmappart
2015-11-25 07:16:29 -08:00
closetext
end
2015-12-09 08:38:40 -08:00
.Position6:
playsound SFX_ENTER_DOOR
2015-12-09 08:38:40 -08:00
scall .Set9
scall .Set11
scall .Set12
scall .Set14
scall .Clear4
scall .Clear10
scall .Clear13
reloadmappart
2015-11-25 07:16:29 -08:00
closetext
end
2015-12-09 08:38:40 -08:00
.EmergencyPosition:
playsound SFX_ENTER_DOOR
2015-12-09 08:38:40 -08:00
scall .Clear4
scall .Clear5
scall .Set6
scall .Clear7
scall .Set8
scall .Set9
scall .Clear10
scall .Set11
scall .Set12
scall .Clear13
scall .Set14
reloadmappart
2015-11-25 07:16:29 -08:00
closetext
2015-12-09 08:38:40 -08:00
writebyte 6
copyvartobyte UndergroundSwitchPositions
end
2015-12-09 08:38:40 -08:00
.Set4:
doorstate 1, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_4
end
2015-12-09 08:38:40 -08:00
.Set5:
doorstate 2, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_5
end
2015-12-09 08:38:40 -08:00
.Set6:
doorstate 3, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_6
end
2015-12-09 08:38:40 -08:00
.Set7:
doorstate 4, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_7
end
2015-12-09 08:38:40 -08:00
.Set8:
doorstate 5, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_8
end
2015-12-09 08:38:40 -08:00
.Set9:
doorstate 6, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_9
end
2015-12-09 08:38:40 -08:00
.Set10:
doorstate 7, CLOSED1
doorstate 8, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_10
end
2015-12-09 08:38:40 -08:00
.Set11:
doorstate 9, CLOSED1
doorstate 10, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_11
end
2015-12-09 08:38:40 -08:00
.Set12:
doorstate 11, CLOSED1
doorstate 12, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_12
end
2015-12-09 08:38:40 -08:00
.Set13:
doorstate 13, CLOSED1
doorstate 14, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_13
end
2015-12-09 08:38:40 -08:00
.Set14:
doorstate 15, CLOSED1
doorstate 16, OPEN1
2013-09-24 00:48:58 -07:00
setevent EVENT_SWITCH_14
end
2015-12-09 08:38:40 -08:00
.Clear4:
doorstate 1, CLOSED2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_4
end
2015-12-09 08:38:40 -08:00
.Clear5:
doorstate 2, CLOSED2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_5
end
2015-12-09 08:38:40 -08:00
.Clear6:
doorstate 3, CLOSED2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_6
end
2015-12-09 08:38:40 -08:00
.Clear7:
doorstate 4, CLOSED2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_7
end
2015-12-09 08:38:40 -08:00
.Clear8:
doorstate 5, CLOSED2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_8
end
2015-12-09 08:38:40 -08:00
.Clear9:
doorstate 6, CLOSED2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_9
end
2015-12-09 08:38:40 -08:00
.Clear10:
doorstate 7, CLOSED3
doorstate 8, OPEN2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_10
end
2015-12-09 08:38:40 -08:00
.Clear11:
doorstate 9, CLOSED3
doorstate 10, OPEN2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_11
end
2015-12-09 08:38:40 -08:00
.Clear12:
doorstate 11, CLOSED3
doorstate 12, OPEN2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_12
end
2015-12-09 08:38:40 -08:00
.Clear13:
doorstate 13, CLOSED3
doorstate 14, OPEN2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_13
end
2015-12-09 08:38:40 -08:00
.Clear14:
doorstate 15, CLOSED3
doorstate 16, OPEN2
2013-09-24 00:48:58 -07:00
clearevent EVENT_SWITCH_14
end
2015-07-10 01:20:21 -07:00
ItemFragment_0x7ce7d:
2015-12-09 08:57:08 -08:00
itemfragment SMOKE_BALL
2015-07-10 01:20:21 -07:00
ItemFragment_0x7ce7f:
2015-12-09 08:57:08 -08:00
itemfragment FULL_HEAL
2015-07-10 01:20:21 -07:00
MapUndergroundPathSwitchRoomEntrancesSignpostItem4:
dwb EVENT_UNDERGROUND_PATH_SWITCH_ROOM_ENTRANCES_HIDDEN_MAX_POTION, MAX_POTION
2015-07-10 01:20:21 -07:00
MapUndergroundPathSwitchRoomEntrancesSignpostItem5:
dwb EVENT_UNDERGROUND_PATH_SWITCH_ROOM_ENTRANCES_HIDDEN_REVIVE, REVIVE
2015-12-09 08:38:40 -08:00
UndergroundSilverApproachMovement1:
step_down
step_left
step_left
step_left
step_end
2015-12-09 08:38:40 -08:00
UndergroundSilverApproachMovement2:
step_down
step_down
step_left
step_left
step_left
step_end
2015-12-09 08:38:40 -08:00
UndergroundSilverRetreatMovement1:
step_right
step_right
step_right
step_up
step_end
2015-12-09 08:38:40 -08:00
UndergroundSilverRetreatMovement2:
step_right
step_right
step_right
step_up
step_up
step_end
2015-12-09 08:38:40 -08:00
UndergroundSilverBeforeText:
text "Hold it!"
para "I saw you, so I"
line "tailed you."
para "I don't need you"
line "underfoot while I"
para "take care of TEAM"
line "ROCKET."
para "…Wait a second."
line "You beat me be-"
cont "fore, didn't you?"
para "That was just a"
line "fluke."
para "But I repay my"
line "debts!"
done
2015-12-09 08:38:40 -08:00
UndergroundSilverWinText:
text "…Why…"
line "Why do I lose?"
para "I've assembled the"
line "toughest #MON."
para "I didn't ease up"
line "on the gas."
para "So why do I lose?"
done
2015-12-09 08:38:40 -08:00
UndergroundSilverAfterText:
text "…I don't under-"
line "stand…"
para "Is what that LANCE"
line "guy said true?"
para "That I don't treat"
line "#MON properly?"
para "Love…"
para "Trust…"
para "Are they really"
line "what I lack?"
para "Are they keeping"
line "me from winning?"
para "I… I just don't"
line "understand."
para "But it's not going"
line "to end here."
para "Not now. Not"
line "because of this."
para "I won't give up my"
line "dream of becoming"
para "the world's best"
line "#MON trainer!"
done
2015-12-09 08:38:40 -08:00
UndergroundSilverLossText:
text "Humph. This is my"
line "real power, wimp."
para "I'll make TEAM"
line "ROCKET history."
para "And I'm going to"
line "grind that LANCE"
cont "under my heels."
done
2015-12-09 08:38:40 -08:00
UndergroundPathSwitchRoomEntrances_SuperNerdText:
text "I was challenged"
line "to a battle down-"
cont "stairs."
para "It's rough down"
line "there. You'd"
cont "better be careful."
done
2015-12-09 08:38:40 -08:00
UndergroundPathSwitchRoomEntrances_TeacherText:
text "There are some"
line "shops downstairs…"
para "But there are"
line "also trainers."
para "I'm scared to go"
line "down there."
done
2015-07-10 01:20:21 -07:00
GruntM11SeenText:
text "Open one shutter,"
line "another closes."
para "Bet you can't get"
line "where you want!"
done
2015-07-10 01:20:21 -07:00
GruntM11BeatenText:
text "Drat! I was sunk"
line "by indecision!"
done
2015-12-09 08:38:40 -08:00
GruntM11AfterText:
text "I'm confused too…"
line "The switch on the"
para "end is the one to"
line "press first, but…"
done
2015-07-10 01:20:21 -07:00
GruntM25SeenText:
text "Kwahaha!"
para "Confounded by the"
line "shutters, are we?"
para "I'll let you in on"
line "a secret if you"
cont "can beat me!"
done
2015-07-10 01:20:21 -07:00
GruntM25BeatenText:
text "Uwww…"
line "I blew it."
done
2015-12-09 08:38:40 -08:00
GruntM25AfterText:
text "All right. A hint!"
para "Change the order"
line "of switching."
para "That'll change the"
line "ways the shutters"
cont "open and close."
done
2015-07-10 01:20:21 -07:00
BurglarDuncanSeenText:
text "Fork over your"
line "goodies!"
done
2015-07-10 01:20:21 -07:00
BurglarDuncanBeatenText:
text "Mercy!"
done
2015-12-09 08:38:40 -08:00
BurglarDuncanAfterText:
text "Steal and sell!"
line "That's basic in"
cont "crime, kid!"
done
2015-07-10 01:20:21 -07:00
BurglarEddieSeenText:
text "They ditched this"
line "project before"
cont "they finished."
para "I'm searching for"
line "leftover loot."
done
2015-07-10 01:20:21 -07:00
BurglarEddieBeatenText:
text "Over the top!"
done
2015-12-09 08:38:40 -08:00
BurglarEddieAfterText:
text "UNDERGROUND WARE-"
line "HOUSE?"
para "What do you want"
line "to go there for?"
para "There's nothing"
line "down there."
done
2015-07-10 01:20:21 -07:00
GruntM13SeenText:
text "I don't care if"
line "you're lost."
para "You show up here,"
line "you're nothing but"
cont "a victim!"
done
2015-07-10 01:20:21 -07:00
GruntM13BeatenText:
text "Urk! Yeah, think"
line "you're cool, huh?"
done
2015-12-09 08:38:40 -08:00
GruntM13AfterText:
text "You must have ice"
line "in your veins to"
cont "dis TEAM ROCKET."
done
2015-12-09 08:38:40 -08:00
SwitchRoomText_Switch1:
text "It's labeled"
line "SWITCH 1."
done
2015-07-10 01:20:21 -07:00
GruntF3SeenText:
text "Are you lost? No,"
line "you can't be."
para "You don't have"
line "that scared look."
para "I'll give you"
line "something to be"
cont "scared about!"
done
2015-07-10 01:20:21 -07:00
GruntF3BeatenText:
text "How could you?"
done
2015-12-09 08:38:40 -08:00
GruntF3AfterText:
text "Go wherever you'd"
line "like! Get lost!"
cont "See if I care!"
done
2015-12-09 08:38:40 -08:00
SwitchRoomText_OffTurnOn:
text "It's OFF."
line "Turn it ON?"
done
2015-12-09 08:38:40 -08:00
SwitchRoomText_OnTurnOff:
text "It's ON."
line "Turn it OFF?"
done
2015-12-09 08:38:40 -08:00
SwitchRoomText_Switch2:
text "It's labeled"
line "SWITCH 2."
done
2015-12-09 08:38:40 -08:00
SwitchRoomText_Switch3:
text "It's labeled"
line "SWITCH 3."
done
2015-12-09 08:38:40 -08:00
SwitchRoomText_Emergency:
text "It's labeled"
line "EMERGENCY."
done
2015-07-10 01:20:21 -07:00
UndergroundPathSwitchRoomEntrances_MapEventHeader:
; filler
db 0, 0
.Warps:
db 9
warp_def $3, $17, 6, WAREHOUSE_ENTRANCE
warp_def $a, $16, 1, UNDERGROUND_WAREHOUSE
warp_def $a, $17, 2, UNDERGROUND_WAREHOUSE
warp_def $19, $5, 2, WAREHOUSE_ENTRANCE
warp_def $1d, $4, 14, GOLDENROD_CITY
warp_def $1d, $5, 14, GOLDENROD_CITY
warp_def $19, $15, 1, WAREHOUSE_ENTRANCE
warp_def $1d, $14, 13, GOLDENROD_CITY
warp_def $1d, $15, 13, GOLDENROD_CITY
.XYTriggers:
db 2
2015-12-09 08:38:40 -08:00
xy_trigger 0, $4, $13, $0, UndergroundSilverTrigger1, $0, 0
xy_trigger 0, $5, $13, $0, UndergroundSilverTrigger2, $0, 0
.Signposts:
db 6
2015-12-09 08:38:40 -08:00
signpost 1, 16, SIGNPOST_READ, Switch1Script
signpost 1, 10, SIGNPOST_READ, Switch2Script
signpost 1, 2, SIGNPOST_READ, Switch3Script
signpost 11, 20, SIGNPOST_READ, EmergencySwitchScript
signpost 9, 8, SIGNPOST_ITEM, MapUndergroundPathSwitchRoomEntrancesSignpostItem4
signpost 8, 1, SIGNPOST_ITEM, MapUndergroundPathSwitchRoomEntrancesSignpostItem5
.PersonEvents:
db 11
person_event SPRITE_PHARMACIST, 12, 9, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 2, TrainerBurglarDuncan, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_PHARMACIST, 8, 4, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_TRAINER, 2, TrainerBurglarEddie, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_ROCKET, 2, 17, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 3, TrainerGruntM13, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_ROCKET, 2, 11, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 3, TrainerGruntM11, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_ROCKET, 2, 3, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 3, TrainerGruntM25, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_ROCKET_GIRL, 12, 19, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_TRAINER, 1, TrainerGruntF3, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_TEACHER, 27, 3, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, TeacherScript_0x7ca7d, -1
person_event SPRITE_SUPER_NERD, 27, 19, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, SuperNerdScript_0x7ca7a, -1
person_event SPRITE_POKE_BALL, 12, 1, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x7ce7d, EVENT_UNDERGROUND_PATH_SWITCH_ROOM_ENTRANCES_SMOKE_BALL
person_event SPRITE_POKE_BALL, 9, 14, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x7ce7f, EVENT_UNDERGROUND_PATH_SWITCH_ROOM_ENTRANCES_FULL_HEAL
person_event SPRITE_SILVER, 3, 23, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_RIVAL_UNDERGROUND_PATH