pokecrystal-board/maps/CherrygroveCity.asm

584 lines
11 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const CHERRYGROVECITY_GRAMPS
const CHERRYGROVECITY_SILVER
const CHERRYGROVECITY_TEACHER
const CHERRYGROVECITY_YOUNGSTER
const CHERRYGROVECITY_FISHER
2015-06-25 22:30:16 -07:00
CherrygroveCity_MapScriptHeader:
.MapTriggers:
db 2
; triggers
2016-01-05 05:46:37 -08:00
maptrigger .Trigger0
maptrigger .Trigger1
.MapCallbacks:
db 1
; callbacks
2016-01-06 04:44:50 -08:00
dbw MAPCALLBACK_NEWMAP, .FlyPoint
.Trigger0:
end
.Trigger1:
end
.FlyPoint:
2015-06-25 22:30:16 -07:00
setflag ENGINE_FLYPOINT_CHERRYGROVE
return
2015-06-25 22:30:16 -07:00
CherrygroveCityGuideGent:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2015-06-25 21:01:08 -07:00
writetext GuideGentIntroText
yesorno
2015-06-25 21:01:08 -07:00
iffalse .No
jump .Yes
.Yes:
2015-06-25 21:01:08 -07:00
writetext GuideGentTourText1
2015-11-25 07:16:29 -08:00
waitbutton
closetext
playmusic MUSIC_SHOW_ME_AROUND
2015-11-26 21:22:14 -08:00
follow CHERRYGROVECITY_GRAMPS, PLAYER
2015-12-15 07:55:56 -08:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement1
2015-12-09 15:25:44 -08:00
opentext
2015-06-25 21:01:08 -07:00
writetext GuideGentPokeCenterText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-15 07:55:56 -08:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement2
spriteface PLAYER, UP
2015-12-09 15:25:44 -08:00
opentext
2015-06-25 21:01:08 -07:00
writetext GuideGentMartText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-15 07:55:56 -08:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement3
spriteface PLAYER, UP
2015-12-09 15:25:44 -08:00
opentext
2015-06-25 21:01:08 -07:00
writetext GuideGentRoute30Text
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-15 07:55:56 -08:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement4
spriteface PLAYER, LEFT
2015-12-09 15:25:44 -08:00
opentext
2015-06-25 21:01:08 -07:00
writetext GuideGentSeaText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-15 07:55:56 -08:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement5
spriteface PLAYER, UP
pause 60
2015-11-26 21:22:14 -08:00
spriteface CHERRYGROVECITY_GRAMPS, LEFT
spriteface PLAYER, RIGHT
2015-12-09 15:25:44 -08:00
opentext
2015-06-25 21:01:08 -07:00
writetext GuideGentGiftText
2015-11-29 19:29:45 -08:00
buttonsound
stringtotext .mapcardname, $1
2015-12-15 07:55:56 -08:00
scall .JumpstdReceiveItem
2015-07-10 05:08:03 -07:00
setflag ENGINE_MAP_CARD
2015-06-25 21:01:08 -07:00
writetext GotMapCardText
2015-11-29 19:29:45 -08:00
buttonsound
2015-06-25 21:01:08 -07:00
writetext GuideGentPokegearText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
stopfollow
special RestartMapMusic
spriteface PLAYER, UP
2015-12-15 07:55:56 -08:00
applymovement CHERRYGROVECITY_GRAMPS, GuideGentMovement6
playsound SFX_ENTER_DOOR
2015-11-26 21:22:14 -08:00
disappear CHERRYGROVECITY_GRAMPS
2013-09-24 00:48:58 -07:00
clearevent EVENT_GUIDE_GENT_VISIBLE_IN_CHERRYGROVE
2015-11-25 07:16:29 -08:00
waitsfx
end
.JumpstdReceiveItem:
jumpstd receiveitem
end
2015-06-25 22:30:16 -07:00
.mapcardname
db "MAP CARD@"
.No:
2015-06-25 21:01:08 -07:00
writetext GuideGentNoText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-15 07:55:56 -08:00
CherrygroveSilverTriggerSouth:
2015-11-26 21:22:14 -08:00
moveperson CHERRYGROVECITY_SILVER, $27, $7
2015-12-15 07:55:56 -08:00
CherrygroveSilverTriggerNorth:
spriteface PLAYER, RIGHT
showemote EMOTE_SHOCK, PLAYER, 15
special Special_FadeOutMusic
pause 15
2015-11-26 21:22:14 -08:00
appear CHERRYGROVECITY_SILVER
2015-12-16 18:57:42 -08:00
applymovement CHERRYGROVECITY_SILVER, CherrygroveCity_RivalWalksToYou
spriteface PLAYER, RIGHT
playmusic MUSIC_RIVAL_ENCOUNTER
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x19c4e2
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_TOTODILE_FROM_ELM
2015-12-15 07:55:56 -08:00
iftrue .Totodile
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_CHIKORITA_FROM_ELM
2015-12-15 07:55:56 -08:00
iftrue .Chikorita
winlosstext SilverCherrygroveWinText, SilverCherrygroveLossText
2015-12-09 08:38:40 -08:00
setlasttalked CHERRYGROVECITY_SILVER
loadtrainer RIVAL1, RIVAL1_3
writecode VAR_BATTLETYPE, BATTLETYPE_CANLOSE
startbattle
dontrestartmapmusic
reloadmap
2015-12-15 07:55:56 -08:00
iftrue .AfterVictorious
jump .AfterYourDefeat
2015-12-15 07:55:56 -08:00
.Totodile:
winlosstext SilverCherrygroveWinText, SilverCherrygroveLossText
2015-12-09 08:38:40 -08:00
setlasttalked CHERRYGROVECITY_SILVER
loadtrainer RIVAL1, RIVAL1_1
writecode VAR_BATTLETYPE, BATTLETYPE_CANLOSE
startbattle
dontrestartmapmusic
reloadmap
2015-12-15 07:55:56 -08:00
iftrue .AfterVictorious
jump .AfterYourDefeat
2015-12-15 07:55:56 -08:00
.Chikorita:
winlosstext SilverCherrygroveWinText, SilverCherrygroveLossText
2015-12-09 08:38:40 -08:00
setlasttalked CHERRYGROVECITY_SILVER
loadtrainer RIVAL1, RIVAL1_2
writecode VAR_BATTLETYPE, BATTLETYPE_CANLOSE
startbattle
dontrestartmapmusic
reloadmap
2015-12-15 07:55:56 -08:00
iftrue .AfterVictorious
jump .AfterYourDefeat
2015-12-15 07:55:56 -08:00
.AfterVictorious:
playmusic MUSIC_RIVAL_AFTER
2015-12-09 15:25:44 -08:00
opentext
2015-12-15 07:55:56 -08:00
writetext CherrygroveRivalText_YouWon
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-15 07:55:56 -08:00
jump .FinishRival
2015-12-15 07:55:56 -08:00
.AfterYourDefeat:
playmusic MUSIC_RIVAL_AFTER
2015-12-09 15:25:44 -08:00
opentext
2015-12-15 07:55:56 -08:00
writetext CherrygroveRivalText_YouLost
2015-11-25 07:16:29 -08:00
waitbutton
closetext
2015-12-15 07:55:56 -08:00
.FinishRival:
playsound SFX_TACKLE
2015-12-16 18:57:42 -08:00
applymovement PLAYER, CherrygroveCity_RivalPushesYouOutOfTheWay
spriteface PLAYER, LEFT
2015-12-16 18:57:42 -08:00
applymovement CHERRYGROVECITY_SILVER, CherrygroveCity_RivalExitsStageLeft
2015-11-26 21:22:14 -08:00
disappear CHERRYGROVECITY_SILVER
dotrigger $0
special HealParty
playmapmusic
end
2015-12-15 07:55:56 -08:00
CherrygroveTeacherScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2015-07-10 05:08:03 -07:00
checkflag ENGINE_MAP_CARD
2015-12-15 07:55:56 -08:00
iftrue .HaveMapCard
writetext CherrygroveTeacherText_NoMapCard
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-15 07:55:56 -08:00
.HaveMapCard:
writetext CherrygroveTeacherText_HaveMapCard
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-15 07:55:56 -08:00
CherrygroveYoungsterScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2015-07-10 05:08:03 -07:00
checkflag ENGINE_POKEDEX
2015-12-15 07:55:56 -08:00
iftrue .HavePokedex
writetext CherrygroveYoungsterText_NoPokedex
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-15 07:55:56 -08:00
.HavePokedex:
writetext CherrygroveYoungsterText_HavePokedex
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-25 22:30:16 -07:00
MysticWaterGuy:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_MYSTIC_WATER_IN_CHERRYGROVE
2015-12-15 07:55:56 -08:00
iftrue .After
writetext MysticWaterGuyTextBefore
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
verbosegiveitem MYSTIC_WATER
2015-12-15 07:55:56 -08:00
iffalse .Exit
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_MYSTIC_WATER_IN_CHERRYGROVE
2015-12-15 07:55:56 -08:00
.After:
writetext MysticWaterGuyTextAfter
2015-11-25 07:16:29 -08:00
waitbutton
2015-12-15 07:55:56 -08:00
.Exit:
2015-11-25 07:16:29 -08:00
closetext
end
2015-06-25 21:01:08 -07:00
CherrygroveCitySign:
jumptext CherrygroveCitySignText
2015-06-25 22:30:16 -07:00
GuideGentsHouseSign:
2015-06-25 21:01:08 -07:00
jumptext GuideGentsHouseSignText
2015-06-25 21:01:08 -07:00
CherrygroveCityPokeCenterSign:
2015-06-23 14:02:58 -07:00
jumpstd pokecentersign
2015-06-25 22:30:16 -07:00
CherrygroveCityMartSign:
2015-06-23 14:02:58 -07:00
jumpstd martsign
2015-12-15 07:55:56 -08:00
GuideGentMovement1:
step_left
step_left
step_up
step_left
turn_head_up
step_end
2015-12-15 07:55:56 -08:00
GuideGentMovement2:
step_left
step_left
step_left
step_left
step_left
step_left
turn_head_up
step_end
2015-12-15 07:55:56 -08:00
GuideGentMovement3:
step_left
step_left
step_left
step_left
step_left
step_left
step_left
turn_head_up
step_end
2015-12-15 07:55:56 -08:00
GuideGentMovement4:
step_left
step_left
step_left
step_down
step_left
step_left
step_left
step_down
turn_head_left
step_end
2015-12-15 07:55:56 -08:00
GuideGentMovement5:
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 07:55:56 -08:00
GuideGentMovement6:
step_up
step_up
step_end
2015-12-16 18:57:42 -08:00
CherrygroveCity_RivalWalksToYou:
step_left
step_left
step_left
step_left
step_left
step_end
2015-12-16 18:57:42 -08:00
CherrygroveCity_RivalPushesYouOutOfTheWay:
big_step_down
turn_head_up
step_end
2015-12-16 18:57:42 -08:00
CherrygroveCity_UnusedMovementData:
step_left
turn_head_down
step_end
2015-12-16 18:57:42 -08:00
CherrygroveCity_RivalExitsStageLeft:
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-25 21:01:08 -07: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-25 21:01:08 -07:00
GuideGentTourText1:
text "OK, then!"
line "Follow me!"
done
2015-06-25 21:01:08 -07:00
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-25 21:01:08 -07: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-25 21:01:08 -07: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-25 21:01:08 -07: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-25 21:01:08 -07: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-25 21:01:08 -07:00
GotMapCardText:
text "<PLAYER>'s #GEAR"
line "now has a MAP!"
done
2015-06-25 21:01:08 -07: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-25 21:01:08 -07:00
GuideGentNoText:
text "Oh… It's something"
line "I enjoy doing…"
para "Fine. Come see me"
line "when you like."
done
2015-06-25 22:30:16 -07:00
UnknownText_0x19c4e2:
2015-11-20 12:18:35 -08:00
text "<......> <......> <......>"
para "You got a #MON"
line "at the LAB."
para "What a waste."
line "A wimp like you."
2015-11-20 12:18:35 -08: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 07:55:56 -08:00
SilverCherrygroveWinText:
text "Humph. Are you"
line "happy you won?"
done
2015-12-15 07:55:56 -08:00
CherrygroveRivalText_YouLost:
2015-11-20 12:18:35 -08: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 07:55:56 -08:00
SilverCherrygroveLossText:
text "Humph. That was a"
line "waste of time."
done
2015-12-15 07:55:56 -08:00
CherrygroveRivalText_YouWon:
2015-11-20 12:18:35 -08: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 07:55:56 -08: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 07:55:56 -08:00
CherrygroveTeacherText_HaveMapCard:
text "When you're with"
line "#MON, going"
cont "anywhere is fun."
done
2015-12-15 07:55:56 -08:00
CherrygroveYoungsterText_NoPokedex:
text "MR.#MON's house"
line "is still farther"
cont "up ahead."
done
2015-12-15 07:55:56 -08: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 07:55:56 -08: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 07:55:56 -08:00
MysticWaterGuyTextAfter:
text "Back to fishing"
line "for me, then."
done
2015-06-25 22:30:16 -07:00
CherrygroveCitySignText:
text "CHERRYGROVE CITY"
para "The City of Cute,"
line "Fragrant Flowers"
done
2015-06-25 22:30:16 -07:00
GuideGentsHouseSignText:
text "GUIDE GENT'S HOUSE"
done
2015-06-25 22:30:16 -07:00
CherrygroveCity_MapEventHeader:
; filler
db 0, 0
.Warps:
db 5
warp_def $3, $17, 2, CHERRYGROVE_MART
warp_def $3, $1d, 1, CHERRYGROVE_POKECENTER_1F
warp_def $7, $11, 1, CHERRYGROVE_GYM_SPEECH_HOUSE
warp_def $9, $19, 1, GUIDE_GENTS_HOUSE
warp_def $b, $1f, 1, CHERRYGROVE_EVOLUTION_SPEECH_HOUSE
.XYTriggers:
db 2
2015-12-15 07:55:56 -08:00
xy_trigger 1, $6, $21, $0, CherrygroveSilverTriggerNorth, $0, $0
xy_trigger 1, $7, $21, $0, CherrygroveSilverTriggerSouth, $0, $0
.Signposts:
db 4
signpost 8, 30, SIGNPOST_READ, CherrygroveCitySign
signpost 9, 23, SIGNPOST_READ, GuideGentsHouseSign
signpost 3, 24, SIGNPOST_READ, CherrygroveCityMartSign
signpost 3, 30, SIGNPOST_READ, CherrygroveCityPokeCenterSign
.PersonEvents:
db 5
person_event SPRITE_GRAMPS, 6, 32, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, CherrygroveCityGuideGent, EVENT_GUIDE_GENT_IN_HIS_HOUSE
person_event SPRITE_SILVER, 6, 39, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_RIVAL_CHERRYGROVE_CITY
2015-12-15 07:55:56 -08:00
person_event SPRITE_TEACHER, 12, 27, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 0, 1, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, CherrygroveTeacherScript, -1
person_event SPRITE_YOUNGSTER, 7, 23, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 0, 1, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CherrygroveYoungsterScript, -1
person_event SPRITE_FISHER, 12, 7, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, MysticWaterGuy, -1