pokecrystal/maps/Route35.asm

489 lines
10 KiB
NASM
Raw Normal View History

2018-01-31 16:38:45 +00:00
const_def 2 ; object constants
2015-11-27 05:22:14 +00:00
const ROUTE35_YOUNGSTER1
const ROUTE35_YOUNGSTER2
const ROUTE35_LASS1
const ROUTE35_LASS2
const ROUTE35_YOUNGSTER3
const ROUTE35_FISHER
const ROUTE35_BUG_CATCHER
const ROUTE35_SUPER_NERD
const ROUTE35_OFFICER
const ROUTE35_FRUIT_TREE
const ROUTE35_POKE_BALL
Route35_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TrainerBirdKeeperBryan:
trainer BIRD_KEEPER, BRYAN, EVENT_BEAT_BIRD_KEEPER_BRYAN, BirdKeeperBryanSeenText, BirdKeeperBryanBeatenText, 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
writetext BirdKeeperBryanAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerJugglerIrwin:
trainer JUGGLER, IRWIN1, EVENT_BEAT_JUGGLER_IRWIN, JugglerIrwin1SeenText, JugglerIrwin1BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
writecode VAR_CALLERID, PHONE_JUGGLER_IRWIN
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkcellnum PHONE_JUGGLER_IRWIN
2018-01-24 04:49:50 +00:00
iftrue Route35NumberAcceptedM
checkevent EVENT_IRWIN_ASKED_FOR_PHONE_NUMBER
2018-01-16 04:30:39 +00:00
iftrue .AskedAlready
2018-01-24 04:49:50 +00:00
writetext JugglerIrwinAfterBattleText
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_IRWIN_ASKED_FOR_PHONE_NUMBER
2018-01-24 04:49:50 +00:00
scall Route35AskNumber1M
2018-01-16 04:30:39 +00:00
jump .AskForNumber
2018-01-16 04:30:39 +00:00
.AskedAlready:
2018-01-24 04:49:50 +00:00
scall Route35AskNumber2M
2018-01-16 04:30:39 +00:00
.AskForNumber:
askforphonenumber PHONE_JUGGLER_IRWIN
2018-02-03 02:09:17 +00:00
ifequal PHONE_CONTACTS_FULL, Route35PhoneFullM
ifequal PHONE_CONTACT_REFUSED, Route35NumberDeclinedM
2018-01-12 06:40:20 +00:00
trainertotext JUGGLER, IRWIN1, MEM_BUFFER_0
2018-01-24 04:49:50 +00:00
scall Route35RegisteredNumberM
jump Route35NumberAcceptedM
2018-01-24 04:49:50 +00:00
Route35AskNumber1M:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
2018-01-24 04:49:50 +00:00
Route35AskNumber2M:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
2018-01-24 04:49:50 +00:00
Route35RegisteredNumberM:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
2018-01-24 04:49:50 +00:00
Route35NumberAcceptedM:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
2018-01-24 04:49:50 +00:00
Route35NumberDeclinedM:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
2018-01-24 04:49:50 +00:00
Route35PhoneFullM:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
2018-01-24 04:49:50 +00:00
Route35RematchM:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2015-07-10 08:20:21 +00:00
TrainerCamperIvan:
trainer CAMPER, IVAN, EVENT_BEAT_CAMPER_IVAN, CamperIvanSeenText, CamperIvanBeatenText, 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 CamperIvanAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerCamperElliot:
trainer CAMPER, ELLIOT, EVENT_BEAT_CAMPER_ELLIOT, CamperElliotSeenText, CamperElliotBeatenText, 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 CamperElliotAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerPicnickerBrooke:
trainer PICNICKER, BROOKE, EVENT_BEAT_PICNICKER_BROOKE, PicnickerBrookeSeenText, PicnickerBrookeBeatenText, 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 PicnickerBrookeAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerPicnickerKim:
trainer PICNICKER, KIM, EVENT_BEAT_PICNICKER_KIM, PicnickerKimSeenText, PicnickerKimBeatenText, 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 PicnickerKimAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-01-16 04:30:39 +00:00
TrainerBugCatcherArnie:
trainer BUG_CATCHER, ARNIE1, EVENT_BEAT_BUG_CATCHER_ARNIE, BugCatcherArnieSeenText, BugCatcherArnieBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
writecode VAR_CALLERID, PHONE_BUG_CATCHER_ARNIE
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_ARNIE
2018-01-16 04:30:39 +00:00
iftrue .WantsBattle
2015-07-10 12:08:03 +00:00
checkflag ENGINE_YANMA_SWARM
2018-01-16 04:30:39 +00:00
iftrue .YanmaSwarming
checkcellnum PHONE_BUG_CATCHER_ARNIE
2018-01-24 04:49:50 +00:00
iftrue Route35NumberAcceptedM
checkevent EVENT_ARNIE_ASKED_FOR_PHONE_NUMBER
2018-01-16 04:30:39 +00:00
iftrue .AskedAlready
writetext BugCatcherArnieAfterBattleText
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_ARNIE_ASKED_FOR_PHONE_NUMBER
2018-01-24 04:49:50 +00:00
scall Route35AskNumber1M
2018-01-16 04:30:39 +00:00
jump .AskForNumber
2018-01-16 04:30:39 +00:00
.AskedAlready:
2018-01-24 04:49:50 +00:00
scall Route35AskNumber2M
2018-01-16 04:30:39 +00:00
.AskForNumber:
askforphonenumber PHONE_BUG_CATCHER_ARNIE
2018-02-03 02:09:17 +00:00
ifequal PHONE_CONTACTS_FULL, Route35PhoneFullM
ifequal PHONE_CONTACT_REFUSED, Route35NumberDeclinedM
2018-01-12 06:40:20 +00:00
trainertotext BUG_CATCHER, ARNIE1, MEM_BUFFER_0
2018-01-24 04:49:50 +00:00
scall Route35RegisteredNumberM
jump Route35NumberAcceptedM
2018-01-16 04:30:39 +00:00
.WantsBattle:
2018-01-24 04:49:50 +00:00
scall Route35RematchM
2018-01-16 04:30:39 +00:00
winlosstext BugCatcherArnieBeatenText, 0
2015-07-10 20:04:00 +00:00
copybytetovar wArnieFightCount
2018-02-03 02:09:17 +00:00
ifequal 4, .Fight4
ifequal 3, .Fight3
ifequal 2, .Fight2
ifequal 1, .Fight1
ifequal 0, .LoadFight0
.Fight4:
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight4
.Fight3:
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight3
.Fight2:
checkflag ENGINE_FLYPOINT_BLACKTHORN
iftrue .LoadFight2
.Fight1:
checkflag ENGINE_FLYPOINT_LAKE_OF_RAGE
iftrue .LoadFight1
.LoadFight0:
loadtrainer BUG_CATCHER, ARNIE1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wArnieFightCount, 1
clearflag ENGINE_ARNIE
end
.LoadFight1:
loadtrainer BUG_CATCHER, ARNIE2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wArnieFightCount, 2
clearflag ENGINE_ARNIE
end
.LoadFight2:
loadtrainer BUG_CATCHER, ARNIE3
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wArnieFightCount, 3
clearflag ENGINE_ARNIE
end
.LoadFight3:
loadtrainer BUG_CATCHER, ARNIE4
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wArnieFightCount, 4
clearflag ENGINE_ARNIE
end
.LoadFight4:
loadtrainer BUG_CATCHER, ARNIE5
startbattle
reloadmapafterbattle
clearflag ENGINE_ARNIE
end
2018-01-16 04:30:39 +00:00
.YanmaSwarming:
writetext BugCatcherArnieYanmaText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerFirebreatherWalt:
trainer FIREBREATHER, WALT, EVENT_BEAT_FIREBREATHER_WALT, FirebreatherWaltSeenText, FirebreatherWaltBeatenText, 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 FirebreatherWaltAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-01-16 04:30:39 +00:00
TrainerOfficerDirk:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
checktime NITE
2018-01-16 04:30:39 +00:00
iffalse .NotNight
2015-07-10 08:20:21 +00:00
checkevent EVENT_BEAT_OFFICER_DIRK
2018-01-16 04:30:39 +00:00
iftrue .AfterBattle
playmusic MUSIC_OFFICER_ENCOUNTER
2018-01-16 04:30:39 +00:00
writetext OfficerDirkSeenText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2018-01-16 04:30:39 +00:00
winlosstext OfficerDirkBeatenText, 0
loadtrainer OFFICER, DIRK
startbattle
reloadmapafterbattle
2015-07-10 08:20:21 +00:00
setevent EVENT_BEAT_OFFICER_DIRK
2015-11-25 15:16:29 +00:00
closetext
end
2018-01-16 04:30:39 +00:00
.AfterBattle:
writetext OfficerDirkAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-01-16 04:30:39 +00:00
.NotNight:
writetext OfficerDirkPrettyToughText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2016-04-07 04:59:45 +00:00
Route35Sign:
jumptext Route35SignText
2015-12-15 15:55:56 +00:00
Route35TMRollout:
itemball TM_ROLLOUT
2018-02-28 21:50:43 +00:00
Route35FruitTree:
2015-11-18 15:42:42 +00:00
fruittree FRUITTREE_ROUTE_35
2015-07-10 08:20:21 +00:00
CamperIvanSeenText:
text "I've been getting"
line "#MON data off"
para "my radio. I think"
line "I'm good."
done
2015-07-10 08:20:21 +00:00
CamperIvanBeatenText:
text "I give!"
done
2017-12-10 20:36:58 +00:00
CamperIvanAfterBattleText:
text "Music on the radio"
line "changes the moods"
cont "of wild #MON."
done
2015-07-10 08:20:21 +00:00
CamperElliotSeenText:
text "I'm gonna show my"
line "girlfriend I'm hot"
cont "stuff!"
done
2015-07-10 08:20:21 +00:00
CamperElliotBeatenText:
text "I wish you would"
line "have lost for me…"
done
2017-12-10 20:36:58 +00:00
CamperElliotAfterBattleText:
text "I was humiliated"
line "in front of my"
cont "girlfriend…"
done
2015-07-10 08:20:21 +00:00
PicnickerBrookeSeenText:
text "My boyfriend's"
line "weak, so I can't"
cont "rely on him."
done
2015-07-10 08:20:21 +00:00
PicnickerBrookeBeatenText:
text "Oh, my! You're so"
line "strong!"
done
2017-12-10 20:36:58 +00:00
PicnickerBrookeAfterBattleText:
text "I can count on my"
line "#MON more than"
cont "my boyfriend."
done
2015-07-10 08:20:21 +00:00
PicnickerKimSeenText:
text "Are you going to"
line "the GYM? Me too!"
done
2015-07-10 08:20:21 +00:00
PicnickerKimBeatenText:
text "Oh. I couldn't"
line "win…"
done
2017-12-10 20:36:58 +00:00
PicnickerKimAfterBattleText:
text "The GYM BADGES are"
line "pretty. I collect"
cont "them."
done
BirdKeeperBryanSeenText:
text "What kinds of"
line "BALLS do you use?"
done
BirdKeeperBryanBeatenText:
text "Yikes! Not fast"
line "enough!"
done
BirdKeeperBryanAfterBattleText:
text "Some #MON flee"
line "right away."
para "Try catching them"
line "with KURT's FAST"
cont "BALL."
para "Whenever I find a"
line "WHT APRICORN, I"
cont "take it to KURT."
para "He turns it into a"
line "custom BALL."
done
2015-07-10 08:20:21 +00:00
JugglerIrwin1SeenText:
text "Behold my graceful"
line "BALL dexterity!"
done
2015-07-10 08:20:21 +00:00
JugglerIrwin1BeatenText:
text "Whew! That was a"
line "jolt!"
done
2018-01-24 04:49:50 +00:00
JugglerIrwinAfterBattleText:
text "I was going to"
line "dazzle you with my"
cont "prize #MON."
para "But your prowess"
line "electrified me!"
done
2018-01-16 04:30:39 +00:00
BugCatcherArnieSeenText:
text "I'll go anywhere"
line "if bug #MON"
cont "appear there."
done
2018-01-16 04:30:39 +00:00
BugCatcherArnieBeatenText:
text "Huh? I shouldn't"
line "have lost that…"
done
2018-01-16 04:30:39 +00:00
BugCatcherArnieAfterBattleText:
text "My VENONAT won me"
line "the Bug-Catching"
para "Contest at the"
line "NATIONAL PARK."
done
2018-01-16 04:30:39 +00:00
BugCatcherArnieYanmaText:
text "Wow… Look at all"
line "those YANMA!"
para "I'm so blown away,"
line "I can't move."
done
2015-07-10 08:20:21 +00:00
FirebreatherWaltSeenText:
text "I'm practicing my"
line "fire breathing."
done
2015-07-10 08:20:21 +00:00
FirebreatherWaltBeatenText:
text "Ow! I scorched the"
line "tip of my nose!"
done
2017-12-10 20:36:58 +00:00
FirebreatherWaltAfterBattleText:
text "The #MON March"
line "on the radio lures"
cont "wild #MON."
done
2018-01-16 04:30:39 +00:00
OfficerDirkSeenText:
text "Danger lurks in"
line "the night!"
done
2018-01-16 04:30:39 +00:00
OfficerDirkBeatenText:
text "Whoops!"
done
2018-01-16 04:30:39 +00:00
OfficerDirkAfterBattleText:
text "You know, night-"
line "time is fun in its"
cont "own ways."
para "But don't overdo"
line "it, OK?"
done
2018-01-16 04:30:39 +00:00
OfficerDirkPrettyToughText:
text "Your #MON look"
line "pretty tough."
para "You could go any-"
line "where safely."
done
2016-04-07 04:59:45 +00:00
Route35SignText:
text "ROUTE 35"
done
Route35_MapEvents:
db 0, 0 ; filler
db 3 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 9, 33, ROUTE_35_GOLDENROD_GATE, 1
2018-02-02 02:54:00 +00:00
warp_event 10, 33, ROUTE_35_GOLDENROD_GATE, 2
2018-02-02 03:22:07 +00:00
warp_event 3, 5, ROUTE_35_NATIONAL_PARK_GATE, 3
db 0 ; coord events
db 2 ; bg events
2018-02-02 03:22:07 +00:00
bg_event 1, 7, BGEVENT_READ, Route35Sign
bg_event 11, 31, BGEVENT_READ, Route35Sign
db 11 ; object events
2018-02-02 03:22:07 +00:00
object_event 4, 19, SPRITE_YOUNGSTER, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 2, TrainerCamperIvan, -1
object_event 8, 20, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 3, TrainerCamperElliot, -1
object_event 7, 20, SPRITE_LASS, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 3, TrainerPicnickerBrooke, -1
object_event 10, 26, SPRITE_LASS, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_TRAINER, 1, TrainerPicnickerKim, -1
object_event 14, 28, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 0, TrainerBirdKeeperBryan, -1
2018-02-02 03:22:07 +00:00
object_event 2, 10, SPRITE_FISHER, SPRITEMOVEDATA_SPINCOUNTERCLOCKWISE, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 2, TrainerFirebreatherWalt, -1
object_event 16, 7, SPRITE_BUG_CATCHER, SPRITEMOVEDATA_STANDING_DOWN, 2, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerBugCatcherArnie, -1
object_event 5, 10, SPRITE_SUPER_NERD, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 2, TrainerJugglerIrwin, -1
object_event 5, 6, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, TrainerOfficerDirk, -1
2018-02-28 21:50:43 +00:00
object_event 2, 25, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route35FruitTree, -1
object_event 13, 16, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route35TMRollout, EVENT_ROUTE_35_TM_ROLLOUT