pokecrystal/maps/Route38.asm

494 lines
9.6 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 ROUTE38_STANDING_YOUNGSTER1
const ROUTE38_LASS
const ROUTE38_STANDING_YOUNGSTER2
const ROUTE38_BUENA1
const ROUTE38_SAILOR
const ROUTE38_FRUIT_TREE
const ROUTE38_BUENA2
Route38_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TrainerBirdKeeperToby:
trainer BIRD_KEEPER, TOBY, EVENT_BEAT_BIRD_KEEPER_TOBY, BirdKeeperTobySeenText, BirdKeeperTobyBeatenText, 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 BirdKeeperTobyAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerSailorHarry:
trainer SAILOR, HARRY, EVENT_BEAT_SAILOR_HARRY, SailorHarrySeenText, SailorHarryBeatenText, 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-18 01:45:04 +00:00
writetext SailorHarryAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerLassDana1:
trainer LASS, DANA1, EVENT_BEAT_LASS_DANA, LassDana1SeenText, LassDana1BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script
writecode VAR_CALLERID, PHONE_LASS_DANA
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_DANA
iftrue .DanaRematch
checkflag ENGINE_DANA_HAS_THUNDERSTONE
iftrue .TryGiveThunderstone
checkcellnum PHONE_LASS_DANA
iftrue .NumberAccepted
checkevent EVENT_DANA_ASKED_FOR_PHONE_NUMBER
iftrue .SecondTimeAsking
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a20ec
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_DANA_ASKED_FOR_PHONE_NUMBER
scall .AskNumber1F
jump .AskForPhoneNumber
.SecondTimeAsking:
scall .AskNumber2F
.AskForPhoneNumber:
askforphonenumber PHONE_LASS_DANA
2018-02-03 02:09:17 +00:00
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .DeclinedPhoneNumber
2018-01-12 06:40:20 +00:00
trainertotext LASS, DANA1, MEM_BUFFER_0
scall .RegisteredPhoneNumber
jump .NumberAccepted
.DanaRematch:
scall .Rematch
2015-11-02 19:37:02 +00:00
winlosstext LassDana1BeatenText, 0
2015-07-10 20:04:00 +00:00
copybytetovar wDanaFightCount
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:
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight2
.Fight1:
checkflag ENGINE_FLYPOINT_CIANWOOD
iftrue .LoadFight1
.LoadFight0:
loadtrainer LASS, DANA1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wDanaFightCount, 1
clearflag ENGINE_DANA
end
.LoadFight1:
loadtrainer LASS, DANA2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wDanaFightCount, 2
clearflag ENGINE_DANA
end
.LoadFight2:
loadtrainer LASS, DANA3
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wDanaFightCount, 3
clearflag ENGINE_DANA
end
.LoadFight3:
loadtrainer LASS, DANA4
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wDanaFightCount, 4
clearflag ENGINE_DANA
end
.LoadFight4:
loadtrainer LASS, DANA5
startbattle
reloadmapafterbattle
clearflag ENGINE_DANA
end
.TryGiveThunderstone:
scall .Gift
2015-11-05 01:20:14 +00:00
verbosegiveitem THUNDERSTONE
iffalse .NoRoomForThunderstone
clearflag ENGINE_DANA_HAS_THUNDERSTONE
setevent EVENT_DANA_GAVE_THUNDERSTONE
jump .NumberAccepted
.NoRoomForThunderstone:
jump .PackFull
.AskNumber1F:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1f
end
.AskNumber2F:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2f
end
.RegisteredPhoneNumber:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberf
end
.NumberAccepted:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedf
end
.DeclinedPhoneNumber:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedf
end
.PhoneFull:
2015-06-25 01:26:24 +00:00
jumpstd phonefullf
end
.Rematch:
2015-06-25 01:26:24 +00:00
jumpstd rematchf
end
.Gift:
2015-06-25 01:26:24 +00:00
jumpstd giftf
end
.PackFull:
2015-06-25 01:26:24 +00:00
jumpstd packfullf
end
2015-07-10 08:20:21 +00:00
TrainerSchoolboyChad1:
trainer SCHOOLBOY, CHAD1, EVENT_BEAT_SCHOOLBOY_CHAD, SchoolboyChad1SeenText, SchoolboyChad1BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script
writecode VAR_CALLERID, PHONE_SCHOOLBOY_CHAD
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_CHAD
iftrue .ChadRematch
checkcellnum PHONE_SCHOOLBOY_CHAD
iftrue .HaveChadsNumber
checkevent EVENT_CHAD_ASKED_FOR_PHONE_NUMBER
iftrue .SecondTimeAsking
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x1a200e
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_CHAD_ASKED_FOR_PHONE_NUMBER
scall .AskPhoneNumber1
jump .AskToRegisterNumber
.SecondTimeAsking:
scall .AskPhoneNumber2
.AskToRegisterNumber:
askforphonenumber PHONE_SCHOOLBOY_CHAD
2018-02-03 02:09:17 +00:00
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .SaidNo
2018-01-12 06:40:20 +00:00
trainertotext SCHOOLBOY, CHAD1, MEM_BUFFER_0
scall .RegisteredChad
jump .HaveChadsNumber
.ChadRematch:
scall .Rematch
2015-11-02 19:37:02 +00:00
winlosstext SchoolboyChad1BeatenText, 0
2015-07-10 20:04:00 +00:00
copybytetovar wChadFightCount
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:
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight2
.Fight1:
checkflag ENGINE_FLYPOINT_MAHOGANY
iftrue .LoadFight1
.LoadFight0:
loadtrainer SCHOOLBOY, CHAD1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wChadFightCount, 1
clearflag ENGINE_CHAD
end
.LoadFight1:
loadtrainer SCHOOLBOY, CHAD2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wChadFightCount, 2
clearflag ENGINE_CHAD
end
.LoadFight2:
loadtrainer SCHOOLBOY, CHAD3
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wChadFightCount, 3
clearflag ENGINE_CHAD
end
.LoadFight3:
loadtrainer SCHOOLBOY, CHAD4
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wChadFightCount, 4
clearflag ENGINE_CHAD
end
.LoadFight4:
loadtrainer SCHOOLBOY, CHAD5
startbattle
reloadmapafterbattle
clearflag ENGINE_CHAD
end
.AskPhoneNumber1:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
.AskPhoneNumber2:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
.RegisteredChad:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
.HaveChadsNumber:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
.SaidNo:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
.PhoneFull:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
.Rematch:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2015-07-10 08:20:21 +00:00
TrainerBeautyValerie:
trainer BEAUTY, VALERIE, EVENT_BEAT_BEAUTY_VALERIE, BeautyValerieSeenText, BeautyValerieBeatenText, 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-18 01:45:04 +00:00
writetext BeautyValerieAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerBeautyOlivia:
trainer BEAUTY, OLIVIA, EVENT_BEAT_BEAUTY_OLIVIA, BeautyOliviaSeenText, BeautyOliviaBeatenText, 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-18 01:45:04 +00:00
writetext BeautyOliviaAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2016-04-07 04:59:45 +00:00
Route38Sign:
jumptext Route38SignText
2016-04-07 04:59:45 +00:00
Route38TrainerTips:
jumptext Route38TrainerTipsText
2018-02-28 21:50:43 +00:00
Route38FruitTree:
2015-11-18 15:42:42 +00:00
fruittree FRUITTREE_ROUTE_38
BirdKeeperTobySeenText:
text "Fly high into the"
line "sky, my beloved"
cont "bird #MON!"
done
BirdKeeperTobyBeatenText:
text "I feel like just"
line "flying away now."
done
BirdKeeperTobyAfterBattleText:
text "I plan to train in"
line "CIANWOOD CITY to"
para "teach my #MON"
line "how to FLY."
done
2015-07-10 08:20:21 +00:00
SchoolboyChad1SeenText:
text "Let me try some-"
line "thing I learned"
cont "today."
done
2015-07-10 08:20:21 +00:00
SchoolboyChad1BeatenText:
text "I didn't study"
line "enough, I guess."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a200e:
text "I have to take so"
line "many tests, I"
para "don't have much"
line "time for #MON."
para "So when I do get"
line "to play, I really"
cont "concentrate."
done
2015-07-10 08:20:21 +00:00
LassDana1SeenText:
text "You seem to be"
line "good at #MON."
para "If you are, how"
line "about giving me"
cont "some advice?"
done
2015-07-10 08:20:21 +00:00
LassDana1BeatenText:
text "I see. So you can"
line "battle that way."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x1a20ec:
text "I know something"
line "good!"
para "MOOMOO FARM's milk"
line "is famous for its"
cont "flavor."
done
2015-07-10 08:20:21 +00:00
BeautyValerieSeenText:
text "Hi! Aren't you a"
line "cute trainer!"
para "May I see your"
line "#MON?"
done
2015-07-10 08:20:21 +00:00
BeautyValerieBeatenText:
text "I'm glad I got to"
line "see your #MON!"
done
2017-12-18 01:45:04 +00:00
BeautyValerieAfterBattleText:
text "When I see #-"
line "MON, it seems to"
cont "soothe my nerves."
done
2015-07-10 08:20:21 +00:00
SailorHarrySeenText:
text "I've been over-"
line "seas, so I know"
para "about all sorts of"
line "#MON!"
done
2015-07-10 08:20:21 +00:00
SailorHarryBeatenText:
text "Your skill is"
line "world class!"
done
2017-12-18 01:45:04 +00:00
SailorHarryAfterBattleText:
text "All kinds of peo-"
line "ple around the"
para "world live happily"
line "with #MON."
done
2015-07-10 08:20:21 +00:00
BeautyOliviaSeenText:
text "Don't you think my"
line "#MON and I are"
cont "beautiful?"
done
2015-07-10 08:20:21 +00:00
BeautyOliviaBeatenText:
text "We drink MOOMOO"
line "MILK every day."
done
2017-12-18 01:45:04 +00:00
BeautyOliviaAfterBattleText:
text "MOOMOO MILK is"
line "good for beauty"
para "and health, but"
line "inconveniently,"
para "they only sell a"
line "bottle at a time."
done
2016-04-07 04:59:45 +00:00
Route38SignText:
text "ROUTE 38"
para "OLIVINE CITY -"
line "ECRUTEAK CITY"
done
2016-04-07 04:59:45 +00:00
Route38TrainerTipsText:
text "TRAINER TIPS"
para "If a #MON is"
line "trying to evolve,"
cont "you can stop it."
para "Press the B But-"
line "ton during evolu-"
cont "tion."
para "That startles the"
line "#MON and stops"
cont "its evolution."
done
Route38_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 35, 8, ROUTE_38_ECRUTEAK_GATE, 1
warp_event 35, 9, ROUTE_38_ECRUTEAK_GATE, 2
db 0 ; coord events
db 2 ; bg events
2018-02-02 03:22:07 +00:00
bg_event 33, 7, BGEVENT_READ, Route38Sign
bg_event 5, 13, BGEVENT_READ, Route38TrainerTips
db 7 ; object events
2018-02-02 03:22:07 +00:00
object_event 4, 1, SPRITE_STANDING_YOUNGSTER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerSchoolboyChad1, -1
object_event 15, 3, SPRITE_LASS, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 2, TrainerLassDana1, -1
object_event 12, 15, SPRITE_STANDING_YOUNGSTER, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerBirdKeeperToby, -1
2018-02-02 03:22:07 +00:00
object_event 19, 9, SPRITE_BUENA, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerBeautyValerie, -1
object_event 24, 5, SPRITE_SAILOR, SPRITEMOVEDATA_SPINCOUNTERCLOCKWISE, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 2, TrainerSailorHarry, -1
2018-02-28 21:50:43 +00:00
object_event 12, 10, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route38FruitTree, -1
2018-02-02 03:22:07 +00:00
object_event 5, 8, SPRITE_BUENA, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerBeautyOlivia, -1