pokecrystal-board/maps/RuinsOfAlphOutside.asm

312 lines
6.9 KiB
NASM
Raw Normal View History

2018-01-31 08:38:45 -08:00
const_def 2 ; object constants
2015-11-26 21:22:14 -08:00
const RUINSOFALPHOUTSIDE_YOUNGSTER1
const RUINSOFALPHOUTSIDE_SCIENTIST
const RUINSOFALPHOUTSIDE_FISHER
const RUINSOFALPHOUTSIDE_YOUNGSTER2
const RUINSOFALPHOUTSIDE_YOUNGSTER3
RuinsOfAlphOutside_MapScripts:
db 2 ; scene scripts
scene_script .DummyScene0 ; SCENE_RUINSOFALPHOUTSIDE_NOTHING
scene_script .DummyScene1 ; SCENE_RUINSOFALPHOUTSIDE_GET_UNOWN_DEX
db 1 ; callbacks
callback MAPCALLBACK_OBJECTS, .ScientistCallback
.DummyScene0:
end
.DummyScene1:
end
.ScientistCallback:
2015-07-10 05:08:03 -07:00
checkflag ENGINE_UNOWN_DEX
iftrue .NoScientist
2013-09-24 00:48:58 -07:00
checkevent EVENT_MADE_UNOWN_APPEAR_IN_RUINS
iftrue .MaybeScientist
jump .NoScientist
.MaybeScientist:
checkcode VAR_UNOWNCOUNT
2018-02-02 18:09:17 -08:00
ifgreater 2, .YesScientist
jump .NoScientist
.YesScientist:
2015-11-26 21:22:14 -08:00
appear RUINSOFALPHOUTSIDE_SCIENTIST
setscene SCENE_RUINSOFALPHOUTSIDE_GET_UNOWN_DEX
return
.NoScientist:
2015-11-26 21:22:14 -08:00
disappear RUINSOFALPHOUTSIDE_SCIENTIST
setscene SCENE_RUINSOFALPHOUTSIDE_NOTHING
return
RuinsOfAlphOutsideScientistScene1:
objectface RUINSOFALPHOUTSIDE_SCIENTIST, UP
objectface PLAYER, DOWN
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x58044
RuinsOfAlphOutsideScientistScene2:
objectface RUINSOFALPHOUTSIDE_SCIENTIST, LEFT
objectface PLAYER, RIGHT
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x58044
2015-07-10 01:20:21 -07:00
ScientistScript_0x58043:
faceplayer
2015-07-10 01:20:21 -07:00
UnknownScript_0x58044:
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x580c7
2015-11-25 07:16:29 -08:00
waitbutton
closetext
playmusic MUSIC_SHOW_ME_AROUND
2015-11-26 21:22:14 -08:00
follow RUINSOFALPHOUTSIDE_SCIENTIST, PLAYER
applymovement RUINSOFALPHOUTSIDE_SCIENTIST, MovementData_0x580ba
disappear RUINSOFALPHOUTSIDE_SCIENTIST
stopfollow
applymovement PLAYER, MovementData_0x580c5
setmapscene RUINS_OF_ALPH_RESEARCH_CENTER, SCENE_RUINSOFALPHRESEARCHCENTER_GET_UNOWN_DEX
warpcheck
end
2015-07-10 01:20:21 -07:00
FisherScript_0x58061:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2015-07-10 05:08:03 -07:00
checkevent EVENT_TALKED_TO_RUINS_COWARD
iftrue .Next
setevent EVENT_TALKED_TO_RUINS_COWARD
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x583a4
2015-11-29 19:29:45 -08:00
buttonsound
.Next:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x58420
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
YoungsterScript_0x58076:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x58449
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
YoungsterScript_0x5807e:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5848e
2015-11-25 07:16:29 -08:00
waitbutton
closetext
objectface RUINSOFALPHOUTSIDE_YOUNGSTER3, UP
end
2015-07-10 01:20:21 -07:00
TrainerPsychicNathan:
trainer PSYCHIC_T, NATHAN, EVENT_BEAT_PSYCHIC_NATHAN, PsychicNathanSeenText, PsychicNathanBeatenText, 0, .Script
2017-12-17 17:45:04 -08:00
.Script:
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
2017-12-10 12:36:58 -08:00
writetext PsychicNathanAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-07-10 01:20:21 -07:00
TrainerSuperNerdStan:
trainer SUPER_NERD, STAN, EVENT_BEAT_SUPER_NERD_STAN, UnknownText_0x581e5, UnknownText_0x58217, 0, .Script
2017-12-17 17:45:04 -08:00
.Script:
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
2017-12-17 17:45:04 -08:00
writetext SuperNerdStanAfterBattleText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
RuinsOfAlphOutsideSignpost0Script:
jumptext UnknownText_0x58325
RuinsOfAlphOutsideSignpost1Script:
jumptext UnknownText_0x58342
RuinsOfAlphOutsideSignpost2Script:
jumptext UnknownText_0x58362
2015-07-10 01:20:21 -07:00
MovementData_0x580ba:
2016-05-14 10:46:14 -07:00
step RIGHT
step RIGHT
step RIGHT
step RIGHT
step UP
step UP
step RIGHT
step RIGHT
step UP
step UP
step_end
2015-07-10 01:20:21 -07:00
MovementData_0x580c5:
2016-05-14 10:46:14 -07:00
step UP
step_end
2015-07-10 01:20:21 -07:00
UnknownText_0x580c7:
text "Hm? That's a #-"
line "DEX, isn't it?"
cont "May I see it?"
para "There are so many"
line "kinds of #MON."
para "Hm? What's this?"
para "What is this"
line "#MON?"
para "It looks like the"
line "strange writing on"
para "the walls of the"
line "RUINS."
para "If those drawings"
line "are really #-"
cont "MON, there should"
cont "be many more."
para "I know! Let me up-"
line "grade your #-"
cont "DEX. Follow me."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x581e5:
text "What do you want?"
line "I'm studying--"
cont "don't disturb me!"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x58217:
text "Sorry…"
line "I'm frustrated by"
para "our lack of real"
line "understanding…"
done
2017-12-17 17:45:04 -08:00
SuperNerdStanAfterBattleText:
text "The RUINS are from"
line "about 1500 years"
cont "ago."
para "Nobody knows who"
line "built them."
para "It's also not"
line "known if the #-"
cont "MON statues have"
cont "any meaning."
para "It's all one big"
line "mystery…"
done
2015-07-10 01:20:21 -07:00
PsychicNathanSeenText:
text "Hmmm… This is a"
line "strange place."
done
2015-07-10 01:20:21 -07:00
PsychicNathanBeatenText:
text "…"
done
2017-12-10 12:36:58 -08:00
PsychicNathanAfterBattleText:
text "I like thinking"
line "here."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x58325:
text "MYSTERY STONE"
line "PANEL CHAMBER"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x58342:
text "RUINS OF ALPH"
line "VISITORS WELCOME"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x58362:
text "RUINS OF ALPH"
line "RESEARCH CENTER"
para "THE AUTHORITY ON"
line "THE RUINS OF ALPH"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x583a4:
text "While exploring"
line "the RUINS, we"
para "suddenly noticed"
line "an odd presence."
para "We all got scared"
line "and ran away."
para "You should be"
line "careful too."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x58420:
text "The RUINS hide a"
line "huge secret!"
para "…I think…"
done
2015-07-10 01:20:21 -07:00
UnknownText_0x58449:
text "There are many"
line "kinds of UNOWN, so"
para "we use them for"
line "our secret codes."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5848e:
text "A… H… E… A… D…"
line "Hmm…"
para "What?"
para "I'm decoding this"
line "message!"
done
RuinsOfAlphOutside_MapEvents:
db 0, 0 ; filler
db 11 ; warp events
2018-02-01 19:22:07 -08:00
warp_event 2, 17, RUINS_OF_ALPH_HO_OH_CHAMBER, 1
warp_event 14, 7, RUINS_OF_ALPH_KABUTO_CHAMBER, 1
warp_event 2, 29, RUINS_OF_ALPH_OMANYTE_CHAMBER, 1
2018-02-01 18:54:00 -08:00
warp_event 16, 33, RUINS_OF_ALPH_AERODACTYL_CHAMBER, 1
warp_event 10, 13, RUINS_OF_ALPH_INNER_CHAMBER, 1
warp_event 17, 11, RUINS_OF_ALPH_RESEARCH_CENTER, 1
2018-02-01 19:22:07 -08:00
warp_event 6, 19, UNION_CAVE_B1F, 1
warp_event 6, 27, UNION_CAVE_B1F, 2
warp_event 7, 5, ROUTE_36_RUINS_OF_ALPH_GATE, 3
2018-02-01 18:54:00 -08:00
warp_event 13, 20, ROUTE_32_RUINS_OF_ALPH_GATE, 1
warp_event 13, 21, ROUTE_32_RUINS_OF_ALPH_GATE, 2
db 2 ; coord events
coord_event 11, 14, SCENE_RUINSOFALPHOUTSIDE_GET_UNOWN_DEX, RuinsOfAlphOutsideScientistScene1
coord_event 10, 15, SCENE_RUINSOFALPHOUTSIDE_GET_UNOWN_DEX, RuinsOfAlphOutsideScientistScene2
db 3 ; bg events
2018-02-01 19:22:07 -08:00
bg_event 16, 8, BGEVENT_READ, RuinsOfAlphOutsideSignpost0Script
bg_event 12, 16, BGEVENT_READ, RuinsOfAlphOutsideSignpost1Script
bg_event 18, 12, BGEVENT_READ, RuinsOfAlphOutsideSignpost2Script
db 5 ; object events
2018-02-01 19:22:07 -08:00
object_event 4, 20, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_TRAINER, 1, TrainerPsychicNathan, -1
object_event 11, 15, SPRITE_SCIENTIST, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, ScientistScript_0x58043, EVENT_RUINS_OF_ALPH_OUTSIDE_SCIENTIST
object_event 13, 17, SPRITE_FISHER, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, FisherScript_0x58061, EVENT_RUINS_OF_ALPH_OUTSIDE_TOURIST_FISHER
object_event 14, 11, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, YoungsterScript_0x58076, EVENT_RUINS_OF_ALPH_OUTSIDE_TOURIST_YOUNGSTERS
2018-02-01 19:22:07 -08:00
object_event 12, 8, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, YoungsterScript_0x5807e, EVENT_RUINS_OF_ALPH_OUTSIDE_TOURIST_YOUNGSTERS