pokecrystal/maps/GoldenrodUndergroundWarehou...

231 lines
5.5 KiB
NASM

object_const_def ; object_event constants
const GOLDENRODUNDERGROUNDWAREHOUSE_ROCKET1
const GOLDENRODUNDERGROUNDWAREHOUSE_ROCKET2
const GOLDENRODUNDERGROUNDWAREHOUSE_ROCKET3
const GOLDENRODUNDERGROUNDWAREHOUSE_GENTLEMAN
const GOLDENRODUNDERGROUNDWAREHOUSE_POKE_BALL1
const GOLDENRODUNDERGROUNDWAREHOUSE_POKE_BALL2
const GOLDENRODUNDERGROUNDWAREHOUSE_POKE_BALL3
GoldenrodUndergroundWarehouse_MapScripts:
db 0 ; scene scripts
db 1 ; callbacks
callback MAPCALLBACK_NEWMAP, .ResetSwitches
.ResetSwitches:
clearevent EVENT_SWITCH_1
clearevent EVENT_SWITCH_2
clearevent EVENT_SWITCH_3
clearevent EVENT_EMERGENCY_SWITCH
clearevent EVENT_SWITCH_4
clearevent EVENT_SWITCH_5
clearevent EVENT_SWITCH_6
clearevent EVENT_SWITCH_7
clearevent EVENT_SWITCH_8
clearevent EVENT_SWITCH_9
clearevent EVENT_SWITCH_10
clearevent EVENT_SWITCH_11
clearevent EVENT_SWITCH_12
clearevent EVENT_SWITCH_13
clearevent EVENT_SWITCH_14
setval 0
writemem wUndergroundSwitchPositions
return
TrainerGruntM24:
trainer GRUNTM, GRUNTM_24, EVENT_BEAT_ROCKET_GRUNTM_24, GruntM24SeenText, GruntM24BeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext GruntM24AfterBattleText
waitbutton
closetext
end
TrainerGruntM14:
trainer GRUNTM, GRUNTM_14, EVENT_BEAT_ROCKET_GRUNTM_14, GruntM14SeenText, GruntM14BeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext GruntM14AfterBattleText
waitbutton
closetext
end
TrainerGruntM15:
trainer GRUNTM, GRUNTM_15, EVENT_BEAT_ROCKET_GRUNTM_15, GruntM15SeenText, GruntM15BeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext GruntM15AfterBattleText
waitbutton
closetext
end
GoldenrodUndergroundWarehouseDirectorScript:
faceplayer
opentext
checkevent EVENT_RECEIVED_CARD_KEY
iftrue .GotCardKey
writetext DirectorIntroText
buttonsound
verbosegiveitem CARD_KEY
setevent EVENT_RECEIVED_CARD_KEY
setevent EVENT_GOLDENROD_DEPT_STORE_B1F_LAYOUT_1
clearevent EVENT_GOLDENROD_DEPT_STORE_B1F_LAYOUT_2
clearevent EVENT_GOLDENROD_DEPT_STORE_B1F_LAYOUT_3
writetext DirectorCardKeyText
buttonsound
.GotCardKey:
writetext DirectorAfterText
waitbutton
closetext
end
GoldenrodUndergroundWarehouseMaxEther:
itemball MAX_ETHER
GoldenrodUndergroundWarehouseTMSleepTalk:
itemball TM_SLEEP_TALK
GoldenrodUndergroundWarehouseUltraBall:
itemball ULTRA_BALL
GruntM24SeenText:
text "How did you get"
line "this far?"
para "I guess it can't"
line "be helped. I'll"
cont "dispose of you."
done
GruntM24BeatenText:
text "I got disposed of…"
done
GruntM24AfterBattleText:
text "TEAM ROCKET will"
line "keep going, wait-"
cont "ing for the return"
cont "of GIOVANNI."
para "We'll do whatever"
line "it takes."
done
GruntM14SeenText:
text "You're not going"
line "any farther!"
para "I don't show mercy"
line "to my enemies, not"
cont "even brats!"
done
GruntM14BeatenText:
text "Blast it!"
done
GruntM14AfterBattleText:
text "I lost…"
para "Please forgive me,"
line "GIOVANNI!"
done
GruntM15SeenText:
text "Hyuck-hyuck-hyuck!"
line "I remember you!"
para "You got me good"
line "at our hideout!"
done
GruntM15BeatenText:
text "Hyuck-hyuck-hyuck!"
line "So, that's how?"
done
GruntM15AfterBattleText:
text "Hyuck-hyuck-hyuck!"
line "That was a blast!"
cont "I'll remember you!"
done
DirectorIntroText:
text "DIRECTOR: Who?"
line "What? You came to"
cont "rescue me?"
para "Thank you!"
para "The RADIO TOWER!"
para "What's happening"
line "there?"
para "Taken over by TEAM"
line "ROCKET?"
para "Here. Take this"
line "CARD KEY."
done
DirectorCardKeyText:
text "DIRECTOR: Use that"
line "to open the shut-"
cont "ters on 3F."
done
DirectorAfterText:
text "I'm begging you to"
line "help."
para "There's no telling"
line "what they'll do if"
para "they control the"
line "transmitter."
para "They may even be"
line "able to control"
para "#MON using a"
line "special signal!"
para "You're the only"
line "one I can call on."
para "Please save the"
line "RADIO TOWER…"
para "And all the #-"
line "MON nationwide!"
done
GoldenrodUndergroundWarehouse_MapEvents:
db 0, 0 ; filler
db 3 ; warp events
warp_event 2, 12, GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES, 2
warp_event 3, 12, GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES, 3
warp_event 17, 2, GOLDENROD_DEPT_STORE_B1F, 1
db 0 ; coord events
db 0 ; bg events
db 7 ; object events
object_event 9, 8, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_TRAINER, 3, TrainerGruntM24, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 8, 15, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_TRAINER, 3, TrainerGruntM14, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 14, 3, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_TRAINER, 4, TrainerGruntM15, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 12, 8, SPRITE_GENTLEMAN, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodUndergroundWarehouseDirectorScript, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 18, 15, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, GoldenrodUndergroundWarehouseMaxEther, EVENT_GOLDENROD_UNDERGROUND_WAREHOUSE_MAX_ETHER
object_event 13, 9, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, GoldenrodUndergroundWarehouseTMSleepTalk, EVENT_GOLDENROD_UNDERGROUND_WAREHOUSE_TM_SLEEP_TALK
object_event 2, 1, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, GoldenrodUndergroundWarehouseUltraBall, EVENT_GOLDENROD_UNDERGROUND_WAREHOUSE_ULTRA_BALL