mirror of https://github.com/pret/pokecrystal.git
320 lines
6.7 KiB
NASM
320 lines
6.7 KiB
NASM
const_value set 2
|
|
const VIOLETCITY_EARL
|
|
const VIOLETCITY_LASS
|
|
const VIOLETCITY_SUPER_NERD
|
|
const VIOLETCITY_GRAMPS
|
|
const VIOLETCITY_YOUNGSTER
|
|
const VIOLETCITY_FRUIT_TREE
|
|
const VIOLETCITY_POKE_BALL1
|
|
const VIOLETCITY_POKE_BALL2
|
|
|
|
VioletCity_MapScriptHeader:
|
|
.MapTriggers:
|
|
db 0
|
|
|
|
.MapCallbacks:
|
|
db 1
|
|
dbw MAPCALLBACK_NEWMAP, .FlyPoint
|
|
|
|
.FlyPoint:
|
|
setflag ENGINE_FLYPOINT_VIOLET
|
|
return
|
|
|
|
VioletCityEarlScript:
|
|
applymovement VIOLETCITY_EARL, VioletCitySpinningEarl_MovementData
|
|
faceplayer
|
|
opentext
|
|
writetext Text_EarlAsksIfYouBeatFalkner
|
|
yesorno
|
|
iffalse .FollowEarl
|
|
jump .PointlessJump
|
|
|
|
.PointlessJump:
|
|
writetext Text_VeryNiceIndeed
|
|
waitbutton
|
|
closetext
|
|
end
|
|
|
|
.FollowEarl:
|
|
writetext Text_FollowEarl
|
|
waitbutton
|
|
closetext
|
|
playmusic MUSIC_SHOW_ME_AROUND
|
|
follow VIOLETCITY_EARL, PLAYER
|
|
applymovement VIOLETCITY_EARL, VioletCityFollowEarl_MovementData
|
|
spriteface PLAYER, UP
|
|
applymovement VIOLETCITY_EARL, VioletCitySpinningEarl_MovementData
|
|
stopfollow
|
|
special RestartMapMusic
|
|
opentext
|
|
writetext Text_HereTeacherIAm
|
|
waitbutton
|
|
closetext
|
|
applymovement VIOLETCITY_EARL, VioletCitySpinningEarl_MovementData
|
|
applymovement VIOLETCITY_EARL, VioletCityFinishFollowEarl_MovementData
|
|
playsound SFX_ENTER_DOOR
|
|
disappear VIOLETCITY_EARL
|
|
clearevent EVENT_EARLS_ACADEMY_EARL
|
|
waitsfx
|
|
end
|
|
|
|
VioletCityLassScript:
|
|
jumptextfaceplayer VioletCityLassText
|
|
|
|
VioletCitySuperNerdScript:
|
|
jumptextfaceplayer VioletCitySuperNerdText
|
|
|
|
VioletCityGrampsScript:
|
|
jumptextfaceplayer VioletCityGrampsText
|
|
|
|
VioletCityYoungsterScript:
|
|
jumptextfaceplayer VioletCityYoungsterText
|
|
|
|
VioletCitySign:
|
|
jumptext VioletCitySignText
|
|
|
|
VioletGymSign:
|
|
jumptext VioletGymSignText
|
|
|
|
SproutTowerSign:
|
|
jumptext SproutTowerSignText
|
|
|
|
EarlsPokemonAcademySign:
|
|
jumptext EarlsPokemonAcademySignText
|
|
|
|
VioletCityPokecenterSign:
|
|
jumpstd pokecentersign
|
|
|
|
VioletCityMartSign:
|
|
jumpstd martsign
|
|
|
|
VioletCityPPUp:
|
|
itemball PP_UP
|
|
|
|
VioletCityRareCandy:
|
|
itemball RARE_CANDY
|
|
|
|
VioletCityFruitTreeScript:
|
|
fruittree FRUITTREE_VIOLET_CITY
|
|
|
|
VioletCityHiddenHyperPotion:
|
|
dwb EVENT_VIOLET_CITY_HIDDEN_HYPER_POTION, HYPER_POTION
|
|
|
|
VioletCityFollowEarl_MovementData:
|
|
big_step DOWN
|
|
big_step DOWN
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
big_step DOWN
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
big_step RIGHT
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
big_step UP
|
|
turn_head DOWN
|
|
step_end
|
|
|
|
VioletCityFinishFollowEarl_MovementData:
|
|
step UP
|
|
step_end
|
|
|
|
VioletCitySpinningEarl_MovementData:
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
turn_head LEFT
|
|
turn_head UP
|
|
turn_head RIGHT
|
|
turn_head DOWN
|
|
step_end
|
|
|
|
Text_EarlAsksIfYouBeatFalkner:
|
|
text "Hello!"
|
|
line "You are trainer?"
|
|
|
|
para "Battle GYM LEADER,"
|
|
line "win you did?"
|
|
done
|
|
|
|
Text_VeryNiceIndeed:
|
|
text "Ooh, la la!"
|
|
line "Very indeed nice!"
|
|
done
|
|
|
|
Text_FollowEarl:
|
|
text "Is that so? Then"
|
|
line "study shall you!"
|
|
cont "Follow me!"
|
|
done
|
|
|
|
Text_HereTeacherIAm:
|
|
text "Here, teacher I"
|
|
line "am. Good it is"
|
|
cont "you study here!"
|
|
done
|
|
|
|
VioletCityLassText:
|
|
text "Ghosts are rumored"
|
|
line "to appear in"
|
|
cont "SPROUT TOWER."
|
|
|
|
para "They said normal-"
|
|
line "type #MON moves"
|
|
|
|
para "had no effect on"
|
|
line "ghosts."
|
|
done
|
|
|
|
VioletCitySuperNerdText:
|
|
text "Hey, you're a"
|
|
line "#MON trainer?"
|
|
|
|
para "If you beat the"
|
|
line "GYM LEADER here,"
|
|
|
|
para "you'll be ready"
|
|
line "for prime time!"
|
|
done
|
|
|
|
VioletCityGrampsText:
|
|
text "FALKNER, from the"
|
|
line "VIOLET #MON"
|
|
|
|
para "GYM, is a fine"
|
|
line "trainer!"
|
|
|
|
para "He inherited his"
|
|
line "father's gym and"
|
|
|
|
para "has done a great"
|
|
line "job with it."
|
|
done
|
|
|
|
VioletCityYoungsterText:
|
|
text "I saw a wiggly"
|
|
line "tree up ahead!"
|
|
|
|
para "If you touch it,"
|
|
line "it squirms and"
|
|
cont "dances! Cool!"
|
|
done
|
|
|
|
VioletCitySignText:
|
|
text "VIOLET CITY"
|
|
|
|
para "The City of"
|
|
line "Nostalgic Scents"
|
|
done
|
|
|
|
VioletGymSignText:
|
|
text "VIOLET CITY"
|
|
line "#MON GYM"
|
|
cont "LEADER: FALKNER"
|
|
|
|
para "The Elegant Master"
|
|
line "of Flying #MON"
|
|
done
|
|
|
|
SproutTowerSignText:
|
|
text "SPROUT TOWER"
|
|
|
|
para "Experience the"
|
|
line "Way of #MON"
|
|
done
|
|
|
|
EarlsPokemonAcademySignText:
|
|
text "EARL'S #MON"
|
|
line "ACADEMY"
|
|
done
|
|
|
|
VioletCity_MapEventHeader:
|
|
; filler
|
|
db 0, 0
|
|
|
|
.Warps:
|
|
db 9
|
|
warp_def $11, $9, 2, VIOLET_MART
|
|
warp_def $11, $12, 1, VIOLET_GYM
|
|
warp_def $11, $1e, 1, EARLS_POKEMON_ACADEMY
|
|
warp_def $f, $3, 1, VIOLET_NICKNAME_SPEECH_HOUSE
|
|
warp_def $19, $1f, 1, VIOLET_POKECENTER_1F
|
|
warp_def $1d, $15, 1, VIOLET_ONIX_TRADE_HOUSE
|
|
warp_def $5, $17, 1, SPROUT_TOWER_1F
|
|
warp_def $18, $27, 1, ROUTE_31_VIOLET_GATE
|
|
warp_def $19, $27, 2, ROUTE_31_VIOLET_GATE
|
|
|
|
.XYTriggers:
|
|
db 0
|
|
|
|
.Signposts:
|
|
db 7
|
|
signpost 20, 24, SIGNPOST_READ, VioletCitySign
|
|
signpost 17, 15, SIGNPOST_READ, VioletGymSign
|
|
signpost 8, 24, SIGNPOST_READ, SproutTowerSign
|
|
signpost 17, 27, SIGNPOST_READ, EarlsPokemonAcademySign
|
|
signpost 25, 32, SIGNPOST_READ, VioletCityPokecenterSign
|
|
signpost 17, 10, SIGNPOST_READ, VioletCityMartSign
|
|
signpost 14, 37, SIGNPOST_ITEM, VioletCityHiddenHyperPotion
|
|
|
|
.PersonEvents:
|
|
db 8
|
|
person_event SPRITE_FISHER, 16, 13, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_SCRIPT, 0, VioletCityEarlScript, EVENT_VIOLET_CITY_EARL
|
|
person_event SPRITE_LASS, 28, 28, SPRITEMOVEDATA_WANDER, 2, 2, -1, -1, PAL_NPC_GREEN, PERSONTYPE_SCRIPT, 0, VioletCityLassScript, -1
|
|
person_event SPRITE_SUPER_NERD, 14, 24, SPRITEMOVEDATA_WANDER, 2, 1, -1, -1, PAL_NPC_RED, PERSONTYPE_SCRIPT, 0, VioletCitySuperNerdScript, -1
|
|
person_event SPRITE_GRAMPS, 20, 17, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 0, 1, -1, -1, 0, PERSONTYPE_SCRIPT, 0, VioletCityGrampsScript, -1
|
|
person_event SPRITE_YOUNGSTER, 18, 5, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_GREEN, PERSONTYPE_SCRIPT, 0, VioletCityYoungsterScript, -1
|
|
person_event SPRITE_FRUIT_TREE, 29, 14, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, VioletCityFruitTreeScript, -1
|
|
person_event SPRITE_POKE_BALL, 1, 4, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMBALL, 0, VioletCityPPUp, EVENT_VIOLET_CITY_PP_UP
|
|
person_event SPRITE_POKE_BALL, 5, 35, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_ITEMBALL, 0, VioletCityRareCandy, EVENT_VIOLET_CITY_RARE_CANDY
|