pokecrystal/maps/Route30.asm

435 lines
9.3 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 ROUTE30_YOUNGSTER1
const ROUTE30_YOUNGSTER2
const ROUTE30_YOUNGSTER3
const ROUTE30_BUG_CATCHER
const ROUTE30_YOUNGSTER4
const ROUTE30_MONSTER1
const ROUTE30_MONSTER2
const ROUTE30_FRUIT_TREE1
const ROUTE30_FRUIT_TREE2
const ROUTE30_COOLTRAINER_F
const ROUTE30_POKE_BALL
Route30_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2015-12-17 02:57:42 +00:00
YoungsterJoey_ImportantBattleScript:
2015-11-25 15:16:29 +00:00
waitsfx
playmusic MUSIC_JOHTO_TRAINER_BATTLE
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext Text_UseTackle
pause 30
2015-11-25 15:16:29 +00:00
closetext
playsound SFX_TACKLE
2015-12-17 02:57:42 +00:00
applymovement ROUTE30_MONSTER2, Route30_JoeysRattataAttacksMovement
2015-12-09 23:25:44 +00:00
opentext
faceplayer
2015-12-17 02:57:42 +00:00
writetext Text_ThisIsABigBattle
2015-11-25 15:16:29 +00:00
waitbutton
turnobject ROUTE30_YOUNGSTER1, UP
2015-11-25 15:16:29 +00:00
closetext
playsound SFX_TACKLE
2015-12-17 02:57:42 +00:00
applymovement ROUTE30_MONSTER1, Route30_MikeysRattataAttacksMovement
special RestartMapMusic
end
2015-07-10 08:20:21 +00:00
TrainerYoungsterJoey:
trainer YOUNGSTER, JOEY1, EVENT_BEAT_YOUNGSTER_JOEY, YoungsterJoey1SeenText, YoungsterJoey1BeatenText, 0, .Script
2015-12-17 02:57:42 +00:00
.Script:
writecode VAR_CALLERID, PHONE_YOUNGSTER_JOEY
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_JOEY
2015-12-17 02:57:42 +00:00
iftrue .Rematch
checkcellnum PHONE_YOUNGSTER_JOEY
2015-12-17 02:57:42 +00:00
iftrue .NumberAccepted
checkevent EVENT_JOEY_ASKED_FOR_PHONE_NUMBER
2015-12-17 02:57:42 +00:00
iftrue .AskAgain
writetext YoungsterJoey1AfterText
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_JOEY_ASKED_FOR_PHONE_NUMBER
2015-12-17 02:57:42 +00:00
scall .AskNumber1
jump .RequestNumber
2015-12-17 02:57:42 +00:00
.AskAgain:
scall .AskNumber2
.RequestNumber:
askforphonenumber PHONE_YOUNGSTER_JOEY
2018-02-03 02:09:17 +00:00
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
2018-01-12 06:40:20 +00:00
trainertotext YOUNGSTER, JOEY1, MEM_BUFFER_0
2015-12-17 02:57:42 +00:00
scall .RegisteredNumber
jump .NumberAccepted
2015-12-17 02:57:42 +00:00
.Rematch:
scall .RematchStd
2015-11-02 19:37:02 +00:00
winlosstext YoungsterJoey1BeatenText, 0
2015-07-10 20:04:00 +00:00
copybytetovar wJoeyFightCount
2018-02-03 02:09:17 +00:00
ifequal 4, .Fight4
ifequal 3, .Fight3
ifequal 2, .Fight2
ifequal 1, .Fight1
ifequal 0, .LoadFight0
.Fight4:
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight4
.Fight3:
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight3
.Fight2:
checkflag ENGINE_FLYPOINT_OLIVINE
iftrue .LoadFight2
.Fight1:
checkflag ENGINE_FLYPOINT_GOLDENROD
iftrue .LoadFight1
.LoadFight0:
loadtrainer YOUNGSTER, JOEY1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wJoeyFightCount, 1
clearflag ENGINE_JOEY
end
.LoadFight1:
loadtrainer YOUNGSTER, JOEY2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wJoeyFightCount, 2
clearflag ENGINE_JOEY
end
.LoadFight2:
loadtrainer YOUNGSTER, JOEY3
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wJoeyFightCount, 3
clearflag ENGINE_JOEY
end
.LoadFight3:
loadtrainer YOUNGSTER, JOEY4
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wJoeyFightCount, 4
clearflag ENGINE_JOEY
end
.LoadFight4:
loadtrainer YOUNGSTER, JOEY5
startbattle
reloadmapafterbattle
clearflag ENGINE_JOEY
2013-09-24 07:48:58 +00:00
checkevent EVENT_JOEY_HP_UP
2015-12-17 02:57:42 +00:00
iftrue .GiveHPUp
checkevent EVENT_GOT_HP_UP_FROM_JOEY
2015-12-17 02:57:42 +00:00
iftrue .done
scall .RematchGift
2015-11-05 01:20:14 +00:00
verbosegiveitem HP_UP
2015-12-17 02:57:42 +00:00
iffalse .PackFull
setevent EVENT_GOT_HP_UP_FROM_JOEY
2015-12-17 02:57:42 +00:00
jump .NumberAccepted
.done
end
2015-12-17 02:57:42 +00:00
.GiveHPUp:
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext YoungsterJoeyText_GiveHPUpAfterBattle
2015-11-25 15:16:29 +00:00
waitbutton
2015-11-05 01:20:14 +00:00
verbosegiveitem HP_UP
2015-12-17 02:57:42 +00:00
iffalse .PackFull
2013-09-24 07:48:58 +00:00
clearevent EVENT_JOEY_HP_UP
setevent EVENT_GOT_HP_UP_FROM_JOEY
2015-12-17 02:57:42 +00:00
jump .NumberAccepted
2015-12-17 02:57:42 +00:00
.AskNumber1:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
2015-12-17 02:57:42 +00:00
.AskNumber2:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
2015-12-17 02:57:42 +00:00
.RegisteredNumber:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
2015-12-17 02:57:42 +00:00
.NumberAccepted:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
2015-12-17 02:57:42 +00:00
.NumberDeclined:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
2015-12-17 02:57:42 +00:00
.PhoneFull:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
2015-12-17 02:57:42 +00:00
.RematchStd:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2015-12-17 02:57:42 +00:00
.PackFull:
2013-09-24 07:48:58 +00:00
setevent EVENT_JOEY_HP_UP
2015-06-25 01:26:24 +00:00
jumpstd packfullm
end
2015-12-17 02:57:42 +00:00
.RematchGift:
2015-06-25 01:26:24 +00:00
jumpstd rematchgiftm
end
2015-07-10 08:20:21 +00:00
TrainerYoungsterMikey:
trainer YOUNGSTER, MIKEY, EVENT_BEAT_YOUNGSTER_MIKEY, YoungsterMikeySeenText, YoungsterMikeyBeatenText, 0, .Script
2015-12-17 02:57:42 +00:00
.Script:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
2015-12-17 02:57:42 +00:00
writetext YoungsterMikeyAfterText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
TrainerBugCatcherDon:
trainer BUG_CATCHER, DON, EVENT_BEAT_BUG_CATCHER_DON, BugCatcherDonSeenText, BugCatcherDonBeatenText, 0, .Script
2015-12-17 02:57:42 +00:00
.Script:
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
writetext BugCatcherDonAfterText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
Route30YoungsterScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
2015-12-17 02:57:42 +00:00
iftrue .CompletedEggQuest
writetext Route30YoungsterText_DirectionsToMrPokemonsHouse
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
.CompletedEggQuest:
writetext Route30YoungsterText_EveryoneIsBattling
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
Route30CooltrainerFScript:
jumptextfaceplayer Route30CooltrainerFText
2016-04-07 04:59:45 +00:00
Route30Sign:
jumptext Route30SignText
2016-04-07 04:59:45 +00:00
MrPokemonsHouseDirectionsSign:
jumptext MrPokemonsHouseDirectionsSignText
2016-04-07 04:59:45 +00:00
MrPokemonsHouseSign:
jumptext MrPokemonsHouseSignText
2016-04-07 04:59:45 +00:00
Route30TrainerTips:
jumptext Route30TrainerTipsText
2015-12-15 15:55:56 +00:00
Route30Antidote:
itemball ANTIDOTE
2015-12-17 02:57:42 +00:00
Route30FruitTree1:
2015-11-18 15:42:42 +00:00
fruittree FRUITTREE_ROUTE_30_1
2015-12-17 02:57:42 +00:00
Route30FruitTree2:
2015-11-18 15:42:42 +00:00
fruittree FRUITTREE_ROUTE_30_2
Route30HiddenPotion:
hiddenitem POTION, EVENT_ROUTE_30_HIDDEN_POTION
2015-12-17 02:57:42 +00:00
Route30_JoeysRattataAttacksMovement:
fix_facing
2016-05-14 17:46:14 +00:00
big_step UP
big_step DOWN
step_end
2015-12-17 02:57:42 +00:00
Route30_MikeysRattataAttacksMovement:
fix_facing
2016-05-14 17:46:14 +00:00
big_step DOWN
big_step UP
step_end
2015-12-17 02:57:42 +00:00
Text_UseTackle:
text "Go, RATTATA!"
para "TACKLE!"
done
2015-12-17 02:57:42 +00:00
Text_ThisIsABigBattle:
text "What? This is a"
line "big battle!"
cont "Leave me alone!"
done
2015-07-10 08:20:21 +00:00
YoungsterJoey1SeenText:
text "I just lost, so"
line "I'm trying to find"
cont "more #MON."
para "Wait! You look"
line "weak! Come on,"
cont "let's battle!"
done
2015-07-10 08:20:21 +00:00
YoungsterJoey1BeatenText:
text "Ack! I lost again!"
line "Doggone it!"
done
2015-12-17 02:57:42 +00:00
YoungsterJoey1AfterText:
text "Do I have to have"
line "more #MON in"
para "order to battle"
line "better?"
para "No! I'm sticking"
line "with this one no"
cont "matter what!"
done
2015-07-10 08:20:21 +00:00
YoungsterMikeySeenText:
text "You're a #MON"
line "trainer, right?"
para "Then you have to"
line "battle!"
done
2015-07-10 08:20:21 +00:00
YoungsterMikeyBeatenText:
text "That's strange."
line "I won before."
done
2015-12-17 02:57:42 +00:00
YoungsterMikeyAfterText:
text "Becoming a good"
line "trainer is really"
cont "tough."
para "I'm going to bat-"
line "tle other people"
cont "to get better."
done
BugCatcherDonSeenText:
text "Instead of a bug"
line "#MON, I found"
cont "a trainer!"
done
BugCatcherDonBeatenText:
text "Argh! You're too"
line "strong!"
done
BugCatcherDonAfterText:
text "I ran out of #"
line "BALLS while I was"
cont "catching #MON."
para "I should've bought"
line "some more…"
done
2015-12-17 02:57:42 +00:00
Route30YoungsterText_DirectionsToMrPokemonsHouse:
text "MR.#MON's"
line "house? It's a bit"
cont "farther ahead."
done
2015-12-17 02:57:42 +00:00
Route30YoungsterText_EveryoneIsBattling:
text "Everyone's having"
line "fun battling!"
cont "You should too!"
done
2015-12-17 02:57:42 +00:00
Route30CooltrainerFText:
text "I'm not a trainer."
para "But if you look"
line "one in the eyes,"
cont "prepare to battle."
done
2016-04-07 04:59:45 +00:00
Route30SignText:
text "ROUTE 30"
para "VIOLET CITY -"
line "CHERRYGROVE CITY"
done
2016-04-07 04:59:45 +00:00
MrPokemonsHouseDirectionsSignText:
text "MR.#MON'S HOUSE"
line "STRAIGHT AHEAD!"
done
2016-04-07 04:59:45 +00:00
MrPokemonsHouseSignText:
text "MR.#MON'S HOUSE"
done
2016-04-07 04:59:45 +00:00
Route30TrainerTipsText:
text "TRAINER TIPS"
para "No stealing other"
line "people's #MON!"
para "# BALLS are to"
line "be thrown only at"
cont "wild #MON!"
done
2015-12-17 02:57:42 +00:00
YoungsterJoeyText_GiveHPUpAfterBattle:
text "I lost again…"
line "Gee, you're tough!"
para "Oh yeah, I almost"
line "forgot that I had"
cont "to give you this."
para "Use it to get even"
line "tougher, OK?"
para "I'm going to get"
line "tougher too."
done
Route30_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 7, 39, ROUTE_30_BERRY_HOUSE, 1
warp_event 17, 5, MR_POKEMONS_HOUSE, 1
db 0 ; coord events
db 5 ; bg events
2018-02-02 03:22:07 +00:00
bg_event 9, 43, BGEVENT_READ, Route30Sign
bg_event 13, 29, BGEVENT_READ, MrPokemonsHouseDirectionsSign
2018-02-02 03:22:07 +00:00
bg_event 15, 5, BGEVENT_READ, MrPokemonsHouseSign
bg_event 3, 21, BGEVENT_READ, Route30TrainerTips
bg_event 14, 9, BGEVENT_ITEM, Route30HiddenPotion
db 11 ; object events
2018-02-02 03:22:07 +00:00
object_event 5, 26, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, YoungsterJoey_ImportantBattleScript, EVENT_ROUTE_30_BATTLE
object_event 2, 28, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerYoungsterJoey, EVENT_ROUTE_30_YOUNGSTER_JOEY
object_event 5, 23, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerYoungsterMikey, -1
object_event 1, 7, SPRITE_BUG_CATCHER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 3, TrainerBugCatcherDon, -1
object_event 7, 30, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, Route30YoungsterScript, -1
object_event 5, 24, SPRITE_MONSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_ROUTE_30_BATTLE
object_event 5, 25, SPRITE_MONSTER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_ROUTE_30_BATTLE
object_event 5, 39, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route30FruitTree1, -1
object_event 11, 5, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route30FruitTree2, -1
object_event 2, 13, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route30CooltrainerFScript, -1
object_event 8, 35, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route30Antidote, EVENT_ROUTE_30_ANTIDOTE