mirror of
https://github.com/pret/pokegold.git
synced 2026-06-01 01:34:57 -05:00
106 lines
2.7 KiB
NASM
106 lines
2.7 KiB
NASM
const_def 2 ; object constants
|
|
const RUINSOFALPHKABUTOCHAMBER_RECEPTIONIST
|
|
const RUINSOFALPHKABUTOCHAMBER_SCIENTIST
|
|
|
|
RuinsOfAlphKabutoChamber_MapScripts:
|
|
db 0 ; scene scripts
|
|
|
|
db 1 ; callbacks
|
|
callback MAPCALLBACK_TILES, RuinsOfAlphKabutoChamberHiddenDoors
|
|
|
|
RuinsOfAlphKabutoChamberReceptionistScript:
|
|
jumptextfaceplayer RuinsOfAlphKabutoChamberReceptionistText
|
|
|
|
RuinsOfAlphKabutoChamberHiddenDoors:
|
|
checkevent EVENT_SOLVED_KABUTO_PUZZLE
|
|
iffalse .FloorClosed
|
|
return
|
|
|
|
.FloorClosed:
|
|
changeblock 2, 2, $01 ; left floor
|
|
changeblock 4, 2, $02 ; right floor
|
|
return
|
|
|
|
RuinsOfAlphKabutoChamberPuzzle:
|
|
refreshscreen
|
|
writebyte UNOWNPUZZLE_KABUTO
|
|
special UnownPuzzle
|
|
closetext
|
|
iftrue .PuzzleComplete
|
|
end
|
|
|
|
.PuzzleComplete:
|
|
setevent EVENT_RUINS_OF_ALPH_INNER_CHAMBER_TOURISTS
|
|
setevent EVENT_SOLVED_KABUTO_PUZZLE
|
|
setflag ENGINE_UNLOCKED_UNOWNS_A_TO_K
|
|
setevent EVENT_RUINS_OF_ALPH_KABUTO_CHAMBER_RECEPTIONIST
|
|
setmapscene RUINS_OF_ALPH_INNER_CHAMBER, SCENE_RUINSOFALPHINNERCHAMBER_STRANGE_PRESENCE
|
|
earthquake 30
|
|
showemote EMOTE_SHOCK, PLAYER, 15
|
|
changeblock 2, 2, $18 ; left hole
|
|
changeblock 4, 2, $19 ; right hole
|
|
reloadmappart
|
|
playsound SFX_STRENGTH
|
|
earthquake 80
|
|
warpcheck
|
|
end
|
|
|
|
RuinsOfAlphKabutoChamberAncientReplica:
|
|
jumptext RuinsOfAlphKabutoChamberAncientReplicaText
|
|
|
|
RuinsOfAlphKabutoChamberDescriptionSign:
|
|
jumptext RuinsOfAlphKabutoChamberDescriptionText
|
|
|
|
RuinsOfAlphKabutoChamberReceptionistText:
|
|
text "Welcome to this"
|
|
line "chamber."
|
|
|
|
para "There are sliding"
|
|
line "panels that depict"
|
|
|
|
para "a #MON drawn by"
|
|
line "the ancients."
|
|
|
|
para "Slide the panels"
|
|
line "around to form the"
|
|
cont "picture."
|
|
|
|
para "To the right is a"
|
|
line "description of the"
|
|
cont "#MON."
|
|
done
|
|
|
|
RuinsOfAlphKabutoChamberAncientReplicaText:
|
|
text "It's a replica of"
|
|
line "an ancient #-"
|
|
cont "MON."
|
|
done
|
|
|
|
RuinsOfAlphKabutoChamberDescriptionText:
|
|
text "A #MON that hid"
|
|
line "on the sea floor."
|
|
|
|
para "Eyes on its back"
|
|
line "scanned the area."
|
|
done
|
|
|
|
RuinsOfAlphKabutoChamber_MapEvents:
|
|
db 0, 0 ; filler
|
|
|
|
db 4 ; warp events
|
|
warp_event 3, 9, RUINS_OF_ALPH_OUTSIDE, 2
|
|
warp_event 4, 9, RUINS_OF_ALPH_OUTSIDE, 2
|
|
warp_event 3, 3, RUINS_OF_ALPH_INNER_CHAMBER, 4
|
|
warp_event 4, 3, RUINS_OF_ALPH_INNER_CHAMBER, 5
|
|
|
|
db 0 ; coord events
|
|
|
|
db 4 ; bg events
|
|
bg_event 2, 3, BGEVENT_READ, RuinsOfAlphKabutoChamberAncientReplica
|
|
bg_event 5, 3, BGEVENT_READ, RuinsOfAlphKabutoChamberAncientReplica
|
|
bg_event 3, 2, BGEVENT_UP, RuinsOfAlphKabutoChamberPuzzle
|
|
bg_event 4, 2, BGEVENT_UP, RuinsOfAlphKabutoChamberDescriptionSign
|
|
|
|
db 1 ; object events
|
|
object_event 5, 5, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, RuinsOfAlphKabutoChamberReceptionistScript, EVENT_RUINS_OF_ALPH_KABUTO_CHAMBER_RECEPTIONIST
|