mirror of https://github.com/pret/pokecrystal.git
139 lines
2.4 KiB
NASM
139 lines
2.4 KiB
NASM
KrissHouse2F_MapScriptHeader:
|
|
; trigger count
|
|
db 0
|
|
|
|
; callback count
|
|
db 2
|
|
|
|
; callbacks
|
|
|
|
dbw 5, UnknownScript_0x7abb4
|
|
|
|
dbw 1, UnknownScript_0x7abc5
|
|
|
|
UnknownScript_0x7abb3:
|
|
end
|
|
|
|
UnknownScript_0x7abb4:
|
|
special ToggleDecorationsVisibility
|
|
setevent EVENT_007
|
|
checkevent EVENT_036
|
|
iftrue UnknownScript_0x7abc4
|
|
jumpstd initializeevents
|
|
return
|
|
|
|
UnknownScript_0x7abc4:
|
|
return
|
|
|
|
UnknownScript_0x7abc5:
|
|
special Function26feb
|
|
return
|
|
|
|
|
|
db 0, 0, 0 ; filler
|
|
|
|
|
|
Doll1:
|
|
describedecoration $1
|
|
|
|
Doll2:
|
|
describedecoration $2
|
|
|
|
BigDoll:
|
|
describedecoration $3
|
|
|
|
GameConsole:
|
|
describedecoration $4
|
|
|
|
KrissHousePoster:
|
|
dw $02cc ; event
|
|
dw .Script
|
|
.Script
|
|
describedecoration $0
|
|
|
|
KrissHouseRadio:
|
|
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
|
|
iftrue .NormalRadio
|
|
checkevent EVENT_LISTENED_TO_INITIAL_RADIO
|
|
iftrue .AbbreviatedRadio
|
|
playmusic MUSIC_POKEMON_TALK
|
|
loadfont
|
|
writetext KrisRadioText1
|
|
pause 45
|
|
writetext KrisRadioText2
|
|
pause 45
|
|
writetext KrisRadioText3
|
|
pause 45
|
|
musicfadeout MUSIC_NEW_BARK_TOWN, $10
|
|
writetext KrisRadioText4
|
|
pause 45
|
|
loadmovesprites
|
|
setevent EVENT_LISTENED_TO_INITIAL_RADIO
|
|
end
|
|
.NormalRadio
|
|
jumpstd radio1
|
|
.AbbreviatedRadio
|
|
loadfont
|
|
writetext KrisRadioText4
|
|
pause 45
|
|
loadmovesprites
|
|
end
|
|
|
|
KrissHouseBookshelf:
|
|
jumpstd picturebookshelf
|
|
|
|
KrissHousePC:
|
|
loadfont
|
|
special Functionc2e7
|
|
iftrue .Warp
|
|
loadmovesprites
|
|
end
|
|
.Warp
|
|
warp 0, 0, $0, $0
|
|
end
|
|
|
|
KrisRadioText1:
|
|
text "PROF.OAK'S #MON"
|
|
line "TALK! Please tune"
|
|
cont "in next time!"
|
|
done
|
|
|
|
KrisRadioText2:
|
|
text "#MON CHANNEL!"
|
|
done
|
|
|
|
KrisRadioText3:
|
|
text "This is DJ MARY,"
|
|
line "your co-host!"
|
|
done
|
|
|
|
KrisRadioText4:
|
|
text "#MON!"
|
|
line "#MON CHANNEL…"
|
|
done
|
|
|
|
KrissHouse2F_MapEventHeader:
|
|
; filler
|
|
db 0, 0
|
|
|
|
; warps
|
|
db 1
|
|
warp_def $0, $7, 3, GROUP_KRISS_HOUSE_1F, MAP_KRISS_HOUSE_1F
|
|
|
|
; xy triggers
|
|
db 0
|
|
|
|
; signposts
|
|
db 4
|
|
signpost 1, 2, SIGNPOST_UP, KrissHousePC
|
|
signpost 1, 3, SIGNPOST_READ, KrissHouseRadio
|
|
signpost 1, 5, SIGNPOST_READ, KrissHouseBookshelf
|
|
signpost 0, 6, SIGNPOST_IFSET, KrissHousePoster
|
|
|
|
; people-events
|
|
db 4
|
|
person_event SPRITE_CONSOLE, 6, 8, DOWN << 2 | $1, $0, -1, -1, $0, 0, GameConsole, EVENT_KRISS_HOUSE_2F_CONSOLE
|
|
person_event SPRITE_DOLL_1, 8, 8, DOWN << 2 | $1, $0, -1, -1, $0, 0, Doll1, EVENT_KRISS_HOUSE_2F_DOLL_1
|
|
person_event SPRITE_DOLL_2, 8, 9, DOWN << 2 | $1, $0, -1, -1, $0, 0, Doll2, EVENT_KRISS_HOUSE_2F_DOLL_2
|
|
person_event SPRITE_BIG_DOLL, 5, 4, DOWN << 2 | $21, $0, -1, -1, $0, 0, BigDoll, EVENT_KRISS_HOUSE_2F_BIG_DOLL
|