pokecrystal/maps/Route39.asm

370 lines
7.4 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 ROUTE39_SAILOR
const ROUTE39_POKEFAN_M
const ROUTE39_POKEFAN_F1
2016-04-07 10:13:59 +00:00
const ROUTE39_MILTANK1
const ROUTE39_MILTANK2
const ROUTE39_MILTANK3
const ROUTE39_MILTANK4
const ROUTE39_PSYCHIC_NORMAN
2015-11-27 05:22:14 +00:00
const ROUTE39_FRUIT_TREE
const ROUTE39_POKEFAN_F2
Route39_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2016-04-07 04:59:45 +00:00
Route39Miltank:
2015-12-09 23:25:44 +00:00
opentext
2016-04-07 04:59:45 +00:00
writetext Route39MiltankText
cry MILTANK
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-01-16 04:23:04 +00:00
TrainerPokefanmDerek:
trainer POKEFANM, DEREK1, EVENT_BEAT_POKEFANM_DEREK, PokefanmDerekSeenText, PokefanmDerekBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
loadvar VAR_CALLERID, PHONE_POKEFANM_DEREK
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_DEREK_HAS_NUGGET
2018-01-16 04:23:04 +00:00
iftrue .HasNugget
checkcellnum PHONE_POKEFANM_DEREK
iftrue .NumberAccepted
checkpoke PIKACHU
2018-01-16 04:23:04 +00:00
iffalse .WantsPikachu
checkevent EVENT_DEREK_ASKED_FOR_PHONE_NUMBER
2018-01-16 04:23:04 +00:00
iftrue .AskedAlready
2017-10-26 23:48:13 +00:00
writetext PokefanMDerekText_NotBragging
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_DEREK_ASKED_FOR_PHONE_NUMBER
scall .AskNumber1
2018-01-16 04:23:04 +00:00
jump .AskForNumber
2018-01-16 04:23:04 +00:00
.AskedAlready:
scall .AskNumber2
2018-01-16 04:23:04 +00:00
.AskForNumber:
askforphonenumber PHONE_POKEFANM_DEREK
2018-02-03 02:09:17 +00:00
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
gettrainername STRING_BUFFER_3, POKEFANM, DEREK1
scall .RegisteredNumber
jump .NumberAccepted
2018-01-16 04:23:04 +00:00
.HasNugget:
scall .Gift
2015-11-05 01:20:14 +00:00
verbosegiveitem NUGGET
iffalse .NoRoom
clearflag ENGINE_DEREK_HAS_NUGGET
jump .NumberAccepted
.NoRoom:
jump .PackFull
2018-01-16 04:23:04 +00:00
.WantsPikachu:
writetext PokefanMDerekPikachuIsItText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.AskNumber1:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
.AskNumber2:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
.RegisteredNumber:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
.NumberAccepted:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
.NumberDeclined:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
.PhoneFull:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
.Gift:
2015-06-25 01:26:24 +00:00
jumpstd giftm
end
.PackFull:
2015-06-25 01:26:24 +00:00
jumpstd packfullm
end
2015-07-10 08:20:21 +00:00
TrainerPokefanfRuth:
trainer POKEFANF, RUTH, EVENT_BEAT_POKEFANF_RUTH, PokefanfRuthSeenText, PokefanfRuthBeatenText, 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 PokefanfRuthAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerSailorEugene:
trainer SAILOR, EUGENE, EVENT_BEAT_SAILOR_EUGENE, SailorEugeneSeenText, SailorEugeneBeatenText, 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 SailorEugeneAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerPsychicNorman:
trainer PSYCHIC_T, NORMAN, EVENT_BEAT_PSYCHIC_NORMAN, PsychicNormanSeenText, PsychicNormanBeatenText, 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 PsychicNormanAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-01-16 04:23:04 +00:00
TrainerPokefanfJaime:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
checktime NITE
2018-01-16 04:23:04 +00:00
iffalse .NotNight
2015-07-10 08:20:21 +00:00
checkevent EVENT_BEAT_POKEFANF_JAIME
2018-01-16 04:23:04 +00:00
iftrue .Beaten
writetext PokefanfJaimeSeenText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2018-01-16 04:23:04 +00:00
winlosstext PokefanfJaimeBeatenText, 0
loadtrainer POKEFANF, JAIME
startbattle
reloadmapafterbattle
2015-07-10 08:20:21 +00:00
setevent EVENT_BEAT_POKEFANF_JAIME
2015-11-25 15:16:29 +00:00
closetext
end
2018-01-16 04:23:04 +00:00
.Beaten:
writetext PokefanfJaimeAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2018-01-16 04:23:04 +00:00
.NotNight:
writetext PokefanfJaimeHopeItGetsDarkText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2016-04-07 04:59:45 +00:00
Route39Sign:
jumptext Route39SignText
2016-04-07 04:59:45 +00:00
MoomooFarmSign:
jumptext MoomooFarmSignText
2016-04-07 04:59:45 +00:00
Route39TrainerTips:
jumptext Route39TrainerTipsText
2018-02-28 21:50:43 +00:00
Route39FruitTree:
2015-11-18 15:42:42 +00:00
fruittree FRUITTREE_ROUTE_39
Route39HiddenNugget:
hiddenitem NUGGET, EVENT_ROUTE_39_HIDDEN_NUGGET
2016-04-07 04:59:45 +00:00
Route39MiltankText:
text "MILTANK: Mooo!"
done
2015-07-10 08:20:21 +00:00
SailorEugeneSeenText:
text "I just got back to"
line "OLIVINE."
para "So how about a"
line "#MON battle?"
done
2015-07-10 08:20:21 +00:00
SailorEugeneBeatenText:
text "Awaaargh!"
done
2017-12-10 20:36:58 +00:00
SailorEugeneAfterBattleText:
text "My #MON were"
line "caught and raised"
cont "overseas."
para "They're my compan-"
line "ions on those long"
cont "voyages."
done
2018-01-16 04:23:04 +00:00
PokefanmDerekSeenText:
text "This is a good"
line "time to brag about"
cont "my PIKACHU!"
done
2018-01-16 04:23:04 +00:00
PokefanmDerekBeatenText:
text "I had no time to"
line "show off PIKACHU…"
done
2017-10-26 23:48:13 +00:00
PokefanMDerekText_NotBragging:
text "I'm not listening"
line "to your bragging!"
para "We # FANS have"
line "a policy of not"
para "listening to other"
line "people brag!"
done
2015-07-10 08:20:21 +00:00
PokefanfRuthSeenText:
text "Such darling"
line "#MON."
para "Let's show our"
line "#MON together"
cont "at the same time."
done
2015-07-10 08:20:21 +00:00
PokefanfRuthBeatenText:
text "I don't mind"
line "losing."
done
2017-12-10 20:36:58 +00:00
PokefanfRuthAfterBattleText:
text "Do you know about"
line "baby #MON?"
para "I bet they're just"
line "adorable!"
done
2018-01-16 04:23:04 +00:00
PokefanMDerekPikachuIsItText:
text "PIKACHU is it!"
line "Don't you agree?"
done
2015-07-10 08:20:21 +00:00
PsychicNormanSeenText:
text "Let me see what"
line "your #MON are"
cont "capable of."
done
2015-07-10 08:20:21 +00:00
PsychicNormanBeatenText:
text "Ooh, your #MON"
line "have potential."
done
2017-12-10 20:36:58 +00:00
PsychicNormanAfterBattleText:
text "You know how #-"
line "MON have different"
cont "abilities?"
para "People are like"
line "that too. Every-"
cont "one has different"
cont "potential."
done
2018-01-16 04:23:04 +00:00
PokefanfJaimeHopeItGetsDarkText:
text "Ufufufu… I hope it"
line "gets dark soon."
done
2018-01-16 04:23:04 +00:00
PokefanfJaimeSeenText:
text "You came at just"
line "the right time."
para "Let's battle."
done
2018-01-16 04:23:04 +00:00
PokefanfJaimeBeatenText:
text "Oh, how disap-"
line "pointing…"
done
2018-01-16 04:23:04 +00:00
PokefanfJaimeAfterBattleText:
text "I met my MEOWTH at"
line "night, right here"
cont "on ROUTE 39."
para "I'm not sure why,"
line "but it seems to"
para "like it when I"
line "train here."
para "It seems to become"
line "friendlier by"
para "training here than"
line "anywhere else."
done
2016-04-07 04:59:45 +00:00
Route39SignText:
text "ROUTE 39"
para "OLIVINE CITY -"
line "ECRUTEAK CITY"
done
2016-04-07 04:59:45 +00:00
MoomooFarmSignText:
text "MOOMOO FARM"
para "Enjoy Our Fresh"
line "and Tasty Milk"
done
2016-04-07 04:59:45 +00:00
Route39TrainerTipsText:
text "TRAINER TIPS"
para "Use HEADBUTT on"
line "trees to shake"
cont "#MON out."
para "Different kinds of"
line "#MON drop out"
cont "of trees."
para "Use HEADBUTT on"
line "any tree you see!"
done
Route39_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 1, 3, ROUTE_39_BARN, 1
warp_event 5, 3, ROUTE_39_FARMHOUSE, 1
db 0 ; coord events
db 4 ; bg events
2018-02-02 03:22:07 +00:00
bg_event 5, 31, BGEVENT_READ, Route39TrainerTips
bg_event 9, 5, BGEVENT_READ, MoomooFarmSign
bg_event 15, 7, BGEVENT_READ, Route39Sign
bg_event 5, 13, BGEVENT_ITEM, Route39HiddenNugget
db 10 ; object events
object_event 13, 29, SPRITE_SAILOR, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 5, TrainerSailorEugene, -1
2018-01-16 04:23:04 +00:00
object_event 10, 22, SPRITE_POKEFAN_M, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 4, TrainerPokefanmDerek, -1
object_event 11, 19, SPRITE_POKEFAN_F, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_TRAINER, 4, TrainerPokefanfRuth, -1
2018-02-02 03:22:07 +00:00
object_event 3, 12, SPRITE_TAUROS, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route39Miltank, -1
object_event 6, 11, SPRITE_TAUROS, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route39Miltank, -1
object_event 4, 15, SPRITE_TAUROS, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route39Miltank, -1
object_event 8, 13, SPRITE_TAUROS, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route39Miltank, -1
object_event 13, 7, SPRITE_STANDING_YOUNGSTER, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerPsychicNorman, -1
2018-02-28 21:50:43 +00:00
object_event 9, 3, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route39FruitTree, -1
2018-02-02 03:22:07 +00:00
object_event 4, 22, SPRITE_POKEFAN_F, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, TrainerPokefanfJaime, -1