pokecrystal/maps/AzaleaGym.asm

383 lines
7.8 KiB
NASM
Raw Normal View History

object_const_def ; object_event constants
2015-11-27 05:22:14 +00:00
const AZALEAGYM_BUGSY
const AZALEAGYM_BUG_CATCHER1
const AZALEAGYM_BUG_CATCHER2
const AZALEAGYM_BUG_CATCHER3
const AZALEAGYM_TWIN1
const AZALEAGYM_TWIN2
2020-07-17 17:01:48 +00:00
const AZALEAGYM_GYM_GUIDE
2015-11-27 05:22:14 +00:00
AzaleaGym_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
AzaleaGymBugsyScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_BEAT_BUGSY
2015-07-10 07:00:27 +00:00
iftrue .FightDone
writetext BugsyText_INeverLose
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-11-02 19:37:02 +00:00
winlosstext BugsyText_ResearchIncomplete, 0
loadtrainer BUGSY, BUGSY1
startbattle
reloadmapafterbattle
2013-09-24 07:48:58 +00:00
setevent EVENT_BEAT_BUGSY
2015-12-09 23:25:44 +00:00
opentext
writetext Text_ReceivedHiveBadge
playsound SFX_GET_BADGE
2015-11-25 15:16:29 +00:00
waitsfx
2015-07-10 07:00:27 +00:00
setflag ENGINE_HIVEBADGE
readvar VAR_BADGES
scall AzaleaGymActivateRockets
.FightDone:
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_TM49_FURY_CUTTER
iftrue .GotFuryCutter
2013-09-24 07:48:58 +00:00
setevent EVENT_BEAT_TWINS_AMY_AND_MAY
setevent EVENT_BEAT_BUG_CATCHER_BENNY
setevent EVENT_BEAT_BUG_CATCHER_AL
setevent EVENT_BEAT_BUG_CATCHER_JOSH
writetext BugsyText_HiveBadgeSpeech
2019-11-03 17:48:54 +00:00
promptbutton
2015-11-05 01:20:14 +00:00
verbosegiveitem TM_FURY_CUTTER
iffalse .NoRoomForFuryCutter
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_TM49_FURY_CUTTER
writetext BugsyText_FuryCutterSpeech
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.GotFuryCutter:
writetext BugsyText_BugMonsAreDeep
2015-11-25 15:16:29 +00:00
waitbutton
.NoRoomForFuryCutter:
2015-11-25 15:16:29 +00:00
closetext
end
AzaleaGymActivateRockets:
2018-02-03 02:09:17 +00:00
ifequal 7, .RadioTowerRockets
ifequal 6, .GoldenrodRockets
end
.GoldenrodRockets:
jumpstd GoldenrodRocketsScript
.RadioTowerRockets:
jumpstd RadioTowerRocketsScript
2015-07-10 07:00:27 +00:00
TrainerTwinsAmyandmay1:
trainer TWINS, AMYANDMAY1, EVENT_BEAT_TWINS_AMY_AND_MAY, TwinsAmyandmay1SeenText, TwinsAmyandmay1BeatenText, 0, .AfterScript
.AfterScript:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
writetext TwinsAmyandmay1AfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 07:00:27 +00:00
TrainerTwinsAmyandmay2:
trainer TWINS, AMYANDMAY2, EVENT_BEAT_TWINS_AMY_AND_MAY, TwinsAmyandmay2SeenText, TwinsAmyandmay2BeatenText, 0, .AfterScript
.AfterScript:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
writetext TwinsAmyandmay2AfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2017-12-27 23:45:57 +00:00
TrainerBugCatcherBenny:
trainer BUG_CATCHER, BUG_CATCHER_BENNY, EVENT_BEAT_BUG_CATCHER_BENNY, BugCatcherBennySeenText, BugCatcherBennyBeatenText, 0, .AfterScript
.AfterScript:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
2017-12-27 23:45:57 +00:00
writetext BugCatcherBennyAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
TrainerBugCatcherAl:
trainer BUG_CATCHER, AL, EVENT_BEAT_BUG_CATCHER_AL, BugCatcherAlSeenText, BugCatcherAlBeatenText, 0, .AfterScript
.AfterScript:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
writetext BugCatcherAlAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
TrainerBugCatcherJosh:
trainer BUG_CATCHER, JOSH, EVENT_BEAT_BUG_CATCHER_JOSH, BugCatcherJoshSeenText, BugCatcherJoshBeatenText, 0, .AfterScript
.AfterScript:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
writetext BugCatcherJoshAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2020-07-17 17:01:48 +00:00
AzaleaGymGuideScript:
faceplayer
2013-09-24 07:48:58 +00:00
checkevent EVENT_BEAT_BUGSY
2020-07-17 17:01:48 +00:00
iftrue .AzaleaGymGuideWinScript
2015-12-09 23:25:44 +00:00
opentext
2020-07-17 17:01:48 +00:00
writetext AzaleaGymGuideText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2020-07-17 17:01:48 +00:00
.AzaleaGymGuideWinScript:
2015-12-09 23:25:44 +00:00
opentext
2020-07-17 17:01:48 +00:00
writetext AzaleaGymGuideWinText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-06-25 03:51:36 +00:00
AzaleaGymStatue:
checkflag ENGINE_HIVEBADGE
iftrue .Beaten
jumpstd GymStatue1Script
.Beaten:
gettrainername STRING_BUFFER_4, BUGSY, BUGSY1
jumpstd GymStatue2Script
BugsyText_INeverLose:
text "I'm BUGSY!"
line "I never lose when"
para "it comes to bug"
line "#MON."
para "My research is"
line "going to make me"
para "the authority on"
line "bug #MON!"
para "Let me demonstrate"
line "what I've learned"
cont "from my studies."
done
BugsyText_ResearchIncomplete:
text "Whoa, amazing!"
line "You're an expert"
cont "on #MON!"
para "My research isn't"
line "complete yet."
para "OK, you win. Take"
line "this BADGE."
done
Text_ReceivedHiveBadge:
text "<PLAYER> received"
line "HIVEBADGE."
done
BugsyText_HiveBadgeSpeech:
text "Do you know the"
line "benefits of HIVE-"
cont "BADGE?"
para "If you have it,"
line "#MON up to L30"
para "will obey you,"
line "even traded ones."
para "#MON that know"
line "CUT will be able"
para "to use it outside"
line "of battle too."
para "Here, I also want"
line "you to have this."
done
BugsyText_FuryCutterSpeech:
text "TM49 contains"
line "FURY CUTTER."
para "If you don't miss,"
line "it gets stronger"
cont "every turn."
para "The longer your"
line "battle goes, the"
cont "better it gets."
para "Isn't that great?"
line "I discovered it!"
done
BugsyText_BugMonsAreDeep:
text "Bug #MON are"
line "deep. There are"
para "many mysteries to"
line "be explored."
para "Study your favor-"
line "ites thoroughly."
done
2017-12-27 23:45:57 +00:00
BugCatcherBennySeenText:
text "Bug #MON evolve"
line "young. So they get"
para "stronger that much"
line "faster."
done
2017-12-27 23:45:57 +00:00
BugCatcherBennyBeatenText:
text "Just evolving"
line "isn't enough!"
done
2017-12-27 23:45:57 +00:00
BugCatcherBennyAfterBattleText:
text "#MON become"
line "stronger if they"
cont "evolve. Really!"
done
BugCatcherAlSeenText:
text "Bug #MON are"
line "cool and tough!"
para "I'll prove it to"
line "you!"
done
BugCatcherAlBeatenText:
text "You proved how"
line "tough you are…"
done
BugCatcherAlAfterBattleText:
text "They're so cool,"
line "but most girls"
para "don't like bug"
line "#MON."
para "I don't know why…"
done
BugCatcherJoshSeenText:
text "You saved all the"
line "SLOWPOKE? Whew,"
cont "you're mighty!"
para "But my grown-up"
line "#MON are pretty"
cont "tough too!"
done
BugCatcherJoshBeatenText:
text "Urrgggh!"
done
BugCatcherJoshAfterBattleText:
text "I guess I should"
line "teach them better"
cont "moves…"
done
2015-07-10 07:00:27 +00:00
TwinsAmyandmay1SeenText:
text "AMY: Hi! Are you"
line "challenging the"
cont "LEADER? No way!"
done
2015-07-10 07:00:27 +00:00
TwinsAmyandmay1BeatenText:
text "AMY & MAY: Oh,"
line "double goodness!"
done
TwinsAmyandmay1AfterBattleText:
text "AMY: You're"
line "really strong!"
done
2015-07-10 07:00:27 +00:00
TwinsAmyandmay2SeenText:
text "MAY: You want to"
line "see the LEADER?"
cont "We come first!"
done
2015-07-10 07:00:27 +00:00
TwinsAmyandmay2BeatenText:
text "AMY & MAY: Oh,"
line "double goodness!"
done
TwinsAmyandmay2AfterBattleText:
text "MAY: Our bug #-"
line "MON lost! Oh, what"
cont "a shame."
done
2020-07-17 17:01:48 +00:00
AzaleaGymGuideText:
text "Yo, challenger!"
para "BUGSY's young, but"
line "his knowledge of"
para "bug #MON is for"
line "real."
para "It's going to be"
line "tough without my"
cont "advice."
para "Let's see… Bug"
line "#MON don't like"
cont "fire."
para "Flying-type moves"
line "are super-effec-"
cont "tive too."
done
2020-07-17 17:01:48 +00:00
AzaleaGymGuideWinText:
text "Well done! That"
line "was a great clash"
para "of talented young"
line "trainers."
para "With people like"
line "you, the future of"
cont "#MON is bright!"
done
AzaleaGym_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 4, 15, AZALEA_TOWN, 5
warp_event 5, 15, AZALEA_TOWN, 5
db 0 ; coord events
db 2 ; bg events
2018-02-02 03:22:07 +00:00
bg_event 3, 13, BGEVENT_READ, AzaleaGymStatue
bg_event 6, 13, BGEVENT_READ, AzaleaGymStatue
db 7 ; object events
2018-02-02 03:22:07 +00:00
object_event 5, 7, SPRITE_BUGSY, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, AzaleaGymBugsyScript, -1
object_event 5, 3, SPRITE_BUG_CATCHER, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 2, TrainerBugCatcherBenny, -1
object_event 8, 8, SPRITE_BUG_CATCHER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerBugCatcherAl, -1
object_event 0, 2, SPRITE_BUG_CATCHER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerBugCatcherJosh, -1
object_event 4, 10, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 1, TrainerTwinsAmyandmay1, -1
object_event 5, 10, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 1, TrainerTwinsAmyandmay2, -1
2020-07-17 17:01:48 +00:00
object_event 7, 13, SPRITE_GYM_GUIDE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, AzaleaGymGuideScript, -1