mirror of https://github.com/pret/pokecrystal.git
329 lines
6.4 KiB
NASM
329 lines
6.4 KiB
NASM
const_value set 2
|
|
const OLIVINECITY_SAILOR1
|
|
const OLIVINECITY_STANDING_YOUNGSTER
|
|
const OLIVINECITY_SAILOR2
|
|
const OLIVINECITY_OLIVINE_RIVAL
|
|
|
|
OlivineCity_MapScriptHeader:
|
|
.SceneScripts:
|
|
db 2
|
|
scene_script .DummyScene0
|
|
scene_script .DummyScene1
|
|
|
|
.MapCallbacks:
|
|
db 1
|
|
dbw MAPCALLBACK_NEWMAP, .FlyPoint
|
|
|
|
.DummyScene0:
|
|
end
|
|
|
|
.DummyScene1:
|
|
end
|
|
|
|
.FlyPoint:
|
|
setflag ENGINE_FLYPOINT_OLIVINE
|
|
return
|
|
|
|
UnknownScript_0x1a8833:
|
|
spriteface PLAYER, LEFT
|
|
showemote EMOTE_SHOCK, PLAYER, 15
|
|
special Special_FadeOutMusic
|
|
pause 15
|
|
playsound SFX_ENTER_DOOR
|
|
appear OLIVINECITY_OLIVINE_RIVAL
|
|
waitsfx
|
|
applymovement OLIVINECITY_OLIVINE_RIVAL, MovementData_0x1a88d2
|
|
playmusic MUSIC_RIVAL_ENCOUNTER
|
|
opentext
|
|
writetext UnknownText_0x1a88fa
|
|
waitbutton
|
|
closetext
|
|
applymovement PLAYER, MovementData_0x1a88f4
|
|
spriteface PLAYER, RIGHT
|
|
applymovement OLIVINECITY_OLIVINE_RIVAL, MovementData_0x1a88db
|
|
setscene $1
|
|
disappear OLIVINECITY_OLIVINE_RIVAL
|
|
special RestartMapMusic
|
|
variablesprite SPRITE_OLIVINE_RIVAL, SPRITE_SWIMMER_GUY
|
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
|
end
|
|
|
|
UnknownScript_0x1a886b:
|
|
spriteface PLAYER, LEFT
|
|
showemote EMOTE_SHOCK, PLAYER, 15
|
|
special Special_FadeOutMusic
|
|
pause 15
|
|
playsound SFX_ENTER_DOOR
|
|
appear OLIVINECITY_OLIVINE_RIVAL
|
|
waitsfx
|
|
applymovement OLIVINECITY_OLIVINE_RIVAL, MovementData_0x1a88d6
|
|
playmusic MUSIC_RIVAL_ENCOUNTER
|
|
opentext
|
|
writetext UnknownText_0x1a88fa
|
|
waitbutton
|
|
closetext
|
|
applymovement PLAYER, MovementData_0x1a88f7
|
|
spriteface PLAYER, RIGHT
|
|
applymovement OLIVINECITY_OLIVINE_RIVAL, MovementData_0x1a88e8
|
|
disappear OLIVINECITY_OLIVINE_RIVAL
|
|
setscene $1
|
|
special RestartMapMusic
|
|
variablesprite SPRITE_OLIVINE_RIVAL, SPRITE_SWIMMER_GUY
|
|
special MapCallbackSprites_LoadUsedSpritesGFX
|
|
end
|
|
|
|
OlivineCitySailor1Script:
|
|
jumptextfaceplayer OlivineCitySailor1Text
|
|
|
|
StandingYoungsterScript_0x1a88a6:
|
|
faceplayer
|
|
opentext
|
|
random $2
|
|
if_equal $0, UnknownScript_0x1a88b4
|
|
writetext UnknownText_0x1a8b04
|
|
waitbutton
|
|
closetext
|
|
end
|
|
|
|
UnknownScript_0x1a88b4:
|
|
writetext UnknownText_0x1a8b41
|
|
waitbutton
|
|
closetext
|
|
end
|
|
|
|
OlivineCitySailor2Script:
|
|
jumptextfaceplayer OlivineCitySailor2Text
|
|
|
|
OlivineCitySign:
|
|
jumptext OlivineCitySignText
|
|
|
|
OlivineCityPortSign:
|
|
jumptext OlivineCityPortSignText
|
|
|
|
OlivineGymSign:
|
|
jumptext OlivineGymSignText
|
|
|
|
OlivineLighthouseSign:
|
|
jumptext OlivineLighthouseSignText
|
|
|
|
OlivineCityBattleTowerSign:
|
|
jumptext OlivineCityBattleTowerSignText
|
|
|
|
OlivineCityPokecenterSign:
|
|
jumpstd pokecentersign
|
|
|
|
OlivineCityMartSign:
|
|
jumpstd martsign
|
|
|
|
MovementData_0x1a88d2:
|
|
step DOWN
|
|
step RIGHT
|
|
step RIGHT
|
|
step_end
|
|
|
|
MovementData_0x1a88d6:
|
|
step DOWN
|
|
step DOWN
|
|
step RIGHT
|
|
step RIGHT
|
|
step_end
|
|
|
|
MovementData_0x1a88db:
|
|
step RIGHT
|
|
step RIGHT
|
|
step RIGHT
|
|
step RIGHT
|
|
step RIGHT
|
|
step RIGHT
|
|
step UP
|
|
step UP
|
|
step UP
|
|
step UP
|
|
step UP
|
|
step UP
|
|
step_end
|
|
|
|
MovementData_0x1a88e8:
|
|
step RIGHT
|
|
step RIGHT
|
|
step RIGHT
|
|
step RIGHT
|
|
step RIGHT
|
|
step RIGHT
|
|
step UP
|
|
step UP
|
|
step UP
|
|
step UP
|
|
step UP
|
|
step_end
|
|
|
|
MovementData_0x1a88f4:
|
|
step DOWN
|
|
turn_head UP
|
|
step_end
|
|
|
|
MovementData_0x1a88f7:
|
|
step UP
|
|
turn_head DOWN
|
|
step_end
|
|
|
|
UnknownText_0x1a88fa:
|
|
text "…"
|
|
|
|
para "You again?"
|
|
|
|
para "There's no need to"
|
|
line "panic. I don't"
|
|
|
|
para "bother with wimps"
|
|
line "like you."
|
|
|
|
para "Speaking of weak-"
|
|
line "lings, the city's"
|
|
|
|
para "GYM LEADER isn't"
|
|
line "here."
|
|
|
|
para "Supposedly taking"
|
|
line "care of a sick"
|
|
|
|
para "#MON at the"
|
|
line "LIGHTHOUSE."
|
|
|
|
para "Humph! Boo-hoo!"
|
|
line "Just let sick"
|
|
cont "#MON go!"
|
|
|
|
para "A #MON that"
|
|
line "can't battle is"
|
|
cont "worthless!"
|
|
|
|
para "Why don't you go"
|
|
line "train at the"
|
|
cont "LIGHTHOUSE?"
|
|
|
|
para "Who knows. It may"
|
|
line "make you a bit"
|
|
cont "less weak!"
|
|
done
|
|
|
|
OlivineCitySailor1Text:
|
|
text "Dark roads are"
|
|
line "dangerous at"
|
|
cont "night."
|
|
|
|
para "But in the pitch-"
|
|
line "black of night,"
|
|
|
|
para "the sea is even"
|
|
line "more treacherous!"
|
|
|
|
para "Without the beacon"
|
|
line "of the LIGHTHOUSE"
|
|
|
|
para "to guide it, no"
|
|
line "ship can sail."
|
|
done
|
|
|
|
UnknownText_0x1a8b04:
|
|
text "That thing you"
|
|
line "have--it's a #-"
|
|
cont "GEAR, right? Wow,"
|
|
cont "that's cool."
|
|
done
|
|
|
|
UnknownText_0x1a8b41:
|
|
text "Wow, you have a"
|
|
line "#DEX!"
|
|
|
|
para "That is just so"
|
|
line "awesome."
|
|
done
|
|
|
|
OlivineCitySailor2Text:
|
|
text "The sea is sweet!"
|
|
|
|
para "Sunsets on the sea"
|
|
line "are marvelous!"
|
|
|
|
para "Sing with me! "
|
|
line "Yo-ho! Blow the"
|
|
cont "man down!…"
|
|
done
|
|
|
|
OlivineCitySignText:
|
|
text "OLIVINE CITY"
|
|
|
|
para "The Port Closest"
|
|
line "to Foreign Lands"
|
|
done
|
|
|
|
OlivineCityPortSignText:
|
|
text "OLIVINE PORT"
|
|
line "FAST SHIP PIER"
|
|
done
|
|
|
|
OlivineGymSignText:
|
|
text "OLIVINE CITY"
|
|
line "#MON GYM"
|
|
cont "LEADER: JASMINE"
|
|
|
|
para "The Steel-Clad"
|
|
line "Defense Girl"
|
|
done
|
|
|
|
OlivineLighthouseSignText:
|
|
text "OLIVINE LIGHTHOUSE"
|
|
line "Also known as the"
|
|
cont "GLITTER LIGHTHOUSE"
|
|
done
|
|
|
|
OlivineCityBattleTowerSignText:
|
|
text "BATTLE TOWER AHEAD"
|
|
line "Opening Now!"
|
|
done
|
|
|
|
UnknownText_0x1a8cba:
|
|
text "BATTLE TOWER AHEAD"
|
|
done
|
|
|
|
OlivineCity_MapEventHeader:
|
|
; filler
|
|
db 0, 0
|
|
|
|
.Warps:
|
|
db 11
|
|
warp_def $15, $d, 1, OLIVINE_POKECENTER_1F
|
|
warp_def $b, $a, 1, OLIVINE_GYM
|
|
warp_def $b, $19, 1, OLIVINE_TIMS_HOUSE
|
|
warp_def $0, $0, 1, OLIVINE_HOUSE_BETA
|
|
warp_def $b, $1d, 1, OLIVINE_PUNISHMENT_SPEECH_HOUSE
|
|
warp_def $f, $d, 1, OLIVINE_GOOD_ROD_HOUSE
|
|
warp_def $15, $7, 1, OLIVINE_CAFE
|
|
warp_def $11, $13, 2, OLIVINE_MART
|
|
warp_def $1b, $1d, 1, OLIVINE_LIGHTHOUSE_1F
|
|
warp_def $1b, $13, 1, OLIVINE_PORT_PASSAGE
|
|
warp_def $1b, $14, 2, OLIVINE_PORT_PASSAGE
|
|
|
|
.CoordEvents:
|
|
db 2
|
|
coord_event 0, $c, $d, UnknownScript_0x1a8833
|
|
coord_event 0, $d, $d, UnknownScript_0x1a886b
|
|
|
|
.BGEvents:
|
|
db 7
|
|
bg_event 11, 17, BGEVENT_READ, OlivineCitySign
|
|
bg_event 24, 20, BGEVENT_READ, OlivineCityPortSign
|
|
bg_event 11, 7, BGEVENT_READ, OlivineGymSign
|
|
bg_event 28, 30, BGEVENT_READ, OlivineLighthouseSign
|
|
bg_event 23, 3, BGEVENT_READ, OlivineCityBattleTowerSign
|
|
bg_event 21, 14, BGEVENT_READ, OlivineCityPokecenterSign
|
|
bg_event 17, 20, BGEVENT_READ, OlivineCityMartSign
|
|
|
|
.ObjectEvents:
|
|
db 4
|
|
object_event SPRITE_SAILOR, 27, 26, SPRITEMOVEDATA_WALK_UP_DOWN, 1, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, OlivineCitySailor1Script, -1
|
|
object_event SPRITE_STANDING_YOUNGSTER, 13, 20, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, StandingYoungsterScript_0x1a88a6, -1
|
|
object_event SPRITE_SAILOR, 21, 17, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, OlivineCitySailor2Script, -1
|
|
object_event SPRITE_OLIVINE_RIVAL, 11, 10, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, ObjectEvent, EVENT_RIVAL_OLIVINE_CITY
|