pokecrystal-board/maps/EcruteakGym.asm

439 lines
9.2 KiB
NASM
Raw Normal View History

object_const_def
2015-11-26 21:22:14 -08:00
const ECRUTEAKGYM_MORTY
const ECRUTEAKGYM_SAGE1
const ECRUTEAKGYM_SAGE2
const ECRUTEAKGYM_GRANNY1
const ECRUTEAKGYM_GRANNY2
2020-07-17 10:01:48 -07:00
const ECRUTEAKGYM_GYM_GUIDE
2015-11-26 21:22:14 -08:00
const ECRUTEAKGYM_GRAMPS
EcruteakGym_MapScripts:
def_scene_scripts
scene_script EcruteakGymForcedToLeaveScene, SCENE_ECRUTEAKGYM_FORCED_TO_LEAVE
scene_script EcruteakGymNoopScene, SCENE_ECRUTEAKGYM_NOOP
def_callbacks
EcruteakGymForcedToLeaveScene:
2021-06-08 17:35:04 -07:00
sdefer EcruteakGymClosed
end
EcruteakGymNoopScene:
end
2018-02-28 13:50:43 -08:00
EcruteakGymMortyScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_BEAT_MORTY
2015-07-10 00:00:27 -07:00
iftrue .FightDone
2018-08-19 10:56:41 -07:00
writetext MortyIntroText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2018-08-19 10:56:41 -07:00
winlosstext MortyWinLossText, 0
loadtrainer MORTY, MORTY1
startbattle
reloadmapafterbattle
2013-09-24 00:48:58 -07:00
setevent EVENT_BEAT_MORTY
2015-12-09 15:25:44 -08:00
opentext
2017-10-25 21:03:06 -07:00
writetext Text_ReceivedFogBadge
playsound SFX_GET_BADGE
2015-11-25 07:16:29 -08:00
waitsfx
2015-07-10 00:00:27 -07:00
setflag ENGINE_FOGBADGE
readvar VAR_BADGES
scall EcruteakGymActivateRockets
setmapscene ECRUTEAK_TIN_TOWER_ENTRANCE, SCENE_ECRUTEAKTINTOWERENTRANCE_NOOP
setevent EVENT_RANG_CLEAR_BELL_1
setevent EVENT_RANG_CLEAR_BELL_2
.FightDone:
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_TM30_SHADOW_BALL
2017-10-25 21:03:06 -07:00
iftrue .GotShadowBall
2013-09-24 00:48:58 -07:00
setevent EVENT_BEAT_SAGE_JEFFREY
setevent EVENT_BEAT_SAGE_PING
setevent EVENT_BEAT_MEDIUM_MARTHA
setevent EVENT_BEAT_MEDIUM_GRACE
2017-10-25 21:03:06 -07:00
writetext MortyText_FogBadgeSpeech
2019-11-03 09:48:54 -08:00
promptbutton
2015-11-04 17:20:14 -08:00
verbosegiveitem TM_SHADOW_BALL
2017-10-25 21:03:06 -07:00
iffalse .NoRoomForShadowBall
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_TM30_SHADOW_BALL
2017-10-25 21:03:06 -07:00
writetext MortyText_ShadowBallSpeech
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2017-10-25 21:03:06 -07:00
.GotShadowBall:
2018-08-19 10:56:41 -07:00
writetext MortyFightDoneText
2015-11-25 07:16:29 -08:00
waitbutton
2017-10-25 21:03:06 -07:00
.NoRoomForShadowBall:
2015-11-25 07:16:29 -08:00
closetext
end
EcruteakGymActivateRockets:
2018-02-02 18:09:17 -08:00
ifequal 7, .RadioTowerRockets
ifequal 6, .GoldenrodRockets
end
.GoldenrodRockets:
jumpstd GoldenrodRocketsScript
.RadioTowerRockets:
jumpstd RadioTowerRocketsScript
2017-10-25 21:03:06 -07:00
EcruteakGymClosed:
2018-03-01 10:18:51 -08:00
applymovement PLAYER, EcruteakGymPlayerStepUpMovement
applymovement ECRUTEAKGYM_GRAMPS, EcruteakGymGrampsSlowStepDownMovement
2015-12-09 15:25:44 -08:00
opentext
2018-08-19 10:56:41 -07:00
writetext EcruteakGymClosedText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-11-26 21:22:14 -08:00
follow PLAYER, ECRUTEAKGYM_GRAMPS
2018-03-01 10:18:51 -08:00
applymovement PLAYER, EcruteakGymPlayerSlowStepDownMovement
stopfollow
special FadeOutPalettes
playsound SFX_ENTER_DOOR
2015-11-25 07:16:29 -08:00
waitsfx
warp ECRUTEAK_CITY, 6, 27
end
2015-07-10 00:00:27 -07:00
TrainerSageJeffrey:
trainer SAGE, JEFFREY, EVENT_BEAT_SAGE_JEFFREY, SageJeffreySeenText, SageJeffreyBeatenText, 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 SageJeffreyAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 00:00:27 -07:00
TrainerSagePing:
trainer SAGE, PING, EVENT_BEAT_SAGE_PING, SagePingSeenText, SagePingBeatenText, 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 SagePingAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 00:00:27 -07:00
TrainerMediumMartha:
trainer MEDIUM, MARTHA, EVENT_BEAT_MEDIUM_MARTHA, MediumMarthaSeenText, MediumMarthaBeatenText, 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 MediumMarthaAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 00:00:27 -07:00
TrainerMediumGrace:
trainer MEDIUM, GRACE, EVENT_BEAT_MEDIUM_GRACE, MediumGraceSeenText, MediumGraceBeatenText, 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 MediumGraceAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2020-07-17 10:01:48 -07:00
EcruteakGymGuideScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_BEAT_MORTY
2020-07-17 10:01:48 -07:00
iftrue .EcruteakGymGuideWinScript
writetext EcruteakGymGuideText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2020-07-17 10:01:48 -07:00
.EcruteakGymGuideWinScript:
writetext EcruteakGymGuideWinText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-24 20:51:36 -07:00
EcruteakGymStatue:
checkflag ENGINE_FOGBADGE
iftrue .Beaten
jumpstd GymStatue1Script
.Beaten:
gettrainername STRING_BUFFER_4, MORTY, MORTY1
jumpstd GymStatue2Script
2018-03-01 10:18:51 -08:00
EcruteakGymPlayerStepUpMovement:
2016-05-14 10:46:14 -07:00
step UP
step_end
2018-03-01 10:18:51 -08:00
EcruteakGymPlayerSlowStepDownMovement:
fix_facing
2016-05-14 10:46:14 -07:00
slow_step DOWN
remove_fixed_facing
step_end
2018-03-01 10:18:51 -08:00
EcruteakGymGrampsSlowStepDownMovement:
2016-05-14 10:46:14 -07:00
slow_step DOWN
step_end
2018-08-19 10:56:41 -07:00
MortyIntroText:
text "Good of you to"
line "have come."
para "Here in ECRUTEAK,"
line "#MON have been"
cont "revered."
para "It's said that a"
line "rainbow-colored"
para "#MON will come"
line "down to appear"
para "before a truly"
line "powerful trainer."
para "I believed that"
line "tale, so I have"
para "secretly trained"
line "here all my life."
para "As a result, I can"
line "now see what"
cont "others cannot."
para "Just a bit more…"
para "With a little"
line "more, I could see"
para "a future in which"
line "I meet the #MON"
cont "of rainbow colors."
para "You're going to"
line "help me reach that"
cont "level!"
done
2018-08-19 10:56:41 -07:00
MortyWinLossText:
text "I'm not good"
line "enough yet…"
para "All right. This"
line "BADGE is yours."
done
2017-10-25 21:03:06 -07:00
Text_ReceivedFogBadge:
text "<PLAYER> received"
line "FOGBADGE."
done
2017-10-25 21:03:06 -07:00
MortyText_FogBadgeSpeech:
text "By having FOG-"
line "BADGE, #MON up"
para "to L50 will obey"
line "you."
para "Also, #MON that"
line "know SURF will be"
para "able to use that"
line "move anytime."
para "I want you to have"
line "this too."
done
2017-10-25 21:03:06 -07:00
MortyText_ShadowBallSpeech:
text "It's SHADOW BALL."
line "It causes damage"
para "and may reduce"
line "SPCL.DEF."
para "Use it if it"
line "appeals to you."
done
2018-08-19 10:56:41 -07:00
MortyFightDoneText:
text "I see…"
para "Your journey has"
line "taken you to far-"
cont "away places."
para "And you have wit-"
line "nessed much more"
cont "than I."
para "I envy you for"
line "that…"
done
2015-07-10 00:00:27 -07:00
SageJeffreySeenText:
text "I spent the spring"
line "with my #MON."
para "Then summer, fall"
line "and winter…"
para "Then spring came"
line "again. We have"
para "lived together"
line "for a long time."
done
2015-07-10 00:00:27 -07:00
SageJeffreyBeatenText:
text "Wins and losses, I"
line "experienced both."
done
2017-12-10 12:36:58 -08:00
SageJeffreyAfterBattleText:
text "Where did #MON"
line "come from?"
done
2015-07-10 00:00:27 -07:00
SagePingSeenText:
text "Can you inflict"
line "any damage on our"
cont "#MON?"
done
2015-07-10 00:00:27 -07:00
SagePingBeatenText:
text "Ah! Well done!"
done
2017-12-10 12:36:58 -08:00
SagePingAfterBattleText:
text "We use only ghost-"
line "type #MON."
para "No normal-type"
line "attack can harm"
cont "them!"
done
2015-07-10 00:00:27 -07:00
MediumMarthaSeenText:
text "I shall win!"
done
2015-07-10 00:00:27 -07:00
MediumMarthaBeatenText:
text "I, I, I lost!"
done
2017-12-10 12:36:58 -08:00
MediumMarthaAfterBattleText:
text "The one who wants"
line "to win most--will!"
done
2015-07-10 00:00:27 -07:00
MediumGraceSeenText:
text "Stumped by our in-"
line "visible floor?"
para "Defeat me if you"
line "want a hint!"
done
2015-07-10 00:00:27 -07:00
MediumGraceBeatenText:
text "Wha-what?"
done
2017-12-10 12:36:58 -08:00
MediumGraceAfterBattleText:
text "Fine. I shall tell"
line "you the secret of"
para "the invisible"
line "floor."
para "The path is right"
line "before our eyes!"
done
2020-07-17 10:01:48 -07:00
EcruteakGymGuideText:
text "The trainers here"
line "have secret mo-"
cont "tives."
para "If you win, they"
line "may tell you some"
para "deep secrets about"
line "ECRUTEAK."
done
2020-07-17 10:01:48 -07:00
EcruteakGymGuideWinText:
text "Whew, <PLAYER>."
line "You did great!"
para "I was cowering in"
line "the corner out of"
cont "pure terror!"
done
2018-08-19 10:56:41 -07:00
EcruteakGymClosedText:
text "MORTY, the GYM"
line "LEADER, is absent."
para "Sorry, but you'll"
line "have to leave."
para "Hohohoho."
done
EcruteakGym_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-01 19:22:07 -08:00
warp_event 4, 17, ECRUTEAK_CITY, 10
warp_event 5, 17, ECRUTEAK_CITY, 10
warp_event 4, 14, ECRUTEAK_GYM, 4
warp_event 2, 4, ECRUTEAK_GYM, 3
warp_event 3, 4, ECRUTEAK_GYM, 3
warp_event 4, 4, ECRUTEAK_GYM, 3
warp_event 4, 5, ECRUTEAK_GYM, 3
warp_event 6, 7, ECRUTEAK_GYM, 3
warp_event 7, 4, ECRUTEAK_GYM, 3
warp_event 2, 6, ECRUTEAK_GYM, 3
warp_event 3, 6, ECRUTEAK_GYM, 3
warp_event 4, 6, ECRUTEAK_GYM, 3
warp_event 5, 6, ECRUTEAK_GYM, 3
warp_event 7, 6, ECRUTEAK_GYM, 3
warp_event 7, 7, ECRUTEAK_GYM, 3
warp_event 4, 8, ECRUTEAK_GYM, 3
warp_event 5, 8, ECRUTEAK_GYM, 3
warp_event 6, 8, ECRUTEAK_GYM, 3
warp_event 7, 8, ECRUTEAK_GYM, 3
warp_event 2, 8, ECRUTEAK_GYM, 3
warp_event 2, 9, ECRUTEAK_GYM, 3
warp_event 2, 10, ECRUTEAK_GYM, 3
warp_event 2, 11, ECRUTEAK_GYM, 3
warp_event 4, 10, ECRUTEAK_GYM, 3
warp_event 5, 10, ECRUTEAK_GYM, 3
warp_event 2, 12, ECRUTEAK_GYM, 3
warp_event 3, 12, ECRUTEAK_GYM, 3
warp_event 4, 12, ECRUTEAK_GYM, 3
warp_event 5, 12, ECRUTEAK_GYM, 3
warp_event 7, 10, ECRUTEAK_GYM, 3
warp_event 7, 11, ECRUTEAK_GYM, 3
warp_event 7, 12, ECRUTEAK_GYM, 3
warp_event 7, 13, ECRUTEAK_GYM, 3
def_coord_events
def_bg_events
2018-02-01 19:22:07 -08:00
bg_event 3, 15, BGEVENT_READ, EcruteakGymStatue
bg_event 6, 15, BGEVENT_READ, EcruteakGymStatue
def_object_events
2018-02-28 13:50:43 -08:00
object_event 5, 1, SPRITE_MORTY, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, EcruteakGymMortyScript, -1
2018-02-01 19:22:07 -08:00
object_event 2, 7, SPRITE_SAGE, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerSageJeffrey, -1
object_event 3, 13, SPRITE_SAGE, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerSagePing, -1
object_event 7, 5, SPRITE_GRANNY, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 1, TrainerMediumMartha, -1
object_event 7, 9, SPRITE_GRANNY, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 1, TrainerMediumGrace, -1
2020-07-17 10:01:48 -07:00
object_event 7, 15, SPRITE_GYM_GUIDE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, EcruteakGymGuideScript, -1
2018-02-01 19:22:07 -08:00
object_event 4, 14, SPRITE_GRAMPS, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_ECRUTEAK_GYM_GRAMPS