pokecrystal/maps/Route27.asm

493 lines
11 KiB
NASM
Raw Normal View History

object_const_def
2015-11-27 05:22:14 +00:00
const ROUTE27_COOLTRAINER_M1
const ROUTE27_COOLTRAINER_M2
const ROUTE27_COOLTRAINER_F1
const ROUTE27_COOLTRAINER_F2
const ROUTE27_YOUNGSTER1
const ROUTE27_YOUNGSTER2
const ROUTE27_POKE_BALL1
const ROUTE27_POKE_BALL2
const ROUTE27_FISHER
Route27_MapScripts:
def_scene_scripts
scene_script Route27Noop1Scene, SCENE_ROUTE27_FIRST_STEP_INTO_KANTO
scene_script Route27Noop2Scene, SCENE_ROUTE27_NOOP
def_callbacks
Route27Noop1Scene:
end
Route27Noop2Scene:
end
2018-02-28 22:47:31 +00:00
FirstStepIntoKantoLeftScene:
turnobject ROUTE27_FISHER, LEFT
2015-11-27 05:22:14 +00:00
showemote EMOTE_SHOCK, ROUTE27_FISHER, 15
2020-06-22 20:30:13 +00:00
applymovement ROUTE27_FISHER, Route27FisherStepLeftTwiceMovement
sjump FirstStepIntoKantoScene_Continue
2018-02-28 22:47:31 +00:00
FirstStepIntoKantoRightScene:
turnobject ROUTE27_FISHER, LEFT
2015-11-27 05:22:14 +00:00
showemote EMOTE_SHOCK, ROUTE27_FISHER, 15
2020-06-22 20:30:13 +00:00
applymovement ROUTE27_FISHER, Route27FisherStepLeftOnceMovement
2018-02-28 22:47:31 +00:00
FirstStepIntoKantoScene_Continue:
turnobject PLAYER, RIGHT
2015-12-09 23:25:44 +00:00
opentext
2018-01-16 18:26:13 +00:00
writetext Route27FisherHeyText
2019-11-03 17:48:54 +00:00
promptbutton
2017-12-18 00:48:04 +00:00
writetext Route27FisherText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
setscene SCENE_ROUTE27_NOOP
end
2017-12-18 00:48:04 +00:00
Route27FisherScript:
jumptextfaceplayer Route27FisherText
2015-07-10 08:20:21 +00:00
TrainerPsychicGilbert:
trainer PSYCHIC_T, GILBERT, EVENT_BEAT_PSYCHIC_GILBERT, PsychicGilbertSeenText, PsychicGilbertBeatenText, 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 PsychicGilbertAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
TrainerBirdKeeperJose2:
trainer BIRD_KEEPER, JOSE2, EVENT_BEAT_BIRD_KEEPER_JOSE2, BirdKeeperJose2SeenText, BirdKeeperJose2BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
loadvar VAR_CALLERID, PHONE_BIRDKEEPER_JOSE
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_JOSE_READY_FOR_REMATCH
2018-01-16 18:26:13 +00:00
iftrue .WantsBattle
checkflag ENGINE_JOSE_HAS_STAR_PIECE
2018-01-16 18:26:13 +00:00
iftrue .HasStarPiece
checkcellnum PHONE_BIRDKEEPER_JOSE
2018-01-16 18:26:13 +00:00
iftrue .NumberAccepted
checkevent EVENT_JOSE_ASKED_FOR_PHONE_NUMBER
2018-01-16 18:26:13 +00:00
iftrue .AskedAlready
writetext BirdKeeperJose2AfterBattleText
2019-11-03 17:48:54 +00:00
promptbutton
setevent EVENT_JOSE_ASKED_FOR_PHONE_NUMBER
2018-01-16 18:26:13 +00:00
scall .AskNumber1
sjump .AskForNumber
2018-01-16 18:26:13 +00:00
.AskedAlready:
scall .AskNumber2
.AskForNumber:
askforphonenumber PHONE_BIRDKEEPER_JOSE
2018-02-03 02:09:17 +00:00
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
gettrainername STRING_BUFFER_3, BIRD_KEEPER, JOSE2
2018-01-16 18:26:13 +00:00
scall .RegisteredNumber
sjump .NumberAccepted
2018-01-16 18:26:13 +00:00
.WantsBattle:
scall .Rematch
winlosstext BirdKeeperJose2BeatenText, 0
readmem wJoseFightCount
2018-02-03 02:09:17 +00:00
ifequal 2, .Fight2
ifequal 1, .Fight1
ifequal 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, JOSE2
startbattle
reloadmapafterbattle
loadmem wJoseFightCount, 1
clearflag ENGINE_JOSE_READY_FOR_REMATCH
end
.LoadFight1:
loadtrainer BIRD_KEEPER, JOSE1
startbattle
reloadmapafterbattle
loadmem wJoseFightCount, 2
clearflag ENGINE_JOSE_READY_FOR_REMATCH
end
.LoadFight2:
loadtrainer BIRD_KEEPER, JOSE3
startbattle
reloadmapafterbattle
clearflag ENGINE_JOSE_READY_FOR_REMATCH
end
2018-01-16 18:26:13 +00:00
.HasStarPiece:
scall .Gift
2015-11-05 01:20:14 +00:00
verbosegiveitem STAR_PIECE
2018-01-16 18:26:13 +00:00
iffalse .NoRoom
clearflag ENGINE_JOSE_HAS_STAR_PIECE
sjump .NumberAccepted
2018-01-16 18:26:13 +00:00
.NoRoom:
sjump .PackFull
2018-01-16 18:26:13 +00:00
.AskNumber1:
jumpstd AskNumber1MScript
end
2018-01-16 18:26:13 +00:00
.AskNumber2:
jumpstd AskNumber2MScript
end
2018-01-16 18:26:13 +00:00
.RegisteredNumber:
jumpstd RegisteredNumberMScript
end
2018-01-16 18:26:13 +00:00
.NumberAccepted:
jumpstd NumberAcceptedMScript
end
2018-01-16 18:26:13 +00:00
.NumberDeclined:
jumpstd NumberDeclinedMScript
end
2018-01-16 18:26:13 +00:00
.PhoneFull:
jumpstd PhoneFullMScript
end
2018-01-16 18:26:13 +00:00
.Rematch:
jumpstd RematchMScript
end
2018-01-16 18:26:13 +00:00
.Gift:
jumpstd GiftMScript
end
2018-01-16 18:26:13 +00:00
.PackFull:
jumpstd PackFullMScript
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainermBlake:
trainer COOLTRAINERM, BLAKE, EVENT_BEAT_COOLTRAINERM_BLAKE, CooltrainermBlakeSeenText, CooltrainermBlakeBeatenText, 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 CooltrainermBlakeAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainermBrian:
trainer COOLTRAINERM, BRIAN, EVENT_BEAT_COOLTRAINERM_BRIAN, CooltrainermBrianSeenText, CooltrainermBrianBeatenText, 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 CooltrainermBrianAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainerfReena:
trainer COOLTRAINERF, REENA1, EVENT_BEAT_COOLTRAINERF_REENA, CooltrainerfReenaSeenText, CooltrainerfReenaBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
loadvar VAR_CALLERID, PHONE_COOLTRAINERF_REENA
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_REENA_READY_FOR_REMATCH
2018-01-16 18:26:13 +00:00
iftrue .WantsBattle
checkcellnum PHONE_COOLTRAINERF_REENA
2018-01-16 18:26:13 +00:00
iftrue .NumberAccepted
checkevent EVENT_REENA_ASKED_FOR_PHONE_NUMBER
2018-01-16 18:26:13 +00:00
iftrue .AskedAlready
writetext CooltrainerfReenaAfterBattleText
2019-11-03 17:48:54 +00:00
promptbutton
setevent EVENT_REENA_ASKED_FOR_PHONE_NUMBER
2018-01-16 18:26:13 +00:00
scall .AskNumber1
sjump .AskForNumber
2018-01-16 18:26:13 +00:00
.AskedAlready:
scall .AskNumber2
.AskForNumber:
askforphonenumber PHONE_COOLTRAINERF_REENA
2018-02-03 02:09:17 +00:00
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
gettrainername STRING_BUFFER_3, COOLTRAINERF, REENA1
2018-01-16 18:26:13 +00:00
scall .RegisteredNumber
sjump .NumberAccepted
2018-01-16 18:26:13 +00:00
.WantsBattle:
scall .Rematch
winlosstext CooltrainerfReenaBeatenText, 0
readmem wReenaFightCount
2018-02-03 02:09:17 +00:00
ifequal 2, .Fight2
ifequal 1, .Fight1
ifequal 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 COOLTRAINERF, REENA1
startbattle
reloadmapafterbattle
loadmem wReenaFightCount, 1
clearflag ENGINE_REENA_READY_FOR_REMATCH
end
.LoadFight1:
loadtrainer COOLTRAINERF, REENA2
startbattle
reloadmapafterbattle
loadmem wReenaFightCount, 2
clearflag ENGINE_REENA_READY_FOR_REMATCH
end
.LoadFight2:
loadtrainer COOLTRAINERF, REENA3
startbattle
reloadmapafterbattle
clearflag ENGINE_REENA_READY_FOR_REMATCH
end
2018-01-16 18:26:13 +00:00
.AskNumber1:
jumpstd AskNumber1FScript
end
2018-01-16 18:26:13 +00:00
.AskNumber2:
jumpstd AskNumber2FScript
end
2018-01-16 18:26:13 +00:00
.RegisteredNumber:
jumpstd RegisteredNumberFScript
end
2018-01-16 18:26:13 +00:00
.NumberAccepted:
jumpstd NumberAcceptedFScript
end
2018-01-16 18:26:13 +00:00
.NumberDeclined:
jumpstd NumberDeclinedFScript
end
2018-01-16 18:26:13 +00:00
.PhoneFull:
jumpstd PhoneFullFScript
end
2018-01-16 18:26:13 +00:00
.Rematch:
jumpstd RematchFScript
end
2015-07-10 08:20:21 +00:00
TrainerCooltrainerfMegan:
trainer COOLTRAINERF, MEGAN, EVENT_BEAT_COOLTRAINERF_MEGAN, CooltrainerfMeganSeenText, CooltrainerfMeganBeatenText, 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 CooltrainerfMeganAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2016-04-07 04:59:45 +00:00
TohjoFallsSign:
jumptext TohjoFallsSignText
2015-12-15 15:55:56 +00:00
Route27TMSolarbeam:
itemball TM_SOLARBEAM
2015-12-15 15:55:56 +00:00
Route27RareCandy:
itemball RARE_CANDY
2020-06-22 20:30:13 +00:00
Route27FisherStepLeftTwiceMovement:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step_end
2020-06-22 20:30:13 +00:00
Route27FisherStepLeftOnceMovement:
2016-05-14 17:46:14 +00:00
step LEFT
step_end
2018-01-16 18:26:13 +00:00
Route27FisherHeyText:
text "Hey!"
done
2017-12-18 00:48:04 +00:00
Route27FisherText:
text "Do you know what"
line "you just did?"
para "You've taken your"
line "first step into"
cont "KANTO."
para "Check your #-"
line "GEAR MAP and see."
done
2015-07-10 08:20:21 +00:00
CooltrainermBlakeSeenText:
text "You look pretty"
line "strong."
cont "Let me battle you!"
done
2015-07-10 08:20:21 +00:00
CooltrainermBlakeBeatenText:
text "Yow!"
done
2017-12-10 20:36:58 +00:00
CooltrainermBlakeAfterBattleText:
text "If you prevail on"
line "this harsh trek,"
para "the truth will be"
line "revealed!"
para "Heh, sorry, I just"
line "wanted to say"
cont "something cool."
done
2015-07-10 08:20:21 +00:00
CooltrainermBrianSeenText:
text "Hm? You're good,"
line "aren't you?"
done
2015-07-10 08:20:21 +00:00
CooltrainermBrianBeatenText:
text "Just as I thought!"
done
2017-12-10 20:36:58 +00:00
CooltrainermBrianAfterBattleText:
text "A good trainer can"
line "recognize other"
cont "good trainers."
done
2018-01-16 18:26:13 +00:00
CooltrainerfReenaSeenText:
text "You shouldn't"
line "underestimate the"
para "wild #MON in"
line "these parts."
done
2018-01-16 18:26:13 +00:00
CooltrainerfReenaBeatenText:
text "Oh! You're much"
line "too strong!"
done
2018-01-16 18:26:13 +00:00
CooltrainerfReenaAfterBattleText:
text "You're just a kid,"
line "but you're not to"
para "be underestimated"
line "either."
done
2015-07-10 08:20:21 +00:00
CooltrainerfMeganSeenText:
text "It's rare to see"
line "anyone come here."
para "Are you training"
line "on your own?"
done
2015-07-10 08:20:21 +00:00
CooltrainerfMeganBeatenText:
text "Oh! You're really"
line "strong!"
done
2017-12-10 20:36:58 +00:00
CooltrainerfMeganAfterBattleText:
text "I'm checking out"
line "pre- and post-"
cont "evolution #MON."
para "Evolution really"
line "does make #MON"
cont "stronger."
para "But evolved forms"
line "also learn moves"
cont "later on."
done
2015-07-10 08:20:21 +00:00
PsychicGilbertSeenText:
text "Don't say a thing!"
para "Let me guess what"
line "you're thinking."
para "Mmmmmmm…"
para "I got it! You're"
line "on the #MON"
cont "LEAGUE challenge!"
done
2015-07-10 08:20:21 +00:00
PsychicGilbertBeatenText:
text "You're too much!"
done
2017-12-10 20:36:58 +00:00
PsychicGilbertAfterBattleText:
text "With your skills,"
line "you'll do well at"
cont "the LEAGUE."
para "That's what my"
line "premonition says."
done
BirdKeeperJose2SeenText:
text "Tweet! Tweet!"
line "Tetweet!"
done
BirdKeeperJose2BeatenText:
text "Tweet!"
done
2018-01-16 18:26:13 +00:00
BirdKeeperJose2AfterBattleText:
text "BIRD KEEPERS like"
line "me mimic bird"
para "whistles to com-"
line "mand #MON."
done
2016-04-07 04:59:45 +00:00
TohjoFallsSignText:
text "TOHJO FALLS"
para "THE LINK BETWEEN"
line "KANTO AND JOHTO"
done
Route27_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-02 03:22:07 +00:00
warp_event 33, 7, ROUTE_27_SANDSTORM_HOUSE, 1
warp_event 26, 5, TOHJO_FALLS, 1
warp_event 36, 5, TOHJO_FALLS, 2
def_coord_events
coord_event 18, 10, SCENE_ROUTE27_FIRST_STEP_INTO_KANTO, FirstStepIntoKantoLeftScene
coord_event 19, 10, SCENE_ROUTE27_FIRST_STEP_INTO_KANTO, FirstStepIntoKantoRightScene
def_bg_events
2018-02-02 03:22:07 +00:00
bg_event 25, 7, BGEVENT_READ, TohjoFallsSign
def_object_events
2018-02-02 03:22:07 +00:00
object_event 48, 7, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 3, TrainerCooltrainermBlake, -1
object_event 58, 6, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 4, TrainerCooltrainermBrian, -1
object_event 72, 10, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 4, TrainerCooltrainerfReena, -1
2018-02-02 03:22:07 +00:00
object_event 37, 6, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_SPINCLOCKWISE, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 2, TrainerCooltrainerfMegan, -1
object_event 65, 7, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerPsychicGilbert, -1
object_event 58, 13, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerBirdKeeperJose2, -1
object_event 60, 12, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route27TMSolarbeam, EVENT_ROUTE_27_TM_SOLARBEAM
object_event 53, 12, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route27RareCandy, EVENT_ROUTE_27_RARE_CANDY
object_event 21, 10, SPRITE_FISHER, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 3, Route27FisherScript, -1