pokecrystal/maps/Route44.asm

540 lines
12 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const ROUTE44_FISHER1
const ROUTE44_FISHER2
const ROUTE44_YOUNGSTER1
const ROUTE44_SUPER_NERD
const ROUTE44_YOUNGSTER2
const ROUTE44_COOLTRAINER_M
const ROUTE44_COOLTRAINER_F
const ROUTE44_FRUIT_TREE
const ROUTE44_POKE_BALL1
const ROUTE44_POKE_BALL2
const ROUTE44_POKE_BALL3
2015-07-10 08:20:21 +00:00
Route44_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 0
2015-07-10 08:20:21 +00:00
TrainerBird_keeperVance1:
2015-11-02 19:37:02 +00:00
trainer EVENT_BEAT_BIRD_KEEPER_VANCE, BIRD_KEEPER, VANCE1, Bird_keeperVance1SeenText, Bird_keeperVance1BeatenText, 0, Bird_keeperVance1Script
2015-07-10 08:20:21 +00:00
Bird_keeperVance1Script:
writecode VAR_CALLERID, PHONE_BIRDKEEPER_VANCE
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_VANCE
iftrue UnknownScript_0x19d86a
checkcellnum PHONE_BIRDKEEPER_VANCE
iftrue UnknownScript_0x19d8eb
checkevent EVENT_VANCE_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19d853
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x19dbf3
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_VANCE_ASKED_FOR_PHONE_NUMBER
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d8df
jump UnknownScript_0x19d856
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d853:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d8e3
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d856:
askforphonenumber PHONE_BIRDKEEPER_VANCE
if_equal $1, UnknownScript_0x19d8f3
if_equal $2, UnknownScript_0x19d8ef
trainertotext BIRD_KEEPER, VANCE1, $0
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d8e7
jump UnknownScript_0x19d8eb
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d86a:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d8f7
2015-11-02 19:37:02 +00:00
winlosstext Bird_keeperVance1BeatenText, 0
2015-07-10 20:04:00 +00:00
copybytetovar wVanceFightCount
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight2:
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight2
.Fight1:
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight1
.LoadFight0:
loadtrainer BIRD_KEEPER, VANCE1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wVanceFightCount, 1
clearflag ENGINE_VANCE
end
.LoadFight1:
loadtrainer BIRD_KEEPER, VANCE2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wVanceFightCount, 2
clearflag ENGINE_VANCE
end
.LoadFight2:
loadtrainer BIRD_KEEPER, VANCE3
startbattle
reloadmapafterbattle
clearflag ENGINE_VANCE
2013-09-24 07:48:58 +00:00
checkevent EVENT_VANCE_CARBOS
iftrue UnknownScript_0x19d8cb
checkevent EVENT_GOT_CARBOS_FROM_VANCE
iftrue UnknownScript_0x19d8ca
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d90a
2015-11-05 01:20:14 +00:00
verbosegiveitem CARBOS
iffalse UnknownScript_0x19d903
setevent EVENT_GOT_CARBOS_FROM_VANCE
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x19d8eb
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8ca:
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8cb:
2015-12-09 23:25:44 +00:00
opentext
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x19dc67
2015-11-25 15:16:29 +00:00
waitbutton
2015-11-05 01:20:14 +00:00
verbosegiveitem CARBOS
iffalse UnknownScript_0x19d903
2013-09-24 07:48:58 +00:00
clearevent EVENT_VANCE_CARBOS
setevent EVENT_GOT_CARBOS_FROM_VANCE
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x19d8eb
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8df:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8e3:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8e7:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8eb:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8ef:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8f3:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8f7:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8fb:
2015-06-25 01:26:24 +00:00
jumpstd giftm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d8ff:
2015-06-25 01:26:24 +00:00
jumpstd packfullm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d903:
2013-09-24 07:48:58 +00:00
setevent EVENT_VANCE_CARBOS
2015-06-25 01:26:24 +00:00
jumpstd packfullm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d90a:
2015-06-25 01:26:24 +00:00
jumpstd rematchgiftm
end
2015-07-10 08:20:21 +00:00
TrainerPsychicPhil:
2015-11-02 19:37:02 +00:00
trainer EVENT_BEAT_PSYCHIC_PHIL, PSYCHIC_T, PHIL, PsychicPhilSeenText, PsychicPhilBeatenText, 0, PsychicPhilScript
2015-07-10 08:20:21 +00:00
PsychicPhilScript:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext PsychicPhilAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerFisherWilton1:
2015-11-02 19:37:02 +00:00
trainer EVENT_BEAT_FISHER_WILTON, FISHER, WILTON1, FisherWilton1SeenText, FisherWilton1BeatenText, 0, FisherWilton1Script
2015-07-10 08:20:21 +00:00
FisherWilton1Script:
writecode VAR_CALLERID, PHONE_FISHER_WILTON
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_WILTON
iftrue UnknownScript_0x19d96e
checkflag ENGINE_WILTON_HAS_ITEM
iftrue UnknownScript_0x19d9b4
checkcellnum PHONE_FISHER_WILTON
iftrue UnknownScript_0x19d8eb
checkevent EVENT_WILTON_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x19d957
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x19daa8
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_WILTON_ASKED_FOR_PHONE_NUMBER
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d8df
jump UnknownScript_0x19d95a
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d957:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d8e3
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d95a:
askforphonenumber PHONE_FISHER_WILTON
if_equal $1, UnknownScript_0x19d8f3
if_equal $2, UnknownScript_0x19d8ef
trainertotext FISHER, WILTON1, $0
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d8e7
jump UnknownScript_0x19d8eb
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d96e:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d8f7
2015-11-02 19:37:02 +00:00
winlosstext FisherWilton1BeatenText, 0
2015-07-10 20:04:00 +00:00
copybytetovar wWiltonFightCount
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight2:
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight2
.Fight1:
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight1
.LoadFight0:
loadtrainer FISHER, WILTON1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wWiltonFightCount, 1
clearflag ENGINE_WILTON
end
.LoadFight1:
loadtrainer FISHER, WILTON2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wWiltonFightCount, 2
clearflag ENGINE_WILTON
end
.LoadFight2:
loadtrainer FISHER, WILTON3
startbattle
reloadmapafterbattle
clearflag ENGINE_WILTON
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d9b4:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x19d8fb
2013-09-24 07:48:58 +00:00
checkevent EVENT_WILTON_HAS_ULTRA_BALL
iftrue UnknownScript_0x19d9c9
2013-09-24 07:48:58 +00:00
checkevent EVENT_WILTON_HAS_GREAT_BALL
iftrue UnknownScript_0x19d9d2
2013-09-24 07:48:58 +00:00
checkevent EVENT_WILTON_HAS_POKE_BALL
iftrue UnknownScript_0x19d9db
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d9c9:
2015-11-05 01:20:14 +00:00
verbosegiveitem ULTRA_BALL
iffalse UnknownScript_0x19d9e7
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x19d9e1
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d9d2:
2015-11-05 01:20:14 +00:00
verbosegiveitem GREAT_BALL
iffalse UnknownScript_0x19d9e7
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x19d9e1
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d9db:
2015-11-05 01:20:14 +00:00
verbosegiveitem POKE_BALL
iffalse UnknownScript_0x19d9e7
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d9e1:
clearflag ENGINE_WILTON_HAS_ITEM
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x19d8eb
2015-07-10 08:20:21 +00:00
UnknownScript_0x19d9e7:
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x19d8ff
2015-07-10 08:20:21 +00:00
TrainerFisherEdgar:
2015-11-02 19:37:02 +00:00
trainer EVENT_BEAT_FISHER_EDGAR, FISHER, EDGAR, FisherEdgarSeenText, FisherEdgarBeatenText, 0, FisherEdgarScript
2015-07-10 08:20:21 +00:00
FisherEdgarScript:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext FisherEdgarAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainerfCybil:
2015-11-02 19:37:02 +00:00
trainer EVENT_BEAT_COOLTRAINERF_CYBIL, COOLTRAINERF, CYBIL, CooltrainerfCybilSeenText, CooltrainerfCybilBeatenText, 0, CooltrainerfCybilScript
2015-07-10 08:20:21 +00:00
CooltrainerfCybilScript:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext CooltrainerfCybilAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerPokemaniacZach:
2015-11-02 19:37:02 +00:00
trainer EVENT_BEAT_POKEMANIAC_ZACH, POKEMANIAC, ZACH, PokemaniacZachSeenText, PokemaniacZachBeatenText, 0, PokemaniacZachScript
2015-07-10 08:20:21 +00:00
PokemaniacZachScript:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext PokemaniacZachAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainermAllen:
2015-11-02 19:37:02 +00:00
trainer EVENT_BEAT_COOLTRAINERM_ALLEN, COOLTRAINERM, ALLEN, CooltrainermAllenSeenText, CooltrainermAllenBeatenText, 0, CooltrainermAllenScript
2015-07-10 08:20:21 +00:00
CooltrainermAllenScript:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext CooltrainermAllenAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2016-04-07 04:59:45 +00:00
Route44Sign1:
jumptext Route44Sign1Text
2016-04-07 04:59:45 +00:00
Route44Sign2:
jumptext Route44Sign2Text
2015-07-10 08:20:21 +00:00
FruitTreeScript_0x19da40:
2015-11-18 15:42:42 +00:00
fruittree FRUITTREE_ROUTE_44
2015-12-15 15:55:56 +00:00
Route44MaxRevive:
itemball MAX_REVIVE
2015-12-15 15:55:56 +00:00
Route44UltraBall:
itemball ULTRA_BALL
2015-12-15 15:55:56 +00:00
Route44MaxRepel:
itemball MAX_REPEL
Route44HiddenElixer:
dwb EVENT_ROUTE_44_HIDDEN_ELIXER, ELIXER
2015-07-10 08:20:21 +00:00
FisherWilton1SeenText:
text "Aack! You made me"
line "lose a POLIWAG!"
para "What are you going"
line "to do about it?"
done
2015-07-10 08:20:21 +00:00
FisherWilton1BeatenText:
text "Just forget about"
line "it."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x19daa8:
text "That POLIWAG that"
line "got away…"
cont "It was huge."
para "I swear it must've"
line "been 16 feet long!"
done
2015-07-10 08:20:21 +00:00
FisherEdgarSeenText:
text "I fish until I"
line "can't anymore."
para "I also battle"
line "until I drop."
para "That's my"
line "relationship"
cont "with my #MON."
done
2015-07-10 08:20:21 +00:00
FisherEdgarBeatenText:
text "Hmmmm… "
line "This isn't right."
done
2017-12-10 20:36:58 +00:00
FisherEdgarAfterBattleText:
text "That's 100 wins"
line "to 101 losses."
para "I won't battle"
line "again for a while."
done
2015-07-10 08:20:21 +00:00
Bird_keeperVance1SeenText:
text "Do you know about"
line "the legendary bird"
cont "#MON?"
done
2015-07-10 08:20:21 +00:00
Bird_keeperVance1BeatenText:
text "Whew! You're hot"
line "stuff."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x19dbf3:
text "ARTICUNO, ZAPDOS"
line "and MOLTRES are"
para "the three legend-"
line "ary bird #MON."
para "I heard there are"
line "other legendary"
cont "birds, though."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x19dc67:
text "Why can't I ever"
line "beat you?"
para "Oh yeah, here you"
line "go. It's that gift"
para "I couldn't give"
line "you last time."
done
2015-07-10 08:20:21 +00:00
PsychicPhilSeenText:
text "I'm gonna win,"
line "for sure!"
done
2015-07-10 08:20:21 +00:00
PsychicPhilBeatenText:
text "Arrgh… That's a"
line "shocking loss…"
done
2017-12-10 20:36:58 +00:00
PsychicPhilAfterBattleText:
text "It's important to"
line "have conviction"
cont "on your side."
done
2015-07-10 08:20:21 +00:00
PokemaniacZachSeenText:
text "I'll do anything"
line "to get my hands on"
cont "rare #MON!"
done
2015-07-10 08:20:21 +00:00
PokemaniacZachBeatenText:
text "Oooh, your #MON"
line "are so appealing."
done
2017-12-10 20:36:58 +00:00
PokemaniacZachAfterBattleText:
text "If a #MON has"
line "different colors"
para "from usual, it's"
line "more valuable."
para "What? You mean"
line "that's not true?"
done
2015-07-10 08:20:21 +00:00
CooltrainermAllenSeenText:
text "I can tell you're"
line "a good trainer by"
cont "looking at you."
para "I'm good at #-"
line "MON, and I can see"
cont "that you are too."
done
2015-07-10 08:20:21 +00:00
CooltrainermAllenBeatenText:
text "Tch! It's a total"
line "loss on my part."
done
2017-12-10 20:36:58 +00:00
CooltrainermAllenAfterBattleText:
text "Wow. You have a"
line "lot of BADGES."
para "No wonder you're"
line "so tough."
para "I wonder if"
line "ECRUTEAK GYM's"
para "MORTY is still in"
line "training?"
para "He really hammered"
line "me."
done
2015-07-10 08:20:21 +00:00
CooltrainerfCybilSeenText:
text "You look strong."
para "Good trainers seek"
line "tough opponents"
cont "instinctively."
done
2015-07-10 08:20:21 +00:00
CooltrainerfCybilBeatenText:
text "Nope! This won't"
line "do at all."
done
2017-12-10 20:36:58 +00:00
CooltrainerfCybilAfterBattleText:
text "We all get better"
line "by experiencing"
cont "many battles."
para "I battled a lot to"
line "become what I am"
cont "today--an elite."
done
2016-04-07 04:59:45 +00:00
Route44Sign1Text:
text "ROUTE 44"
line "ICE PATH AHEAD"
done
2016-04-07 04:59:45 +00:00
Route44Sign2Text:
text "ROUTE 44"
para "MAHOGANY TOWN -"
line "BLACKTHORN CITY"
done
2015-07-10 08:20:21 +00:00
Route44_MapEventHeader:
; filler
db 0, 0
.Warps:
db 1
warp_def $7, $38, 1, ICE_PATH_1F
.XYTriggers:
db 0
.Signposts:
db 3
2016-04-07 04:59:45 +00:00
signpost 7, 53, SIGNPOST_READ, Route44Sign1
signpost 10, 6, SIGNPOST_READ, Route44Sign2
signpost 9, 32, SIGNPOST_ITEM, Route44HiddenElixer
.PersonEvents:
db 11
2017-12-11 01:50:08 +00:00
person_event SPRITE_FISHER, 3, 35, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_TRAINER, 1, TrainerFisherWilton1, -1
person_event SPRITE_FISHER, 13, 19, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_TRAINER, 1, TrainerFisherEdgar, -1
person_event SPRITE_YOUNGSTER, 9, 10, SPRITEMOVEDATA_SPINCLOCKWISE, 0, 0, -1, -1, PAL_NPC_BLUE, PERSONTYPE_TRAINER, 3, TrainerPsychicPhil, -1
person_event SPRITE_SUPER_NERD, 2, 43, SPRITEMOVEDATA_SPINCLOCKWISE, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_TRAINER, 3, TrainerPokemaniacZach, -1
person_event SPRITE_YOUNGSTER, 5, 51, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_TRAINER, 2, TrainerBird_keeperVance1, -1
person_event SPRITE_COOLTRAINER_M, 15, 41, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, PERSONTYPE_TRAINER, 5, TrainerCooltrainermAllen, -1
person_event SPRITE_COOLTRAINER_F, 14, 31, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, PERSONTYPE_TRAINER, 5, TrainerCooltrainerfCybil, -1
person_event SPRITE_FRUIT_TREE, 5, 9, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, FruitTreeScript_0x19da40, -1
2015-12-15 15:55:56 +00:00
person_event SPRITE_POKE_BALL, 8, 30, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMBALL, 0, Route44MaxRevive, EVENT_ROUTE_44_MAX_REVIVE
person_event SPRITE_POKE_BALL, 4, 45, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMBALL, 0, Route44UltraBall, EVENT_ROUTE_44_ULTRA_BALL
person_event SPRITE_POKE_BALL, 9, 14, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMBALL, 0, Route44MaxRepel, EVENT_ROUTE_44_MAX_REPEL