pokecrystal/maps/Route31.asm

440 lines
8.7 KiB
NASM
Raw Normal View History

object_const_def ; object_event constants
2015-11-27 05:22:14 +00:00
const ROUTE31_FISHER
const ROUTE31_YOUNGSTER
const ROUTE31_BUG_CATCHER
const ROUTE31_COOLTRAINER_M
const ROUTE31_FRUIT_TREE
const ROUTE31_POKE_BALL1
const ROUTE31_POKE_BALL2
Route31_MapScripts:
db 0 ; scene scripts
db 1 ; callbacks
callback MAPCALLBACK_NEWMAP, .CheckMomCall
2015-11-18 15:42:42 +00:00
.CheckMomCall:
2013-09-24 07:48:58 +00:00
checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
2015-11-18 15:42:42 +00:00
iffalse .DoMomCall
endcallback
2015-11-18 15:42:42 +00:00
.DoMomCall:
2015-10-24 14:34:19 +00:00
specialphonecall SPECIALCALL_WORRIED
endcallback
TrainerBugCatcherWade1:
trainer BUG_CATCHER, WADE1, EVENT_BEAT_BUG_CATCHER_WADE, BugCatcherWade1SeenText, BugCatcherWade1BeatenText, 0, .Script
2015-12-17 02:57:42 +00:00
.Script:
loadvar VAR_CALLERID, PHONE_BUG_CATCHER_WADE
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_WADE_READY_FOR_REMATCH
2015-11-18 15:42:42 +00:00
iftrue .WadeRematch
checkflag ENGINE_WADE_HAS_ITEM
2015-11-18 15:42:42 +00:00
iftrue .WadeItem
checkcellnum PHONE_BUG_CATCHER_WADE
2015-11-18 15:42:42 +00:00
iftrue .AcceptedNumberSTD
checkevent EVENT_WADE_ASKED_FOR_PHONE_NUMBER
2015-11-18 15:42:42 +00:00
iftrue .AskAgain
writetext BugCatcherWade1AfterText
2015-11-25 15:16:29 +00:00
waitbutton
setevent EVENT_WADE_ASKED_FOR_PHONE_NUMBER
2015-11-18 15:42:42 +00:00
scall .AskPhoneNumberSTD
sjump .Continue
2015-11-18 15:42:42 +00:00
.AskAgain:
scall .AskAgainSTD
.Continue:
askforphonenumber PHONE_BUG_CATCHER_WADE
2018-02-03 02:09:17 +00:00
ifequal PHONE_CONTACTS_FULL, .PhoneFullSTD
ifequal PHONE_CONTACT_REFUSED, .DeclinedNumberSTD
gettrainername STRING_BUFFER_3, BUG_CATCHER, WADE1
2015-11-18 15:42:42 +00:00
scall .RegisterNumberSTD
sjump .AcceptedNumberSTD
2015-11-18 15:42:42 +00:00
.WadeRematch:
scall .RematchSTD
winlosstext BugCatcherWade1BeatenText, 0
readmem wWadeFightCount
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_MAHOGANY
iftrue .LoadFight2
.Fight1:
checkflag ENGINE_FLYPOINT_GOLDENROD
iftrue .LoadFight1
.LoadFight0:
loadtrainer BUG_CATCHER, WADE1
startbattle
reloadmapafterbattle
loadmem wWadeFightCount, 1
clearflag ENGINE_WADE_READY_FOR_REMATCH
end
.LoadFight1:
loadtrainer BUG_CATCHER, WADE2
startbattle
reloadmapafterbattle
loadmem wWadeFightCount, 2
clearflag ENGINE_WADE_READY_FOR_REMATCH
end
.LoadFight2:
loadtrainer BUG_CATCHER, WADE3
startbattle
reloadmapafterbattle
loadmem wWadeFightCount, 3
clearflag ENGINE_WADE_READY_FOR_REMATCH
end
.LoadFight3:
loadtrainer BUG_CATCHER, WADE4
startbattle
reloadmapafterbattle
loadmem wWadeFightCount, 4
clearflag ENGINE_WADE_READY_FOR_REMATCH
end
.LoadFight4:
loadtrainer BUG_CATCHER, WADE5
startbattle
reloadmapafterbattle
clearflag ENGINE_WADE_READY_FOR_REMATCH
end
2015-11-18 15:42:42 +00:00
.WadeItem:
scall .ItemSTD
2013-09-24 07:48:58 +00:00
checkevent EVENT_WADE_HAS_BERRY
iftrue .Berry
2013-09-24 07:48:58 +00:00
checkevent EVENT_WADE_HAS_PSNCUREBERRY
iftrue .Psncureberry
2013-09-24 07:48:58 +00:00
checkevent EVENT_WADE_HAS_PRZCUREBERRY
iftrue .Przcureberry
2013-09-24 07:48:58 +00:00
checkevent EVENT_WADE_HAS_BITTER_BERRY
iftrue .BitterBerry
.Berry:
2015-11-05 01:20:14 +00:00
verbosegiveitem BERRY
iffalse .PackFull
sjump .Done
.Psncureberry:
2015-11-05 01:20:14 +00:00
verbosegiveitem PSNCUREBERRY
iffalse .PackFull
sjump .Done
.Przcureberry:
2015-11-05 01:20:14 +00:00
verbosegiveitem PRZCUREBERRY
iffalse .PackFull
sjump .Done
.BitterBerry:
2015-11-05 01:20:14 +00:00
verbosegiveitem BITTER_BERRY
iffalse .PackFull
.Done:
clearflag ENGINE_WADE_HAS_ITEM
sjump .AcceptedNumberSTD
.PackFull:
sjump .PackFullSTD
2015-11-18 15:42:42 +00:00
.AskPhoneNumberSTD:
jumpstd AskNumber1MScript
end
2015-11-18 15:42:42 +00:00
.AskAgainSTD:
jumpstd AskNumber2MScript
end
2015-11-18 15:42:42 +00:00
.RegisterNumberSTD:
jumpstd RegisteredNumberMScript
end
2015-11-18 15:42:42 +00:00
.AcceptedNumberSTD:
jumpstd NumberAcceptedMScript
end
2015-11-18 15:42:42 +00:00
.DeclinedNumberSTD:
jumpstd NumberDeclinedMScript
end
2015-11-18 15:42:42 +00:00
.PhoneFullSTD:
jumpstd PhoneFullMScript
end
2015-11-18 15:42:42 +00:00
.RematchSTD:
jumpstd RematchMScript
end
2015-11-18 15:42:42 +00:00
.ItemSTD:
jumpstd GiftMScript
end
2015-11-18 15:42:42 +00:00
.PackFullSTD:
jumpstd PackFullMScript
end
2015-12-17 02:57:42 +00:00
Route31MailRecipientScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_TM50_NIGHTMARE
2015-11-18 15:42:42 +00:00
iftrue .DescribeNightmare
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_KENYA
2015-11-18 15:42:42 +00:00
iftrue .TryGiveKenya
2015-12-17 02:57:42 +00:00
writetext Text_Route31SleepyMan
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-11-18 15:42:42 +00:00
.TryGiveKenya:
2015-12-17 02:57:42 +00:00
writetext Text_Route31SleepyManGotMail
2019-11-03 17:48:54 +00:00
promptbutton
checkpokemail ReceivedSpearowMailText
2018-02-03 02:09:17 +00:00
ifequal POKEMAIL_WRONG_MAIL, .WrongMail
ifequal POKEMAIL_REFUSED, .Refused
ifequal POKEMAIL_NO_MAIL, .NoMail
ifequal POKEMAIL_LAST_MON, .LastMon
2018-01-12 06:40:20 +00:00
; POKEMAIL_CORRECT
2015-12-17 02:57:42 +00:00
writetext Text_Route31HandOverMailMon
2019-11-03 17:48:54 +00:00
promptbutton
2015-12-17 02:57:42 +00:00
writetext Text_Route31ReadingMail
2019-11-03 17:48:54 +00:00
promptbutton
2013-09-24 07:48:58 +00:00
setevent EVENT_GAVE_KENYA
2015-11-05 01:20:14 +00:00
verbosegiveitem TM_NIGHTMARE
2015-11-18 15:42:42 +00:00
iffalse .NoRoomForItems
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_TM50_NIGHTMARE
2015-11-18 15:42:42 +00:00
.DescribeNightmare:
2015-12-17 02:57:42 +00:00
writetext Text_Route31DescribeNightmare
2015-11-25 15:16:29 +00:00
waitbutton
2015-11-18 15:42:42 +00:00
.NoRoomForItems:
2015-11-25 15:16:29 +00:00
closetext
end
2015-11-18 15:42:42 +00:00
.WrongMail:
2015-12-17 02:57:42 +00:00
writetext Text_Route31WrongMail
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-11-18 15:42:42 +00:00
.NoMail:
2015-12-17 02:57:42 +00:00
writetext Text_Route31MissingMail
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-11-18 15:42:42 +00:00
.Refused:
2015-12-17 02:57:42 +00:00
writetext Text_Route31DeclinedToHandOverMail
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-11-18 15:42:42 +00:00
.LastMon:
2015-12-17 02:57:42 +00:00
writetext Text_Route31CantTakeLastMon
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
ReceivedSpearowMailText:
2015-11-18 15:42:42 +00:00
db "DARK CAVE leads"
next "to another road@"
2015-12-17 02:57:42 +00:00
Route31YoungsterScript:
jumptextfaceplayer Route31YoungsterText
2016-04-07 04:59:45 +00:00
Route31Sign:
jumptext Route31SignText
2016-04-07 04:59:45 +00:00
DarkCaveSign:
jumptext DarkCaveSignText
2015-12-17 02:57:42 +00:00
Route31CooltrainerMScript:
jumptextfaceplayer Route31CooltrainerMText
2015-12-17 02:57:42 +00:00
Route31FruitTree:
2015-11-18 15:42:42 +00:00
fruittree FRUITTREE_ROUTE_31
2015-12-15 15:55:56 +00:00
Route31Potion:
itemball POTION
2015-12-15 15:55:56 +00:00
Route31PokeBall:
itemball POKE_BALL
2015-12-17 02:57:42 +00:00
Route31CooltrainerMText:
text "DARK CAVE…"
para "If #MON could"
line "light it up, I'd"
cont "explore it."
done
BugCatcherWade1SeenText:
text "I caught a bunch"
line "of #MON. Let me"
cont "battle with you!"
done
BugCatcherWade1BeatenText:
text "Awwwww…"
done
BugCatcherWade1AfterText:
text "You can catch"
line "#MON even if"
para "you have six with"
line "you."
para "If you catch one,"
line "it'll go to your"
cont "BOX automatically."
done
2015-12-17 02:57:42 +00:00
Text_Route31SleepyMan:
text "… Hnuurg… Huh?"
para "I walked too far"
line "today looking for"
cont "#MON."
para "My feet hurt and"
line "I'm sleepy…"
para "If I were a wild"
line "#MON, I'd be"
cont "easy to catch…"
para "…Zzzz…"
done
2015-12-17 02:57:42 +00:00
Text_Route31SleepyManGotMail:
text "…Zzzz… Huh?"
para "What's that? You"
line "have MAIL for me?"
done
2015-12-17 02:57:42 +00:00
Text_Route31HandOverMailMon:
text "<PLAYER> handed"
line "over the #MON"
cont "holding the MAIL."
done
2015-12-17 02:57:42 +00:00
Text_Route31ReadingMail:
text "Let's see…"
para "…DARK CAVE leads"
line "to another road…"
para "That's good to"
line "know."
para "Thanks for bring-"
line "ing this to me."
para "My friend's a good"
line "guy, and you're"
cont "swell too!"
para "I'd like to do"
line "something good in"
cont "return too!"
para "I know! I want you"
line "to have this!"
done
2015-12-17 02:57:42 +00:00
Text_Route31DescribeNightmare:
text "TM50 is NIGHTMARE."
para "It's a wicked move"
line "that steadily cuts"
para "the HP of a sleep-"
line "ing enemy."
para "Ooooh…"
line "That's scary…"
para "I don't want to"
line "have bad dreams."
done
2015-12-17 02:57:42 +00:00
Text_Route31WrongMail:
text "This MAIL isn't"
line "for me."
done
2015-12-17 02:57:42 +00:00
Text_Route31MissingMail:
text "Why is this #-"
line "MON so special?"
para "It doesn't have"
line "any MAIL."
done
2015-12-17 02:57:42 +00:00
Text_Route31DeclinedToHandOverMail:
text "What? You don't"
line "want anything?"
done
2015-12-17 02:57:42 +00:00
Text_Route31CantTakeLastMon:
text "If I take that"
line "#MON from you,"
para "what are you going"
line "to use in battle?"
done
2015-12-17 02:57:42 +00:00
Route31YoungsterText:
text "I found a good"
line "#MON in DARK"
cont "CAVE."
para "I'm going to raise"
line "it to take on"
cont "FALKNER."
para "He's the leader of"
line "VIOLET CITY's GYM."
done
2016-04-07 04:59:45 +00:00
Route31SignText:
text "ROUTE 31"
para "VIOLET CITY -"
line "CHERRYGROVE CITY"
done
2016-04-07 04:59:45 +00:00
DarkCaveSignText:
text "DARK CAVE"
done
Route31_MapEvents:
db 0, 0 ; filler
db 3 ; warp events
2018-02-02 03:22:07 +00:00
warp_event 4, 6, ROUTE_31_VIOLET_GATE, 3
warp_event 4, 7, ROUTE_31_VIOLET_GATE, 4
warp_event 34, 5, DARK_CAVE_VIOLET_ENTRANCE, 1
db 0 ; coord events
db 2 ; bg events
2018-02-02 03:22:07 +00:00
bg_event 7, 5, BGEVENT_READ, Route31Sign
bg_event 31, 5, BGEVENT_READ, DarkCaveSign
db 7 ; object events
2018-02-02 03:22:07 +00:00
object_event 17, 7, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route31MailRecipientScript, -1
object_event 9, 5, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route31YoungsterScript, -1
object_event 21, 13, SPRITE_BUG_CATCHER, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_TRAINER, 5, TrainerBugCatcherWade1, -1
2018-02-02 03:22:07 +00:00
object_event 33, 8, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route31CooltrainerMScript, -1
object_event 16, 7, SPRITE_FRUIT_TREE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route31FruitTree, -1
object_event 29, 5, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route31Potion, EVENT_ROUTE_31_POTION
object_event 19, 15, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, Route31PokeBall, EVENT_ROUTE_31_POKE_BALL