pokecrystal/maps/GoldenrodCity.asm

614 lines
14 KiB
NASM

const_value set 2
const GOLDENRODCITY_POKEFAN_M1
const GOLDENRODCITY_YOUNGSTER1
const GOLDENRODCITY_COOLTRAINER_F1
const GOLDENRODCITY_COOLTRAINER_F2
const GOLDENRODCITY_YOUNGSTER2
const GOLDENRODCITY_LASS
const GOLDENRODCITY_GRAMPS
const GOLDENRODCITY_ROCKETSCOUT
const GOLDENRODCITY_ROCKET1
const GOLDENRODCITY_ROCKET2
const GOLDENRODCITY_ROCKET3
const GOLDENRODCITY_ROCKET4
const GOLDENRODCITY_ROCKET5
const GOLDENRODCITY_ROCKET6
const GOLDENRODCITY_POKEFAN_M2
GoldenrodCity_MapScriptHeader:
.SceneScripts:
db 0
.MapCallbacks:
db 2
dbw MAPCALLBACK_NEWMAP, .FlyPointAndFloria
dbw MAPCALLBACK_OBJECTS, .MoveTutor
.FlyPointAndFloria:
setflag ENGINE_FLYPOINT_GOLDENROD
setflag ENGINE_FLORIA
checkevent EVENT_MET_FLORIA
iftrue .FloriaDone
clearevent EVENT_FLORIA_AT_SUDOWOODO
.FloriaDone:
return
.MoveTutor:
checkevent EVENT_BEAT_ELITE_FOUR
iffalse .MoveTutorDone
checkitem COIN_CASE
iffalse .MoveTutorDisappear
checkcode VAR_WEEKDAY
if_equal WEDNESDAY, .MoveTutorAppear
if_equal SATURDAY, .MoveTutorAppear
.MoveTutorDisappear:
disappear GOLDENRODCITY_POKEFAN_M2
return
.MoveTutorAppear:
checkflag ENGINE_DAILY_MOVE_TUTOR
iftrue .MoveTutorDone
appear GOLDENRODCITY_POKEFAN_M2
.MoveTutorDone:
return
MoveTutor:
faceplayer
opentext
writetext UnknownText_0x199042
yesorno
iffalse .Refused
special Special_DisplayCoinCaseBalance
writetext UnknownText_0x199090
yesorno
iffalse .Refused2
checkcoins 4000
if_equal $2, .NotEnoughMoney
writetext UnknownText_0x1990ce
loadmenudata .MoveMenuDataHeader
verticalmenu
closewindow
if_equal $1, .Flamethrower
if_equal $2, .Thunderbolt
if_equal $3, .IceBeam
jump .Incompatible
.Flamethrower:
writebyte $1
writetext UnknownText_0x1991cf
special Special_MoveTutor
if_equal $0, .TeachMove
jump .Incompatible
.Thunderbolt:
writebyte $2
writetext UnknownText_0x1991cf
special Special_MoveTutor
if_equal $0, .TeachMove
jump .Incompatible
.IceBeam:
writebyte $3
writetext UnknownText_0x1991cf
special Special_MoveTutor
if_equal $0, .TeachMove
jump .Incompatible
.MoveMenuDataHeader:
db $40 ; flags
db 02, 00 ; start coords
db 11, 15 ; end coords
dw .MenuData2
db 1 ; default option
.MenuData2:
db $80 ; flags
db 4 ; items
db "FLAMETHROWER@"
db "THUNDERBOLT@"
db "ICE BEAM@"
db "CANCEL@"
.Refused:
writetext UnknownText_0x1990b4
waitbutton
closetext
end
.Refused2:
writetext UnknownText_0x199107
waitbutton
closetext
end
.TeachMove:
writetext UnknownText_0x19913a
buttonsound
takecoins 4000
waitsfx
playsound SFX_TRANSACTION
special Special_DisplayCoinCaseBalance
writetext UnknownText_0x19918b
waitbutton
closetext
checkcode VAR_FACING
if_equal LEFT, .WalkAroundPlayer
applymovement GOLDENRODCITY_POKEFAN_M2, MovementData_0x198a5f
jump .GoInside
.WalkAroundPlayer:
applymovement GOLDENRODCITY_POKEFAN_M2, MovementData_0x198a63
.GoInside:
playsound SFX_ENTER_DOOR
disappear GOLDENRODCITY_POKEFAN_M2
clearevent EVENT_GOLDENROD_GAME_CORNER_MOVE_TUTOR
setflag ENGINE_DAILY_MOVE_TUTOR
waitsfx
end
.Incompatible:
writetext UnknownText_0x1991a4
waitbutton
closetext
end
.NotEnoughMoney:
writetext UnknownText_0x1991ac
waitbutton
closetext
end
GoldenrodCityPokefanMScript:
jumptextfaceplayer GoldenrodCityPokefanMText
GoldenrodCityYoungster1Script:
jumptextfaceplayer GoldenrodCityYoungster1Text
CooltrainerFScript_0x1989e9:
faceplayer
opentext
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .ClearedRadioTower
writetext UnknownText_0x198ae6
waitbutton
closetext
end
.ClearedRadioTower:
writetext UnknownText_0x198b2d
waitbutton
closetext
end
CooltrainerFScript_0x1989fd:
faceplayer
opentext
checkflag ENGINE_RADIO_CARD
iftrue .GotRadioCard
writetext UnknownText_0x198b73
waitbutton
closetext
end
.GotRadioCard:
writetext UnknownText_0x198c14
waitbutton
closetext
end
GoldenrodCityYoungster2Script:
jumptextfaceplayer GoldenrodCityYoungster2Text
GoldenrodCityLassScript:
jumptextfaceplayer GoldenrodCityLassText
GoldenrodCityGrampsScript:
jumptextfaceplayer GoldenrodCityGrampsText
GoldenrodCityRocketScoutScript:
opentext
writetext GoldenrodCityRocketScoutText1
buttonsound
faceplayer
writetext GoldenrodCityRocketScoutText2
waitbutton
closetext
spriteface GOLDENRODCITY_ROCKETSCOUT, UP
end
GoldenrodCityRocket1Script:
jumptextfaceplayer GoldenrodCityRocket1Text
GoldenrodCityRocket2Script:
jumptextfaceplayer GoldenrodCityRocket2Text
GoldenrodCityRocket3Script:
jumptextfaceplayer GoldenrodCityRocket3Text
GoldenrodCityRocket4Script:
jumptextfaceplayer GoldenrodCityRocket4Text
GoldenrodCityRocket5Script:
jumptextfaceplayer GoldenrodCityRocket5Text
GoldenrodCityRocket6Script:
jumptextfaceplayer GoldenrodCityRocket6Text
GoldenrodCityStationSign:
jumptext GoldenrodCityStationSignText
GoldenrodCityRadioTowerSign:
jumptext GoldenrodCityRadioTowerSignText
GoldenrodDeptStoreSign:
jumptext GoldenrodDeptStoreSignText
GoldenrodGymSign:
jumptext GoldenrodGymSignText
GoldenrodCitySign:
jumptext GoldenrodCitySignText
GoldenrodCityBikeShopSign:
jumptext GoldenrodCityBikeShopSignText
GoldenrodCityGameCornerSign:
jumptext GoldenrodCityGameCornerSignText
GoldenrodCityNameRaterSign:
jumptext GoldenrodCityNameRaterSignText
GoldenrodCityUndergroundSignNorth:
jumptext GoldenrodCityUndergroundSignNorthText
GoldenrodCityUndergroundSignSouth:
jumptext GoldenrodCityUndergroundSignSouthText
GoldenrodCityPokecenterSign:
jumpstd pokecentersign
GoldenrodCityFlowerShopSign:
jumptext GoldenrodCityFlowerShopSignText
MovementData_0x198a5f:
step RIGHT
step RIGHT
step UP
step_end
MovementData_0x198a63:
step DOWN
step RIGHT
step RIGHT
step UP
step UP
step_end
GoldenrodCityPokefanMText:
text "They built the new"
line "RADIO TOWER to"
para "replace the old,"
line "creaky one."
done
GoldenrodCityYoungster1Text:
text "I know there's a"
line "new BIKE SHOP, but"
para "I can't find it"
line "anywhere."
done
UnknownText_0x198ae6:
text "Is that man in"
line "black dressed up"
para "like a TEAM ROCKET"
line "member? How silly!"
done
UnknownText_0x198b2d:
text "Was that man in"
line "black really part"
para "of TEAM ROCKET? I"
line "can't believe it!"
done
UnknownText_0x198b73:
text "The RADIO TOWER in"
line "GOLDENROD CITY is"
cont "a landmark."
para "They're running a"
line "promotional cam- "
cont "paign right now."
para "They'll modify"
line "your #GEAR,"
para "so it can also"
line "serve as a radio."
done
UnknownText_0x198c14:
text "Oh, your #GEAR"
line "works as a radio!"
done
GoldenrodCityYoungster2Text:
text "E-he-he-he…"
para "I got in trouble"
line "for playing in the"
para "basement of the"
line "DEPT.STORE."
done
GoldenrodCityLassText:
text "The man at that"
line "house rates your"
cont "#MON names."
para "He can even rename"
line "your #MON."
done
GoldenrodCityGrampsText:
text "Whew! This is one"
line "big town. I don't"
para "know where any-"
line "thing is."
done
GoldenrodCityRocketScoutText1:
text "So this is the"
line "RADIO TOWER…"
done
GoldenrodCityRocketScoutText2:
text "What do you want,"
line "you pest? Scram!"
done
GoldenrodCityRocket1Text:
text "Stay out of the"
line "way! Beat it!"
done
GoldenrodCityRocket2Text:
text "Take over the"
line "RADIO TOWER…"
para "What? It's none of"
line "your business!"
done
GoldenrodCityRocket3Text:
text "#MON? They're"
line "nothing more than"
para "tools for making"
line "money!"
done
GoldenrodCityRocket4Text:
text "Our dream will"
line "soon come true…"
para "It was such a long"
line "struggle…"
done
GoldenrodCityRocket5Text:
text "Hey, brat! You"
line "don't belong here!"
cont "Get lost!"
done
GoldenrodCityRocket6Text:
text "Come taste the"
line "true terror of"
cont "TEAM ROCKET!"
done
GoldenrodCityStationSignText:
text "GOLDENROD CITY"
line "STATION"
done
GoldenrodCityRadioTowerSignText:
text "GOLDENROD CITY"
line "RADIO TOWER"
done
GoldenrodDeptStoreSignText:
text "Full Selection of"
line "#MON Goods!"
para "GOLDENROD CITY"
line "DEPT.STORE"
done
GoldenrodGymSignText:
text "GOLDENROD CITY"
line "#MON GYM"
cont "LEADER: WHITNEY"
para "The Incredibly"
line "Pretty Girl!"
done
GoldenrodCitySignText:
text "GOLDENROD CITY"
para "The Festive City"
line "of Opulent Charm"
done
GoldenrodCityBikeShopSignText:
text "The World is a"
line "Cycle Path!"
cont "BIKE SHOP"
done
GoldenrodCityGameCornerSignText:
text "Your Playground!"
para "GOLDENROD CITY"
line "GAME CORNER"
done
GoldenrodCityNameRaterSignText:
text "NAME RATER"
para "Get Your #MON"
line "Nicknames Rated"
done
GoldenrodCityUndergroundSignNorthText:
text "UNDERGROUND"
line "ENTRANCE"
done
GoldenrodCityUndergroundSignSouthText:
text "UNDERGROUND"
line "ENTRANCE"
done
PokeComCenterSignText:
; unused in the english version
text "For Mobile Tips!"
line "#COM CENTER"
done
GoldenrodCityFlowerShopSignText:
text "Blooming Beautiful"
line "FLOWER SHOP"
done
UnknownText_0x199042:
text "I can teach your"
line "#MON amazing"
para "moves if you'd"
line "like."
para "Should I teach a"
line "new move?"
done
UnknownText_0x199090:
text "It will cost you"
line "4000 coins. Okay?"
done
UnknownText_0x1990b4:
text "Aww… But they're"
line "amazing…"
done
UnknownText_0x1990ce:
text "Wahahah! You won't"
line "regret it!"
para "Which move should"
line "I teach?"
done
UnknownText_0x199107:
text "Hm, too bad. I'll"
line "have to get some"
cont "cash from home…"
done
UnknownText_0x19913a:
text "If you understand"
line "what's so amazing"
para "about this move,"
line "you've made it as"
cont "a trainer."
done
UnknownText_0x19918b:
text "Wahahah!"
line "Farewell, kid!"
done
UnknownText_0x1991a4:
text "B-but…"
done
UnknownText_0x1991ac:
text "…You don't have"
line "enough coins here…"
done
UnknownText_0x1991cf:
text ""
done
GoldenrodCity_MapEventHeader:
; filler
db 0, 0
.Warps:
db 15
warp_def 24, 7, 1, GOLDENROD_GYM
warp_def 29, 29, 1, GOLDENROD_BIKE_SHOP
warp_def 31, 21, 1, GOLDENROD_HAPPINESS_RATER
warp_def 5, 25, 1, GOLDENROD_BILLS_HOUSE
warp_def 9, 13, 2, GOLDENROD_MAGNET_TRAIN_STATION
warp_def 29, 5, 1, GOLDENROD_FLOWER_SHOP
warp_def 33, 9, 1, GOLDENROD_PP_SPEECH_HOUSE
warp_def 15, 7, 1, GOLDENROD_NAME_RATER
warp_def 24, 27, 1, GOLDENROD_DEPT_STORE_1F
warp_def 14, 21, 1, GOLDENROD_GAME_CORNER
warp_def 5, 15, 1, RADIO_TOWER_1F
warp_def 19, 1, 3, ROUTE_35_GOLDENROD_GATE
warp_def 9, 5, 8, GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES
warp_def 11, 29, 5, GOLDENROD_UNDERGROUND_SWITCH_ROOM_ENTRANCES
warp_def 15, 27, 1, GOLDENROD_POKECENTER_1F
.CoordEvents:
db 0
.BGEvents:
db 12
bg_event 10, 14, BGEVENT_READ, GoldenrodCityStationSign
bg_event 4, 17, BGEVENT_READ, GoldenrodCityRadioTowerSign
bg_event 26, 27, BGEVENT_READ, GoldenrodDeptStoreSign
bg_event 26, 9, BGEVENT_READ, GoldenrodGymSign
bg_event 22, 18, BGEVENT_READ, GoldenrodCitySign
bg_event 28, 30, BGEVENT_READ, GoldenrodCityBikeShopSign
bg_event 16, 22, BGEVENT_READ, GoldenrodCityGameCornerSign
bg_event 12, 7, BGEVENT_READ, GoldenrodCityNameRaterSign
bg_event 8, 6, BGEVENT_READ, GoldenrodCityUndergroundSignNorth
bg_event 12, 30, BGEVENT_READ, GoldenrodCityUndergroundSignSouth
bg_event 16, 27, BGEVENT_UP, GoldenrodCityPokecenterSign
bg_event 30, 6, BGEVENT_READ, GoldenrodCityFlowerShopSign
.ObjectEvents:
db 15
object_event 7, 18, SPRITE_POKEFAN_M, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityPokefanMScript, EVENT_GOLDENROD_CITY_CIVILIANS
object_event 30, 17, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityYoungster1Script, EVENT_GOLDENROD_CITY_CIVILIANS
object_event 12, 16, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, CooltrainerFScript_0x1989e9, EVENT_GOLDENROD_CITY_CIVILIANS
object_event 20, 26, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_WANDER, 1, 2, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, CooltrainerFScript_0x1989fd, EVENT_GOLDENROD_CITY_CIVILIANS
object_event 19, 17, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GoldenrodCityYoungster2Script, EVENT_GOLDENROD_CITY_CIVILIANS
object_event 17, 10, SPRITE_LASS, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 2, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, GoldenrodCityLassScript, EVENT_GOLDENROD_CITY_CIVILIANS
object_event 11, 27, SPRITE_GRAMPS, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityGrampsScript, EVENT_GOLDENROD_CITY_CIVILIANS
object_event 4, 16, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocketScoutScript, EVENT_GOLDENROD_CITY_ROCKET_SCOUT
object_event 28, 20, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket1Script, EVENT_GOLDENROD_CITY_ROCKET_TAKEOVER
object_event 8, 15, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket2Script, EVENT_GOLDENROD_CITY_ROCKET_TAKEOVER
object_event 16, 23, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket3Script, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 29, 20, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket4Script, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 29, 7, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket5Script, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 31, 10, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocket6Script, EVENT_RADIO_TOWER_ROCKET_TAKEOVER
object_event 12, 22, SPRITE_POKEFAN_M, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, MoveTutor, EVENT_GOLDENROD_CITY_MOVE_TUTOR