pokecrystal-board/maps/Route35.asm
2018-01-16 23:25:00 -05:00

496 lines
11 KiB
NASM

const_value set 2
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:
.SceneScripts:
db 0
.MapCallbacks:
db 0
TrainerBirdKeeperBryan:
trainer EVENT_BEAT_BIRD_KEEPER_BRYAN, BIRD_KEEPER, BRYAN, BirdKeeperBryanSeenText, BirdKeeperBryanBeatenText, 0, .Script
.Script:
end_if_just_battled
opentext
writetext BirdKeeperBryanAfterBattleText
waitbutton
closetext
end
TrainerJugglerIrwin:
trainer EVENT_BEAT_JUGGLER_IRWIN, JUGGLER, IRWIN1, JugglerIrwin1SeenText, JugglerIrwin1BeatenText, 0, .Script
.Script:
writecode VAR_CALLERID, PHONE_JUGGLER_IRWIN
end_if_just_battled
opentext
checkcellnum PHONE_JUGGLER_IRWIN
iftrue UnknownScript_0x19c90f
checkevent EVENT_IRWIN_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19c8ec
writetext UnknownText_0x19cd5a
buttonsound
setevent EVENT_IRWIN_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19c903
jump UnknownScript_0x19c8ef
UnknownScript_0x19c8ec:
scall UnknownScript_0x19c907
UnknownScript_0x19c8ef:
askforphonenumber PHONE_JUGGLER_IRWIN
if_equal PHONE_CONTACTS_FULL, UnknownScript_0x19c917
if_equal PHONE_CONTACT_REFUSED, UnknownScript_0x19c913
trainertotext JUGGLER, IRWIN1, MEM_BUFFER_0
scall UnknownScript_0x19c90b
jump UnknownScript_0x19c90f
UnknownScript_0x19c903:
jumpstd asknumber1m
end
UnknownScript_0x19c907:
jumpstd asknumber2m
end
UnknownScript_0x19c90b:
jumpstd registerednumberm
end
UnknownScript_0x19c90f:
jumpstd numberacceptedm
end
UnknownScript_0x19c913:
jumpstd numberdeclinedm
end
UnknownScript_0x19c917:
jumpstd phonefullm
end
UnknownScript_0x19c91b:
jumpstd rematchm
end
TrainerCamperIvan:
trainer EVENT_BEAT_CAMPER_IVAN, CAMPER, IVAN, CamperIvanSeenText, CamperIvanBeatenText, 0, .Script
.Script:
end_if_just_battled
opentext
writetext CamperIvanAfterBattleText
waitbutton
closetext
end
TrainerCamperElliot:
trainer EVENT_BEAT_CAMPER_ELLIOT, CAMPER, ELLIOT, CamperElliotSeenText, CamperElliotBeatenText, 0, .Script
.Script:
end_if_just_battled
opentext
writetext CamperElliotAfterBattleText
waitbutton
closetext
end
TrainerPicnickerBrooke:
trainer EVENT_BEAT_PICNICKER_BROOKE, PICNICKER, BROOKE, PicnickerBrookeSeenText, PicnickerBrookeBeatenText, 0, .Script
.Script:
end_if_just_battled
opentext
writetext PicnickerBrookeAfterBattleText
waitbutton
closetext
end
TrainerPicnickerKim:
trainer EVENT_BEAT_PICNICKER_KIM, PICNICKER, KIM, PicnickerKimSeenText, PicnickerKimBeatenText, 0, .Script
.Script:
end_if_just_battled
opentext
writetext PicnickerKimAfterBattleText
waitbutton
closetext
end
TrainerBugCatcherArnie1:
trainer EVENT_BEAT_BUG_CATCHER_ARNIE, BUG_CATCHER, ARNIE1, BugCatcherArnie1SeenText, BugCatcherArnie1BeatenText, 0, .Script
.Script:
writecode VAR_CALLERID, PHONE_BUG_CATCHER_ARNIE
end_if_just_battled
opentext
checkflag ENGINE_ARNIE
iftrue UnknownScript_0x19c9bb
checkflag ENGINE_YANMA_SWARM
iftrue UnknownScript_0x19ca2f
checkcellnum PHONE_BUG_CATCHER_ARNIE
iftrue UnknownScript_0x19c90f
checkevent EVENT_ARNIE_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19c9a4
writetext UnknownText_0x19cdf6
buttonsound
setevent EVENT_ARNIE_ASKED_FOR_PHONE_NUMBER
scall UnknownScript_0x19c903
jump UnknownScript_0x19c9a7
UnknownScript_0x19c9a4:
scall UnknownScript_0x19c907
UnknownScript_0x19c9a7:
askforphonenumber PHONE_BUG_CATCHER_ARNIE
if_equal PHONE_CONTACTS_FULL, UnknownScript_0x19c917
if_equal PHONE_CONTACT_REFUSED, UnknownScript_0x19c913
trainertotext BUG_CATCHER, ARNIE1, MEM_BUFFER_0
scall UnknownScript_0x19c90b
jump UnknownScript_0x19c90f
UnknownScript_0x19c9bb:
scall UnknownScript_0x19c91b
winlosstext BugCatcherArnie1BeatenText, 0
copybytetovar wArnieFightCount
if_equal 4, .Fight4
if_equal 3, .Fight3
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight4:
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight4
.Fight3:
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
loadvar wArnieFightCount, 1
clearflag ENGINE_ARNIE
end
.LoadFight1:
loadtrainer BUG_CATCHER, ARNIE2
startbattle
reloadmapafterbattle
loadvar wArnieFightCount, 2
clearflag ENGINE_ARNIE
end
.LoadFight2:
loadtrainer BUG_CATCHER, ARNIE3
startbattle
reloadmapafterbattle
loadvar wArnieFightCount, 3
clearflag ENGINE_ARNIE
end
.LoadFight3:
loadtrainer BUG_CATCHER, ARNIE4
startbattle
reloadmapafterbattle
loadvar wArnieFightCount, 4
clearflag ENGINE_ARNIE
end
.LoadFight4:
loadtrainer BUG_CATCHER, ARNIE5
startbattle
reloadmapafterbattle
clearflag ENGINE_ARNIE
end
UnknownScript_0x19ca2f:
writetext UnknownText_0x19ce38
waitbutton
closetext
end
TrainerFirebreatherWalt:
trainer EVENT_BEAT_FIREBREATHER_WALT, FIREBREATHER, WALT, FirebreatherWaltSeenText, FirebreatherWaltBeatenText, 0, .Script
.Script:
end_if_just_battled
opentext
writetext FirebreatherWaltAfterBattleText
waitbutton
closetext
end
OfficerScript_0x19ca49:
faceplayer
opentext
checknite
iffalse UnknownScript_0x19ca73
checkevent EVENT_BEAT_OFFICER_DIRK
iftrue UnknownScript_0x19ca6d
playmusic MUSIC_OFFICER_ENCOUNTER
writetext UnknownText_0x19ceea
waitbutton
closetext
winlosstext UnknownText_0x19cf06, 0
loadtrainer OFFICER, DIRK
startbattle
reloadmapafterbattle
setevent EVENT_BEAT_OFFICER_DIRK
closetext
end
UnknownScript_0x19ca6d:
writetext UnknownText_0x19cf0f
waitbutton
closetext
end
UnknownScript_0x19ca73:
writetext UnknownText_0x19cf56
waitbutton
closetext
end
Route35Sign:
jumptext Route35SignText
Route35TMRollout:
itemball TM_ROLLOUT
FruitTreeScript_0x19ca7e:
fruittree FRUITTREE_ROUTE_35
CamperIvanSeenText:
text "I've been getting"
line "#MON data off"
para "my radio. I think"
line "I'm good."
done
CamperIvanBeatenText:
text "I give!"
done
CamperIvanAfterBattleText:
text "Music on the radio"
line "changes the moods"
cont "of wild #MON."
done
CamperElliotSeenText:
text "I'm gonna show my"
line "girlfriend I'm hot"
cont "stuff!"
done
CamperElliotBeatenText:
text "I wish you would"
line "have lost for me…"
done
CamperElliotAfterBattleText:
text "I was humiliated"
line "in front of my"
cont "girlfriend…"
done
PicnickerBrookeSeenText:
text "My boyfriend's"
line "weak, so I can't"
cont "rely on him."
done
PicnickerBrookeBeatenText:
text "Oh, my! You're so"
line "strong!"
done
PicnickerBrookeAfterBattleText:
text "I can count on my"
line "#MON more than"
cont "my boyfriend."
done
PicnickerKimSeenText:
text "Are you going to"
line "the GYM? Me too!"
done
PicnickerKimBeatenText:
text "Oh. I couldn't"
line "win…"
done
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
JugglerIrwin1SeenText:
text "Behold my graceful"
line "BALL dexterity!"
done
JugglerIrwin1BeatenText:
text "Whew! That was a"
line "jolt!"
done
UnknownText_0x19cd5a:
text "I was going to"
line "dazzle you with my"
cont "prize #MON."
para "But your prowess"
line "electrified me!"
done
BugCatcherArnie1SeenText:
text "I'll go anywhere"
line "if bug #MON"
cont "appear there."
done
BugCatcherArnie1BeatenText:
text "Huh? I shouldn't"
line "have lost that…"
done
UnknownText_0x19cdf6:
text "My VENONAT won me"
line "the Bug-Catching"
para "Contest at the"
line "NATIONAL PARK."
done
UnknownText_0x19ce38:
text "Wow… Look at all"
line "those YANMA!"
para "I'm so blown away,"
line "I can't move."
done
FirebreatherWaltSeenText:
text "I'm practicing my"
line "fire breathing."
done
FirebreatherWaltBeatenText:
text "Ow! I scorched the"
line "tip of my nose!"
done
FirebreatherWaltAfterBattleText:
text "The #MON March"
line "on the radio lures"
cont "wild #MON."
done
UnknownText_0x19ceea:
text "Danger lurks in"
line "the night!"
done
UnknownText_0x19cf06:
text "Whoops!"
done
UnknownText_0x19cf0f:
text "You know, night-"
line "time is fun in its"
cont "own ways."
para "But don't overdo"
line "it, OK?"
done
UnknownText_0x19cf56:
text "Your #MON look"
line "pretty tough."
para "You could go any-"
line "where safely."
done
Route35SignText:
text "ROUTE 35"
done
Route35_MapEvents:
; filler
db 0, 0
.Warps:
db 3
warp_def 9, 33, 1, ROUTE_35_GOLDENROD_GATE
warp_def 10, 33, 2, ROUTE_35_GOLDENROD_GATE
warp_def 3, 5, 3, ROUTE_35_NATIONAL_PARK_GATE
.CoordEvents:
db 0
.BGEvents:
db 2
bg_event 1, 7, BGEVENT_READ, Route35Sign
bg_event 11, 31, BGEVENT_READ, Route35Sign
.ObjectEvents:
db 11
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
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, TrainerBugCatcherArnie1, -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, OfficerScript_0x19ca49, -1
object_event 2, 25, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, FruitTreeScript_0x19ca7e, -1
object_event 13, 16, SPRITE_POKE_BALL, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route35TMRollout, EVENT_ROUTE_35_TM_ROLLOUT