pokecrystal-board/maps/CeruleanGym.asm

384 lines
8.1 KiB
NASM
Raw Normal View History

object_const_def
2015-11-26 21:22:14 -08:00
const CERULEANGYM_ROCKET
const CERULEANGYM_MISTY
const CERULEANGYM_SWIMMER_GIRL1
const CERULEANGYM_SWIMMER_GIRL2
const CERULEANGYM_SWIMMER_GUY
2020-07-17 10:01:48 -07:00
const CERULEANGYM_GYM_GUIDE
2015-11-26 21:22:14 -08:00
CeruleanGym_MapScripts:
def_scene_scripts
scene_script .DummyScene0 ; SCENE_CERULEANGYM_NOTHING
scene_script .GruntRunsOut ; SCENE_CERULEANGYM_GRUNT_RUNS_OUT
def_callbacks
.DummyScene0:
end
.GruntRunsOut:
2021-06-08 17:35:04 -07:00
sdefer .GruntRunsOutScript
end
.GruntRunsOutScript:
2018-03-01 10:18:51 -08:00
applymovement CERULEANGYM_ROCKET, CeruleanGymGruntRunsDownMovement
playsound SFX_TACKLE
2018-03-01 10:18:51 -08:00
applymovement CERULEANGYM_ROCKET, CeruleanGymGruntRunsIntoYouMovement
playmusic MUSIC_ROCKET_ENCOUNTER
2015-12-09 15:25:44 -08:00
opentext
2018-08-19 10:56:41 -07:00
writetext CeruleanGymGruntIntroText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
showemote EMOTE_SHOCK, CERULEANGYM_ROCKET, 15
2018-03-01 10:18:51 -08:00
applymovement CERULEANGYM_ROCKET, CeruleanGymGruntBacksAwayMovement
2015-12-09 15:25:44 -08:00
opentext
2018-08-19 10:56:41 -07:00
writetext CeruleanGymGruntBigMistakeText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2018-03-01 10:18:51 -08:00
applymovement CERULEANGYM_ROCKET, CeruleanGymGruntMovesCloseMovement
2015-12-09 15:25:44 -08:00
opentext
2018-08-19 10:56:41 -07:00
writetext CeruleanGymGruntByeText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2018-03-01 10:18:51 -08:00
applymovement CERULEANGYM_ROCKET, CeruleanGymGruntRunsOutMovement
playsound SFX_EXIT_BUILDING
2015-11-26 21:22:14 -08:00
disappear CERULEANGYM_ROCKET
2013-09-24 00:48:58 -07:00
setevent EVENT_MET_ROCKET_GRUNT_AT_CERULEAN_GYM
clearevent EVENT_ROUTE_24_ROCKET
clearevent EVENT_ROUTE_25_MISTY_BOYFRIEND
setscene SCENE_CERULEANGYM_NOTHING
setmapscene ROUTE_25, SCENE_ROUTE25_MISTYS_DATE
setmapscene POWER_PLANT, SCENE_POWERPLANT_NOTHING
2015-11-25 07:16:29 -08:00
waitsfx
special RestartMapMusic
pause 15
turnobject PLAYER, DOWN
pause 15
end
2018-02-28 13:50:43 -08:00
CeruleanGymMistyScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2015-07-10 00:00:27 -07:00
checkflag ENGINE_CASCADEBADGE
iftrue .FightDone
2018-08-19 10:56:41 -07:00
writetext MistyIntroText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2018-08-19 10:56:41 -07:00
winlosstext MistyWinLossText, 0
loadtrainer MISTY, MISTY1
startbattle
reloadmapafterbattle
2013-09-24 00:48:58 -07:00
setevent EVENT_BEAT_MISTY
setevent EVENT_BEAT_SWIMMERF_DIANA
setevent EVENT_BEAT_SWIMMERF_BRIANA
setevent EVENT_BEAT_SWIMMERM_PARKER
2015-12-09 15:25:44 -08:00
opentext
2018-08-19 10:56:41 -07:00
writetext ReceivedCascadeBadgeText
playsound SFX_GET_BADGE
2015-11-25 07:16:29 -08:00
waitsfx
2015-07-10 00:00:27 -07:00
setflag ENGINE_CASCADEBADGE
.FightDone:
2018-08-19 10:56:41 -07:00
writetext MistyFightDoneText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 00:00:27 -07:00
TrainerSwimmerfDiana:
trainer SWIMMERF, DIANA, EVENT_BEAT_SWIMMERF_DIANA, SwimmerfDianaSeenText, SwimmerfDianaBeatenText, 0, .Script
2017-12-17 17:45:04 -08:00
.Script:
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
2017-12-10 12:36:58 -08:00
writetext SwimmerfDianaAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 00:00:27 -07:00
TrainerSwimmerfBriana:
trainer SWIMMERF, BRIANA, EVENT_BEAT_SWIMMERF_BRIANA, SwimmerfBrianaSeenText, SwimmerfBrianaBeatenText, 0, .Script
2017-12-17 17:45:04 -08:00
.Script:
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
2017-12-10 12:36:58 -08:00
writetext SwimmerfBrianaAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 00:00:27 -07:00
TrainerSwimmermParker:
trainer SWIMMERM, PARKER, EVENT_BEAT_SWIMMERM_PARKER, SwimmermParkerSeenText, SwimmermParkerBeatenText, 0, .Script
2017-12-17 17:45:04 -08:00
.Script:
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
2017-12-10 12:36:58 -08:00
writetext SwimmermParkerAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2020-07-17 10:01:48 -07:00
CeruleanGymGuideScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_BEAT_MISTY
2020-07-17 10:01:48 -07:00
iftrue .CeruleanGymGuideWinScript
writetext CeruleanGymGuideText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2020-07-17 10:01:48 -07:00
.CeruleanGymGuideWinScript:
writetext CeruleanGymGuideWinText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
CeruleanGymHiddenMachinePart:
hiddenitem MACHINE_PART, EVENT_FOUND_MACHINE_PART_IN_CERULEAN_GYM
2015-06-24 20:51:36 -07:00
CeruleanGymStatue1:
checkevent EVENT_TRAINERS_IN_CERULEAN_GYM
iffalse CeruleanGymStatue
2015-12-09 15:25:44 -08:00
opentext
2018-08-19 10:56:41 -07:00
writetext CeruleanGymNote1Text
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-24 20:51:36 -07:00
CeruleanGymStatue2:
checkevent EVENT_TRAINERS_IN_CERULEAN_GYM
iffalse CeruleanGymStatue
2015-12-09 15:25:44 -08:00
opentext
2018-08-19 10:56:41 -07:00
writetext CeruleanGymNote2Text
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-24 20:51:36 -07:00
CeruleanGymStatue:
checkflag ENGINE_CASCADEBADGE
iftrue .Beaten
jumpstd GymStatue1Script
.Beaten:
gettrainername STRING_BUFFER_4, MISTY, MISTY1
jumpstd GymStatue2Script
2018-03-01 10:18:51 -08:00
CeruleanGymGruntRunsDownMovement:
2016-05-14 10:46:14 -07:00
big_step DOWN
big_step DOWN
big_step DOWN
big_step DOWN
step_end
2018-03-01 10:18:51 -08:00
CeruleanGymGruntRunsOutMovement:
2016-05-14 10:46:14 -07:00
big_step RIGHT
big_step DOWN
step_end
2018-03-01 10:18:51 -08:00
CeruleanGymGruntRunsIntoYouMovement:
fix_facing
set_sliding
2016-05-14 10:46:14 -07:00
jump_step UP
remove_sliding
remove_fixed_facing
2016-05-14 09:28:00 -07:00
step_sleep 8
step_sleep 8
2016-05-14 10:46:14 -07:00
step DOWN
step DOWN
step_end
2018-03-01 10:18:51 -08:00
CeruleanGymGruntMovesCloseMovement:
2016-05-14 10:46:14 -07:00
big_step DOWN
step_end
2018-03-01 10:18:51 -08:00
CeruleanGymGruntBacksAwayMovement:
fix_facing
2016-05-14 10:46:14 -07:00
slow_step UP
remove_fixed_facing
step_end
2018-08-19 10:56:41 -07:00
CeruleanGymGruntIntroText:
text "Oops! I so sorry!"
line "You not hurt,"
cont "okay?"
para "I very busy."
line "No time for talk-"
cont "ing with you. Not"
cont "good for me if"
cont "seen by somebody."
done
2018-08-19 10:56:41 -07:00
CeruleanGymGruntBigMistakeText:
text "Oh no! You seen"
line "me already! I make"
cont "big mistake!"
done
2018-08-19 10:56:41 -07:00
CeruleanGymGruntByeText:
text "Hey, you! Forget"
line "you see me, okay?"
para "You see, hear,"
line "know nothing,"
para "okay?"
line "Bye, kid! Nothing!"
para "Bye-bye a go-go!"
done
2018-08-19 10:56:41 -07:00
CeruleanGymNote1Text:
text "Sorry, I'll be out"
line "for a while."
cont "MISTY, GYM LEADER"
done
2018-08-19 10:56:41 -07:00
CeruleanGymNote2Text:
text "Since MISTY's out,"
line "we'll be away too."
cont "GYM TRAINERS"
done
2018-08-19 10:56:41 -07:00
MistyIntroText:
text "MISTY: I was ex-"
line "pecting you, you"
cont "pest!"
para "You may have a"
line "lot of JOHTO GYM"
para "BADGES, but you'd"
line "better not take me"
cont "too lightly."
para "My water-type"
line "#MON are tough!"
done
2018-08-19 10:56:41 -07:00
MistyWinLossText:
text "MISTY: You really"
line "are good…"
para "I'll admit that"
line "you are skilled…"
para "Here you go. It's"
line "CASCADEBADGE."
done
2018-08-19 10:56:41 -07:00
ReceivedCascadeBadgeText:
text "<PLAYER> received"
line "CASCADEBADGE."
done
2018-08-19 10:56:41 -07:00
MistyFightDoneText:
text "MISTY: Are there"
line "many strong train-"
cont "ers in JOHTO? Like"
cont "you, I mean."
para "I'm going to"
line "travel one day, so"
para "I can battle some"
line "skilled trainers."
done
2015-07-10 00:00:27 -07:00
SwimmerfDianaSeenText:
text "Sorry about being"
line "away. Let's get on"
cont "with it!"
done
2015-07-10 00:00:27 -07:00
SwimmerfDianaBeatenText:
text "I give up! You're"
line "the winner!"
done
2017-12-10 12:36:58 -08:00
SwimmerfDianaAfterBattleText:
text "I'll be swimming"
line "quietly."
done
2015-07-10 00:00:27 -07:00
SwimmerfBrianaSeenText:
text "Don't let my ele-"
line "gant swimming un-"
cont "nerve you."
done
2015-07-10 00:00:27 -07:00
SwimmerfBrianaBeatenText:
text "Ooh, you calmly"
line "disposed of me…"
done
2017-12-10 12:36:58 -08:00
SwimmerfBrianaAfterBattleText:
text "Don't be too smug"
line "about beating me."
para "MISTY will destroy"
line "you if you get"
cont "complacent."
done
2015-07-10 00:00:27 -07:00
SwimmermParkerSeenText:
text "Glub…"
para "I'm first! Come"
line "and get me!"
done
2015-07-10 00:00:27 -07:00
SwimmermParkerBeatenText:
text "This can't be…"
done
2017-12-10 12:36:58 -08:00
SwimmermParkerAfterBattleText:
text "MISTY has gotten"
line "much better in the"
cont "past few years."
para "Don't let your"
line "guard down, or"
cont "you'll be crushed!"
done
2020-07-17 10:01:48 -07:00
CeruleanGymGuideText:
text "Yo! CHAMP in"
line "making!"
para "Since MISTY was"
line "away, I went out"
para "for some fun too."
line "He-he-he."
done
2020-07-17 10:01:48 -07:00
CeruleanGymGuideWinText:
text "Hoo, you showed me"
line "how tough you are."
para "As always, that"
line "was one heck of a"
cont "great battle!"
done
CeruleanGym_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-01 19:22:07 -08:00
warp_event 4, 15, CERULEAN_CITY, 5
warp_event 5, 15, CERULEAN_CITY, 5
def_coord_events
def_bg_events
2018-02-01 19:22:07 -08:00
bg_event 3, 8, BGEVENT_ITEM, CeruleanGymHiddenMachinePart
bg_event 2, 13, BGEVENT_READ, CeruleanGymStatue1
bg_event 6, 13, BGEVENT_READ, CeruleanGymStatue2
def_object_events
2018-02-01 19:22:07 -08:00
object_event 4, 10, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_CERULEAN_GYM_ROCKET
2018-02-28 13:50:43 -08:00
object_event 5, 3, SPRITE_MISTY, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, CeruleanGymMistyScript, EVENT_TRAINERS_IN_CERULEAN_GYM
2018-02-01 19:22:07 -08:00
object_event 4, 6, SPRITE_SWIMMER_GIRL, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 3, TrainerSwimmerfDiana, EVENT_TRAINERS_IN_CERULEAN_GYM
object_event 1, 9, SPRITE_SWIMMER_GIRL, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 1, TrainerSwimmerfBriana, EVENT_TRAINERS_IN_CERULEAN_GYM
object_event 8, 9, SPRITE_SWIMMER_GUY, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerSwimmermParker, EVENT_TRAINERS_IN_CERULEAN_GYM
2020-07-17 10:01:48 -07:00
object_event 7, 13, SPRITE_GYM_GUIDE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, CeruleanGymGuideScript, EVENT_TRAINERS_IN_CERULEAN_GYM