pokecrystal/maps/RadioTower3F.asm

352 lines
7.3 KiB
NASM
Raw Normal View History

object_const_def
2015-11-27 05:22:14 +00:00
const RADIOTOWER3F_SUPER_NERD
2020-07-17 17:01:48 +00:00
const RADIOTOWER3F_GYM_GUIDE
2015-11-27 05:22:14 +00:00
const RADIOTOWER3F_COOLTRAINER_F
const RADIOTOWER3F_ROCKET1
const RADIOTOWER3F_ROCKET2
const RADIOTOWER3F_ROCKET3
const RADIOTOWER3F_SCIENTIST
RadioTower3F_MapScripts:
def_scene_scripts
def_callbacks
callback MAPCALLBACK_TILES, RadioTower3FCardKeyShutterCallback
RadioTower3FCardKeyShutterCallback:
2013-09-24 07:48:58 +00:00
checkevent EVENT_USED_THE_CARD_KEY_IN_THE_RADIO_TOWER
2016-04-07 10:13:59 +00:00
iftrue .Change
endcallback
.Change:
2018-01-17 18:23:43 +00:00
changeblock 14, 2, $2a ; open shutter
changeblock 14, 4, $01 ; floor
endcallback
2017-12-18 00:48:04 +00:00
RadioTower3FSuperNerdScript:
jumptextfaceplayer RadioTower3FSuperNerdText
2020-07-17 17:01:48 +00:00
RadioTower3FGymGuideScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_RADIO_TOWER
2018-02-02 17:04:55 +00:00
iftrue .NoRockets
2020-07-17 17:01:48 +00:00
writetext RadioTower3FGymGuideText_Rockets
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-02-02 17:04:55 +00:00
.NoRockets:
2020-07-17 17:01:48 +00:00
writetext RadioTower3FGymGuideText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-02-28 22:47:31 +00:00
RadioTower3FCooltrainerFScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_SUNNY_DAY_FROM_RADIO_TOWER
2018-02-02 17:04:55 +00:00
iftrue .GotSunnyDay
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_RADIO_TOWER
2018-02-02 17:04:55 +00:00
iftrue .NoRockets
2013-09-24 07:48:58 +00:00
checkevent EVENT_USED_THE_CARD_KEY_IN_THE_RADIO_TOWER
2018-02-02 17:04:55 +00:00
iftrue .UsedCardKey
writetext RadioTower3FCooltrainerFPleaseSaveDirectorText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-02-02 17:04:55 +00:00
.UsedCardKey:
writetext RadioTower3FCooltrainerFIsDirectorSafeText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-02-02 17:04:55 +00:00
.NoRockets:
writetext RadioTower3FCooltrainerFYoureMyHeroText
2019-11-03 17:48:54 +00:00
promptbutton
2015-11-05 01:20:14 +00:00
verbosegiveitem TM_SUNNY_DAY
2018-02-02 17:04:55 +00:00
iffalse .NoRoom
writetext RadioTower3FCooltrainerFItsSunnyDayText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_SUNNY_DAY_FROM_RADIO_TOWER
end
2018-02-02 17:04:55 +00:00
.GotSunnyDay:
writetext RadioTower3FCooltrainerFYouWereMarvelousText
2015-11-25 15:16:29 +00:00
waitbutton
2018-02-02 17:04:55 +00:00
.NoRoom:
2015-11-25 15:16:29 +00:00
closetext
end
2015-07-10 08:20:21 +00:00
TrainerGruntM7:
trainer GRUNTM, GRUNTM_7, EVENT_BEAT_ROCKET_GRUNTM_7, GruntM7SeenText, GruntM7BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext GruntM7AfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerGruntM8:
trainer GRUNTM, GRUNTM_8, EVENT_BEAT_ROCKET_GRUNTM_8, GruntM8SeenText, GruntM8BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext GruntM8AfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerGruntM9:
trainer GRUNTM, GRUNTM_9, EVENT_BEAT_ROCKET_GRUNTM_9, GruntM9SeenText, GruntM9BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext GruntM9AfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerScientistMarc:
trainer SCIENTIST, MARC, EVENT_BEAT_SCIENTIST_MARC, ScientistMarcSeenText, ScientistMarcBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext ScientistMarcAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
CardKeySlotScript::
2015-12-09 23:25:44 +00:00
opentext
writetext RadioTower3FCardKeySlotText
2015-11-25 15:16:29 +00:00
waitbutton
2013-09-24 07:48:58 +00:00
checkevent EVENT_USED_THE_CARD_KEY_IN_THE_RADIO_TOWER
2018-02-02 17:04:55 +00:00
iftrue .UsedCardKey
checkitem CARD_KEY
2018-02-28 22:47:31 +00:00
iftrue .HaveCardKey
2018-02-02 17:04:55 +00:00
.UsedCardKey:
2015-11-25 15:16:29 +00:00
closetext
end
2018-02-28 22:47:31 +00:00
.HaveCardKey:
writetext InsertedTheCardKeyText
2015-11-25 15:16:29 +00:00
waitbutton
2013-09-24 07:48:58 +00:00
setevent EVENT_USED_THE_CARD_KEY_IN_THE_RADIO_TOWER
playsound SFX_ENTER_DOOR
2018-01-17 18:23:43 +00:00
changeblock 14, 2, $2a ; open shutter
changeblock 14, 4, $01 ; floor
refreshmap
2015-11-25 15:16:29 +00:00
closetext
waitsfx
end
RadioTower3FPersonnelSign:
jumptext RadioTower3FPersonnelSignText
RadioTower3FPokemonMusicSign:
jumptext RadioTower3FPokemonMusicSignText
2017-12-18 00:48:04 +00:00
RadioTower3FSuperNerdText:
text "We have recordings"
line "of the cries of"
para "all #MON that"
line "have been found."
para "We must have about"
line "200 kinds."
done
2020-07-17 17:01:48 +00:00
RadioTower3FGymGuideText_Rockets:
text "To trainers, #-"
line "MON are their"
cont "beloved partners."
para "It's terrible how"
line "TEAM ROCKET is"
para "trying to control"
line "#MON."
done
2020-07-17 17:01:48 +00:00
RadioTower3FGymGuideText:
text "We run 24 hours a"
line "day to broadcast"
para "entertaining pro-"
line "grams."
para "I'll do my best to"
line "run around the"
cont "clock too!"
done
RadioTower3FCooltrainerFPleaseSaveDirectorText:
text "The TEAM ROCKET"
line "boss has locked"
cont "himself in."
para "But the DIRECTOR"
line "can open it."
para "He's up on the"
line "fifth floor."
para "Please save him!"
done
RadioTower3FCooltrainerFIsDirectorSafeText:
text "Is the DIRECTOR"
line "safe?"
done
RadioTower3FCooltrainerFYoureMyHeroText:
text "Thank you!"
line "You're my hero!"
para "This is a token of"
line "my appreciation."
done
RadioTower3FCooltrainerFItsSunnyDayText:
text "It's SUNNY DAY."
line "It powers up fire-"
cont "type moves for a"
cont "while."
done
RadioTower3FCooltrainerFYouWereMarvelousText:
text "You were simply"
line "marvelous!"
done
2015-07-10 08:20:21 +00:00
GruntM7SeenText:
text "I've been given"
line "strict orders."
para "I'm to crush any-"
line "one who challenges"
cont "TEAM ROCKET!"
done
2015-07-10 08:20:21 +00:00
GruntM7BeatenText:
text "What?!"
done
2017-12-10 20:36:58 +00:00
GruntM7AfterBattleText:
text "I failed in my"
line "duties…"
para "I'll be docked pay"
line "for this…"
done
2015-07-10 08:20:21 +00:00
GruntM8SeenText:
text "It feels great"
line "ordering #MON"
cont "to commit crimes."
done
2015-07-10 08:20:21 +00:00
GruntM8BeatenText:
text "You're kidding!"
done
2017-12-10 20:36:58 +00:00
GruntM8AfterBattleText:
text "I feel lousy over"
line "losing!"
para "Darn it! I hate"
line "useless #MON!"
done
2015-07-10 08:20:21 +00:00
GruntM9SeenText:
text "Why did the shut-"
line "ter open? Did you"
para "have something to"
line "do with this?"
done
2015-07-10 08:20:21 +00:00
GruntM9BeatenText:
text "I'm done for!"
done
2017-12-10 20:36:58 +00:00
GruntM9AfterBattleText:
text "What?! You made it"
line "past our men in"
cont "the UNDERGROUND?"
para "How could you?"
done
2015-07-10 08:20:21 +00:00
ScientistMarcSeenText:
text "An unknown child"
line "wandering here?"
para "Who are you?"
done
2015-07-10 08:20:21 +00:00
ScientistMarcBeatenText:
text "Tch! I took you"
line "too lightly!"
done
2017-12-10 20:36:58 +00:00
ScientistMarcAfterBattleText:
text "Bwahahaha…"
para "I can transmit as"
line "strong a signal as"
cont "I need from here."
done
RadioTower3FCardKeySlotText:
text "It's the CARD KEY"
line "slot."
done
2018-02-28 22:47:31 +00:00
InsertedTheCardKeyText:
text "<PLAYER> inserted"
line "the CARD KEY."
done
RadioTower3FPersonnelSignText:
text "3F PERSONNEL"
done
RadioTower3FPokemonMusicSignText:
text "#MON MUSIC with"
line "Host DJ BEN"
done
RadioTower3F_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-02 03:22:07 +00:00
warp_event 0, 0, RADIO_TOWER_2F, 1
warp_event 7, 0, RADIO_TOWER_4F, 2
warp_event 17, 0, RADIO_TOWER_4F, 4
def_coord_events
def_bg_events
bg_event 3, 0, BGEVENT_READ, RadioTower3FPersonnelSign
bg_event 9, 0, BGEVENT_READ, RadioTower3FPokemonMusicSign
bg_event 14, 2, BGEVENT_UP, CardKeySlotScript
def_object_events
2018-02-02 03:22:07 +00:00
object_event 7, 4, SPRITE_SUPER_NERD, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, RadioTower3FSuperNerdScript, EVENT_RADIO_TOWER_CIVILIANS_AFTER
2020-07-17 17:01:48 +00:00
object_event 3, 4, SPRITE_GYM_GUIDE, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, RadioTower3FGymGuideScript, -1
2018-02-28 22:47:31 +00:00
object_event 11, 3, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, RadioTower3FCooltrainerFScript, -1
2018-02-02 03:22:07 +00:00
object_event 5, 1, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_TRAINER, 2, TrainerGruntM7, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 6, 2, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_TRAINER, 3, TrainerGruntM8, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 16, 6, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_TRAINER, 3, TrainerGruntM9, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 9, 6, SPRITE_SCIENTIST, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 5, TrainerScientistMarc, EVENT_RADIO_TOWER_ROCKET_TAKEOVER