pokecrystal-board/maps/KrissHouse2F.asm

142 lines
2.8 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const KRISSHOUSE2F_CONSOLE
const KRISSHOUSE2F_DOLL_1
const KRISSHOUSE2F_DOLL_2
const KRISSHOUSE2F_BIG_DOLL
KrissHouse2F_MapScripts:
.SceneScripts:
db 0
.MapCallbacks:
db 2
callback MAPCALLBACK_NEWMAP, .InitializeRoom
callback MAPCALLBACK_TILES, .SetSpawn
; unused
.Null:
end
.InitializeRoom:
2018-01-02 08:13:57 -08:00
special Special_ToggleDecorationsVisibility
setevent EVENT_IN_YOUR_ROOM
checkevent EVENT_INITIALIZED_EVENTS
iftrue .SkipInitialization
2015-06-24 18:26:24 -07:00
jumpstd initializeevents
return
.SkipInitialization:
return
.SetSpawn:
2018-01-02 08:13:57 -08:00
special Special_ToggleMaptileDecorations
return
2013-04-30 20:10:21 -07:00
db 0, 0, 0 ; filler
2018-02-04 19:45:04 -08:00
DecoDoll1Script:
2018-01-11 22:40:20 -08:00
describedecoration DECODESC_LEFT_DOLL
2018-02-04 19:45:04 -08:00
DecoDoll2Script:
2018-01-11 22:40:20 -08:00
describedecoration DECODESC_RIGHT_DOLL
2018-02-04 19:45:04 -08:00
DecoBigDollScript:
2018-01-11 22:40:20 -08:00
describedecoration DECODESC_BIG_DOLL
2018-02-04 19:45:04 -08:00
DecoGameConsoleScript:
2018-01-11 22:40:20 -08:00
describedecoration DECODESC_CONSOLE
2018-02-04 19:45:04 -08:00
DecoPosterScript:
conditional_event EVENT_KRISS_ROOM_POSTER, .Script
.Script:
2018-01-11 22:40:20 -08:00
describedecoration DECODESC_POSTER
2015-06-25 21:01:08 -07:00
KrissHouseRadio:
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
2015-06-25 21:01:08 -07:00
iftrue .NormalRadio
checkevent EVENT_LISTENED_TO_INITIAL_RADIO
iftrue .AbbreviatedRadio
playmusic MUSIC_POKEMON_TALK
2015-12-09 15:25:44 -08:00
opentext
2015-06-25 21:01:08 -07:00
writetext KrisRadioText1
pause 45
2015-06-25 21:01:08 -07:00
writetext KrisRadioText2
pause 45
2015-06-25 21:01:08 -07:00
writetext KrisRadioText3
pause 45
musicfadeout MUSIC_NEW_BARK_TOWN, 16
2015-06-25 21:01:08 -07:00
writetext KrisRadioText4
pause 45
2015-11-25 07:16:29 -08:00
closetext
2015-06-25 21:01:08 -07:00
setevent EVENT_LISTENED_TO_INITIAL_RADIO
end
2015-11-02 14:38:08 -08:00
.NormalRadio:
2015-06-23 14:02:58 -07:00
jumpstd radio1
2015-11-02 14:38:08 -08:00
.AbbreviatedRadio:
2015-12-09 15:25:44 -08:00
opentext
2015-06-25 21:01:08 -07:00
writetext KrisRadioText4
pause 45
2015-11-25 07:16:29 -08:00
closetext
end
2015-06-25 21:01:08 -07:00
KrissHouseBookshelf:
jumpstd picturebookshelf
2015-06-25 21:01:08 -07:00
KrissHousePC:
2015-12-09 15:25:44 -08:00
opentext
special Special_KrissHousePC
2015-06-25 21:01:08 -07:00
iftrue .Warp
2015-11-25 07:16:29 -08:00
closetext
end
.Warp:
warp NONE, 0, 0
end
2015-06-25 21:01:08 -07:00
KrisRadioText1:
text "PROF.OAK'S #MON"
line "TALK! Please tune"
cont "in next time!"
done
2015-06-25 21:01:08 -07:00
KrisRadioText2:
text "#MON CHANNEL!"
done
2015-06-25 21:01:08 -07:00
KrisRadioText3:
text "This is DJ MARY,"
line "your co-host!"
done
2015-06-25 21:01:08 -07:00
KrisRadioText4:
text "#MON!"
line "#MON CHANNEL…"
done
KrissHouse2F_MapEvents:
; filler
db 0, 0
.Warps:
db 1
warp_def 7, 0, 3, KRISS_HOUSE_1F
.CoordEvents:
db 0
.BGEvents:
db 4
bg_event 2, 1, BGEVENT_UP, KrissHousePC
bg_event 3, 1, BGEVENT_READ, KrissHouseRadio
bg_event 5, 1, BGEVENT_READ, KrissHouseBookshelf
2018-02-04 19:45:04 -08:00
bg_event 6, 0, BGEVENT_IFSET, DecoPosterScript
.ObjectEvents:
db 4
2018-02-04 19:45:04 -08:00
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DecoGameConsoleScript, EVENT_KRISS_HOUSE_2F_CONSOLE
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DecoDoll1Script, EVENT_KRISS_HOUSE_2F_DOLL_1
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DecoDoll2Script, EVENT_KRISS_HOUSE_2F_DOLL_2
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DecoBigDollScript, EVENT_KRISS_HOUSE_2F_BIG_DOLL