pokecrystal/maps/CherrygroveCity.asm

573 lines
11 KiB
NASM
Raw Normal View History

object_const_def
2015-11-27 05:22:14 +00:00
const CHERRYGROVECITY_GRAMPS
const CHERRYGROVECITY_SILVER
const CHERRYGROVECITY_TEACHER
const CHERRYGROVECITY_YOUNGSTER
const CHERRYGROVECITY_FISHER
CherrygroveCity_MapScripts:
def_scene_scripts
scene_script .DummyScene0 ; SCENE_CHERRYGROVECITY_NOTHING
scene_script .DummyScene1 ; SCENE_CHERRYGROVECITY_MEET_RIVAL
def_callbacks
callback MAPCALLBACK_NEWMAP, .FlyPoint
.DummyScene0:
end
.DummyScene1:
end
.FlyPoint:
2015-06-26 05:30:16 +00:00
setflag ENGINE_FLYPOINT_CHERRYGROVE
endcallback
2015-06-26 05:30:16 +00:00
CherrygroveCityGuideGent:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-06-26 04:01:08 +00:00
writetext GuideGentIntroText
yesorno
2015-06-26 04:01:08 +00:00
iffalse .No
sjump .Yes
.Yes:
2015-06-26 04:01:08 +00:00
writetext GuideGentTourText1
2015-11-25 15:16:29 +00:00
waitbutton
closetext
playmusic MUSIC_SHOW_ME_AROUND
2015-11-27 05:22:14 +00:00
follow CHERRYGROVECITY_GRAMPS, PLAYER
2015-12-15 15:55:56 +00:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement1
2015-12-09 23:25:44 +00:00
opentext
writetext GuideGentPokecenterText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-15 15:55:56 +00:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement2
turnobject PLAYER, UP
2015-12-09 23:25:44 +00:00
opentext
2015-06-26 04:01:08 +00:00
writetext GuideGentMartText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-15 15:55:56 +00:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement3
turnobject PLAYER, UP
2015-12-09 23:25:44 +00:00
opentext
2015-06-26 04:01:08 +00:00
writetext GuideGentRoute30Text
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-15 15:55:56 +00:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement4
turnobject PLAYER, LEFT
2015-12-09 23:25:44 +00:00
opentext
2015-06-26 04:01:08 +00:00
writetext GuideGentSeaText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-15 15:55:56 +00:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement5
turnobject PLAYER, UP
pause 60
turnobject CHERRYGROVECITY_GRAMPS, LEFT
turnobject PLAYER, RIGHT
2015-12-09 23:25:44 +00:00
opentext
2015-06-26 04:01:08 +00:00
writetext GuideGentGiftText
2019-11-03 17:48:54 +00:00
promptbutton
getstring STRING_BUFFER_4, .mapcardname
2015-12-15 15:55:56 +00:00
scall .JumpstdReceiveItem
2015-07-10 12:08:03 +00:00
setflag ENGINE_MAP_CARD
2015-06-26 04:01:08 +00:00
writetext GotMapCardText
2019-11-03 17:48:54 +00:00
promptbutton
2015-06-26 04:01:08 +00:00
writetext GuideGentPokegearText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
stopfollow
special RestartMapMusic
turnobject PLAYER, UP
2015-12-15 15:55:56 +00:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement6
playsound SFX_ENTER_DOOR
2015-11-27 05:22:14 +00:00
disappear CHERRYGROVECITY_GRAMPS
2013-09-24 07:48:58 +00:00
clearevent EVENT_GUIDE_GENT_VISIBLE_IN_CHERRYGROVE
2015-11-25 15:16:29 +00:00
waitsfx
end
.JumpstdReceiveItem:
jumpstd ReceiveItemScript
end
2015-06-26 05:30:16 +00:00
.mapcardname
db "MAP CARD@"
.No:
2015-06-26 04:01:08 +00:00
writetext GuideGentNoText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
CherrygroveSilverSceneSouth:
moveobject CHERRYGROVECITY_SILVER, 39, 7
CherrygroveSilverSceneNorth:
turnobject PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special FadeOutMusic
pause 15
2015-11-27 05:22:14 +00:00
appear CHERRYGROVECITY_SILVER
2015-12-17 02:57:42 +00:00
applymovement CHERRYGROVECITY_SILVER, CherrygroveCity_RivalWalksToYou
turnobject PLAYER, RIGHT
playmusic MUSIC_RIVAL_ENCOUNTER
2015-12-09 23:25:44 +00:00
opentext
2018-02-28 21:50:43 +00:00
writetext CherrygroveRivalText_Seen
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_TOTODILE_FROM_ELM
2015-12-15 15:55:56 +00:00
iftrue .Totodile
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_CHIKORITA_FROM_ELM
2015-12-15 15:55:56 +00:00
iftrue .Chikorita
winlosstext SilverCherrygroveWinText, SilverCherrygroveLossText
2015-12-09 16:38:40 +00:00
setlasttalked CHERRYGROVECITY_SILVER
loadtrainer RIVAL1, RIVAL1_1_TOTODILE
loadvar VAR_BATTLETYPE, BATTLETYPE_CANLOSE
startbattle
dontrestartmapmusic
reloadmap
2015-12-15 15:55:56 +00:00
iftrue .AfterVictorious
sjump .AfterYourDefeat
2015-12-15 15:55:56 +00:00
.Totodile:
winlosstext SilverCherrygroveWinText, SilverCherrygroveLossText
2015-12-09 16:38:40 +00:00
setlasttalked CHERRYGROVECITY_SILVER
loadtrainer RIVAL1, RIVAL1_1_CHIKORITA
loadvar VAR_BATTLETYPE, BATTLETYPE_CANLOSE
startbattle
dontrestartmapmusic
reloadmap
2015-12-15 15:55:56 +00:00
iftrue .AfterVictorious
sjump .AfterYourDefeat
2015-12-15 15:55:56 +00:00
.Chikorita:
winlosstext SilverCherrygroveWinText, SilverCherrygroveLossText
2015-12-09 16:38:40 +00:00
setlasttalked CHERRYGROVECITY_SILVER
loadtrainer RIVAL1, RIVAL1_1_CYNDAQUIL
loadvar VAR_BATTLETYPE, BATTLETYPE_CANLOSE
startbattle
dontrestartmapmusic
reloadmap
2015-12-15 15:55:56 +00:00
iftrue .AfterVictorious
sjump .AfterYourDefeat
2015-12-15 15:55:56 +00:00
.AfterVictorious:
playmusic MUSIC_RIVAL_AFTER
2015-12-09 23:25:44 +00:00
opentext
2015-12-15 15:55:56 +00:00
writetext CherrygroveRivalText_YouWon
2015-11-25 15:16:29 +00:00
waitbutton
closetext
sjump .FinishRival
2015-12-15 15:55:56 +00:00
.AfterYourDefeat:
playmusic MUSIC_RIVAL_AFTER
2015-12-09 23:25:44 +00:00
opentext
2015-12-15 15:55:56 +00:00
writetext CherrygroveRivalText_YouLost
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2015-12-15 15:55:56 +00:00
.FinishRival:
playsound SFX_TACKLE
2015-12-17 02:57:42 +00:00
applymovement PLAYER, CherrygroveCity_RivalPushesYouOutOfTheWay
turnobject PLAYER, LEFT
2015-12-17 02:57:42 +00:00
applymovement CHERRYGROVECITY_SILVER, CherrygroveCity_RivalExitsStageLeft
2015-11-27 05:22:14 +00:00
disappear CHERRYGROVECITY_SILVER
setscene SCENE_CHERRYGROVECITY_NOTHING
special HealParty
playmapmusic
end
2015-12-15 15:55:56 +00:00
CherrygroveTeacherScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 12:08:03 +00:00
checkflag ENGINE_MAP_CARD
2015-12-15 15:55:56 +00:00
iftrue .HaveMapCard
writetext CherrygroveTeacherText_NoMapCard
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-15 15:55:56 +00:00
.HaveMapCard:
writetext CherrygroveTeacherText_HaveMapCard
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-15 15:55:56 +00:00
CherrygroveYoungsterScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2015-07-10 12:08:03 +00:00
checkflag ENGINE_POKEDEX
2015-12-15 15:55:56 +00:00
iftrue .HavePokedex
writetext CherrygroveYoungsterText_NoPokedex
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-15 15:55:56 +00:00
.HavePokedex:
writetext CherrygroveYoungsterText_HavePokedex
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-06-26 05:30:16 +00:00
MysticWaterGuy:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_MYSTIC_WATER_IN_CHERRYGROVE
2015-12-15 15:55:56 +00:00
iftrue .After
writetext MysticWaterGuyTextBefore
2019-11-03 17:48:54 +00:00
promptbutton
2015-11-05 01:20:14 +00:00
verbosegiveitem MYSTIC_WATER
2015-12-15 15:55:56 +00:00
iffalse .Exit
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_MYSTIC_WATER_IN_CHERRYGROVE
2015-12-15 15:55:56 +00:00
.After:
writetext MysticWaterGuyTextAfter
2015-11-25 15:16:29 +00:00
waitbutton
2015-12-15 15:55:56 +00:00
.Exit:
2015-11-25 15:16:29 +00:00
closetext
end
2015-06-26 04:01:08 +00:00
CherrygroveCitySign:
jumptext CherrygroveCitySignText
2015-06-26 05:30:16 +00:00
GuideGentsHouseSign:
2015-06-26 04:01:08 +00:00
jumptext GuideGentsHouseSignText
CherrygroveCityPokecenterSign:
jumpstd PokecenterSignScript
2015-06-26 05:30:16 +00:00
CherrygroveCityMartSign:
jumpstd MartSignScript
2015-12-15 15:55:56 +00:00
GuideGentMovement1:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step UP
step LEFT
turn_head UP
step_end
2015-12-15 15:55:56 +00:00
GuideGentMovement2:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
turn_head UP
step_end
2015-12-15 15:55:56 +00:00
GuideGentMovement3:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
turn_head UP
step_end
2015-12-15 15:55:56 +00:00
GuideGentMovement4:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step LEFT
step DOWN
step LEFT
step LEFT
step LEFT
step DOWN
turn_head LEFT
step_end
2015-12-15 15:55:56 +00:00
GuideGentMovement5:
2016-05-14 17:46:14 +00:00
step DOWN
step DOWN
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step DOWN
step DOWN
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step RIGHT
turn_head UP
step_end
2015-12-15 15:55:56 +00:00
GuideGentMovement6:
2016-05-14 17:46:14 +00:00
step UP
step UP
step_end
2015-12-17 02:57:42 +00:00
CherrygroveCity_RivalWalksToYou:
2016-05-14 17:46:14 +00:00
step LEFT
step LEFT
step LEFT
step LEFT
step LEFT
step_end
2015-12-17 02:57:42 +00:00
CherrygroveCity_RivalPushesYouOutOfTheWay:
2016-05-14 17:46:14 +00:00
big_step DOWN
turn_head UP
step_end
CherrygroveCity_UnusedMovementData: ; unreferenced
2016-05-14 17:46:14 +00:00
step LEFT
turn_head DOWN
step_end
2015-12-17 02:57:42 +00:00
CherrygroveCity_RivalExitsStageLeft:
2016-05-14 17:46:14 +00:00
big_step LEFT
big_step LEFT
big_step LEFT
big_step LEFT
big_step UP
big_step UP
big_step LEFT
big_step LEFT
step_end
2015-06-26 04:01:08 +00:00
GuideGentIntroText:
text "You're a rookie"
line "trainer, aren't"
cont "you? I can tell!"
para "That's OK! Every-"
line "one is a rookie"
cont "at some point!"
para "If you'd like, I"
line "can teach you a"
cont "few things."
done
2015-06-26 04:01:08 +00:00
GuideGentTourText1:
text "OK, then!"
line "Follow me!"
done
GuideGentPokecenterText:
text "This is a #MON"
line "CENTER. They heal"
para "your #MON in no"
line "time at all."
para "You'll be relying"
line "on them a lot, so"
para "you better learn"
line "about them."
done
2015-06-26 04:01:08 +00:00
GuideGentMartText:
text "This is a #MON"
line "MART."
para "They sell BALLS"
line "for catching wild"
para "#MON and other"
line "useful items."
done
2015-06-26 04:01:08 +00:00
GuideGentRoute30Text:
text "ROUTE 30 is out"
line "this way."
para "Trainers will be"
line "battling their"
para "prized #MON"
line "there."
done
2015-06-26 04:01:08 +00:00
GuideGentSeaText:
text "This is the sea,"
line "as you can see."
para "Some #MON are"
line "found only in"
cont "water."
done
2015-06-26 04:01:08 +00:00
GuideGentGiftText:
text "Here…"
para "It's my house!"
line "Thanks for your"
cont "company."
para "Let me give you a"
line "small gift."
done
2015-06-26 04:01:08 +00:00
GotMapCardText:
text "<PLAYER>'s #GEAR"
line "now has a MAP!"
done
2015-06-26 04:01:08 +00:00
GuideGentPokegearText:
text "#GEAR becomes"
line "more useful as you"
cont "add CARDS."
para "I wish you luck on"
line "your journey!"
done
2015-06-26 04:01:08 +00:00
GuideGentNoText:
text "Oh… It's something"
line "I enjoy doing…"
para "Fine. Come see me"
line "when you like."
done
2018-02-28 21:50:43 +00:00
CherrygroveRivalText_Seen:
2018-01-19 07:30:19 +00:00
text "<……> <……> <……>"
para "You got a #MON"
line "at the LAB."
para "What a waste."
line "A wimp like you."
2018-01-19 07:30:19 +00:00
para "<……> <……> <……>"
para "Don't you get what"
line "I'm saying?"
para "Well, I too, have"
line "a good #MON."
para "I'll show you"
line "what I mean!"
done
2015-12-15 15:55:56 +00:00
SilverCherrygroveWinText:
text "Humph. Are you"
line "happy you won?"
done
2015-12-15 15:55:56 +00:00
CherrygroveRivalText_YouLost:
2018-01-19 07:30:19 +00:00
text "<……> <……> <……>"
para "My name's ???."
para "I'm going to be"
line "the world's great-"
cont "est #MON"
cont "trainer."
done
2015-12-15 15:55:56 +00:00
SilverCherrygroveLossText:
text "Humph. That was a"
line "waste of time."
done
2015-12-15 15:55:56 +00:00
CherrygroveRivalText_YouWon:
2018-01-19 07:30:19 +00:00
text "<……> <……> <……>"
para "My name's ???."
para "I'm going to be"
line "the world's great-"
cont "est #MON"
cont "trainer."
done
2015-12-15 15:55:56 +00:00
CherrygroveTeacherText_NoMapCard:
text "Did you talk to"
line "the old man by the"
cont "#MON CENTER?"
para "He'll put a MAP of"
line "JOHTO on your"
cont "#GEAR."
done
2015-12-15 15:55:56 +00:00
CherrygroveTeacherText_HaveMapCard:
text "When you're with"
line "#MON, going"
cont "anywhere is fun."
done
2015-12-15 15:55:56 +00:00
CherrygroveYoungsterText_NoPokedex:
text "MR.#MON's house"
line "is still farther"
cont "up ahead."
done
2015-12-15 15:55:56 +00:00
CherrygroveYoungsterText_HavePokedex:
text "I battled the"
line "trainers on the"
cont "road."
para "My #MON lost."
line "They're a mess! I"
para "must take them to"
line "a #MON CENTER."
done
2015-12-15 15:55:56 +00:00
MysticWaterGuyTextBefore:
text "A #MON I caught"
line "had an item."
para "I think it's"
line "MYSTIC WATER."
para "I don't need it,"
line "so do you want it?"
done
2015-12-15 15:55:56 +00:00
MysticWaterGuyTextAfter:
text "Back to fishing"
line "for me, then."
done
2015-06-26 05:30:16 +00:00
CherrygroveCitySignText:
text "CHERRYGROVE CITY"
para "The City of Cute,"
line "Fragrant Flowers"
done
2015-06-26 05:30:16 +00:00
GuideGentsHouseSignText:
text "GUIDE GENT'S HOUSE"
done
CherrygroveCity_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-02 03:22:07 +00:00
warp_event 23, 3, CHERRYGROVE_MART, 2
warp_event 29, 3, CHERRYGROVE_POKECENTER_1F, 1
warp_event 17, 7, CHERRYGROVE_GYM_SPEECH_HOUSE, 1
warp_event 25, 9, GUIDE_GENTS_HOUSE, 1
2018-02-02 02:54:00 +00:00
warp_event 31, 11, CHERRYGROVE_EVOLUTION_SPEECH_HOUSE, 1
def_coord_events
2018-02-02 03:22:07 +00:00
coord_event 33, 6, SCENE_CHERRYGROVECITY_MEET_RIVAL, CherrygroveSilverSceneNorth
coord_event 33, 7, SCENE_CHERRYGROVECITY_MEET_RIVAL, CherrygroveSilverSceneSouth
def_bg_events
2018-02-02 03:22:07 +00:00
bg_event 30, 8, BGEVENT_READ, CherrygroveCitySign
bg_event 23, 9, BGEVENT_READ, GuideGentsHouseSign
bg_event 24, 3, BGEVENT_READ, CherrygroveCityMartSign
bg_event 30, 3, BGEVENT_READ, CherrygroveCityPokecenterSign
def_object_events
2018-02-02 03:22:07 +00:00
object_event 32, 6, SPRITE_GRAMPS, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CherrygroveCityGuideGent, EVENT_GUIDE_GENT_IN_HIS_HOUSE
object_event 39, 6, SPRITE_SILVER, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_RIVAL_CHERRYGROVE_CITY
object_event 27, 12, SPRITE_TEACHER, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, CherrygroveTeacherScript, -1
2018-02-02 03:22:07 +00:00
object_event 23, 7, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, CherrygroveYoungsterScript, -1
object_event 7, 12, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, MysticWaterGuy, -1