pokecrystal-board/maps/UndergroundWarehouse.asm

241 lines
5.2 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const UNDERGROUNDWAREHOUSE_ROCKET1
const UNDERGROUNDWAREHOUSE_ROCKET2
const UNDERGROUNDWAREHOUSE_ROCKET3
const UNDERGROUNDWAREHOUSE_GENTLEMAN
const UNDERGROUNDWAREHOUSE_POKE_BALL1
const UNDERGROUNDWAREHOUSE_POKE_BALL2
const UNDERGROUNDWAREHOUSE_POKE_BALL3
2015-07-10 01:20:21 -07:00
UndergroundWarehouse_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 1
; callbacks
2015-10-12 09:33:24 -07:00
dbw 5, .ResetSwitches
2015-10-12 09:33:24 -07:00
.ResetSwitches:
2013-09-24 00:48:58 -07:00
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
writebyte $0
copyvartobyte UndergroundSwitchPositions
return
2015-07-10 01:20:21 -07:00
TrainerGruntM24:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_ROCKET_GRUNTM_24, GRUNTM, 24, GruntM24SeenText, GruntM24BeatenText, 0, GruntM24Script
2015-07-10 01:20:21 -07:00
GruntM24Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x7da48
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerGruntM14:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_ROCKET_GRUNTM_14, GRUNTM, 14, GruntM14SeenText, GruntM14BeatenText, 0, GruntM14Script
2015-07-10 01:20:21 -07:00
GruntM14Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x7db01
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerGruntM15:
2015-11-02 11:37:02 -08:00
trainer EVENT_BEAT_ROCKET_GRUNTM_15, GRUNTM, 15, GruntM15SeenText, GruntM15BeatenText, 0, GruntM15Script
2015-07-10 01:20:21 -07:00
GruntM15Script:
2015-11-25 07:16:29 -08:00
end_if_just_battled
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x7db8e
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
GentlemanScript_0x7d9bf:
faceplayer
loadfont
checkevent EVENT_RECEIVED_CARD_KEY
iftrue UnknownScript_0x7d9de
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x7dbc6
keeptextopen
2015-11-04 17:20:14 -08:00
verbosegiveitem CARD_KEY
setevent EVENT_RECEIVED_CARD_KEY
2015-07-10 05:08:03 -07:00
setevent EVENT_WAREHOUSE_LAYOUT_1
clearevent EVENT_WAREHOUSE_LAYOUT_2
clearevent EVENT_WAREHOUSE_LAYOUT_3
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x7dc5b
keeptextopen
2015-07-10 01:20:21 -07:00
UnknownScript_0x7d9de:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x7dc8d
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
ItemFragment_0x7d9e4:
db MAX_ETHER, 1
2015-07-10 01:20:21 -07:00
ItemFragment_0x7d9e6:
db TM_SLEEP_TALK, 1
2015-07-10 01:20:21 -07:00
ItemFragment_0x7d9e8:
db ULTRA_BALL, 1
2015-07-10 01:20:21 -07:00
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
2015-07-10 01:20:21 -07:00
GruntM24BeatenText:
text "I got disposed of…"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x7da48:
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
2015-07-10 01:20:21 -07:00
GruntM14SeenText:
text "You're not going"
line "any farther!"
para "I don't show mercy"
line "to my enemies, not"
cont "even brats!"
done
2015-07-10 01:20:21 -07:00
GruntM14BeatenText:
text "Blast it!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x7db01:
text "I lost…"
para "Please forgive me,"
line "GIOVANNI!"
done
2015-07-10 01:20:21 -07:00
GruntM15SeenText:
text "Hyuck-hyuck-hyuck!"
line "I remember you!"
para "You got me good"
line "at our hideout!"
done
2015-07-10 01:20:21 -07:00
GruntM15BeatenText:
text "Hyuck-hyuck-hyuck!"
line "So, that's how?"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x7db8e:
text "Hyuck-hyuck-hyuck!"
line "That was a blast!"
cont "I'll remember you!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x7dbc6:
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
2015-07-10 01:20:21 -07:00
UnknownText_0x7dc5b:
text "DIRECTOR: Use that"
line "to open the shut-"
cont "ters on 3F."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x7dc8d:
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
2015-07-10 01:20:21 -07:00
UndergroundWarehouse_MapEventHeader:
; filler
db 0, 0
.Warps:
db 3
warp_def $c, $2, 2, UNDERGROUND_PATH_SWITCH_ROOM_ENTRANCES
warp_def $c, $3, 3, UNDERGROUND_PATH_SWITCH_ROOM_ENTRANCES
warp_def $2, $11, 1, GOLDENROD_DEPT_STORE_B1F
.XYTriggers:
db 0
.Signposts:
db 0
.PersonEvents:
db 7
person_event SPRITE_ROCKET, 8, 9, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 3, TrainerGruntM24, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_ROCKET, 15, 8, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 3, TrainerGruntM14, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_ROCKET, 3, 14, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 4, TrainerGruntM15, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_GENTLEMAN, 8, 12, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, GentlemanScript_0x7d9bf, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
person_event SPRITE_POKE_BALL, 15, 18, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x7d9e4, EVENT_UNDERGROUND_WAREHOUSE_MAX_ETHER
person_event SPRITE_POKE_BALL, 9, 13, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x7d9e6, EVENT_UNDERGROUND_WAREHOUSE_TM_SLEEP_TALK
person_event SPRITE_POKE_BALL, 1, 2, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMFRAGMENT, 0, ItemFragment_0x7d9e8, EVENT_UNDERGROUND_WAREHOUSE_ULTRA_BALL