pokecrystal/maps/PlayersHouse2F.asm

134 lines
3.0 KiB
NASM
Raw Normal View History

object_const_def
2018-01-23 00:10:09 +00:00
const PLAYERSHOUSE2F_CONSOLE
const PLAYERSHOUSE2F_DOLL_1
const PLAYERSHOUSE2F_DOLL_2
const PLAYERSHOUSE2F_BIG_DOLL
2015-11-27 05:22:14 +00:00
2018-01-23 00:10:09 +00:00
PlayersHouse2F_MapScripts:
def_scene_scripts
def_callbacks
callback MAPCALLBACK_NEWMAP, .InitializeRoom
2020-04-16 13:30:50 +00:00
callback MAPCALLBACK_TILES, .SetUpTileDecorations
.DummyScene: ; unreferenced
end
.InitializeRoom:
special ToggleDecorationsVisibility
setevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_8
checkevent EVENT_INITIALIZED_EVENTS
iftrue .SkipInitialization
jumpstd InitializeEventsScript
endcallback
.SkipInitialization:
endcallback
2020-04-16 13:30:50 +00:00
.SetUpTileDecorations:
special ToggleMaptileDecorations
endcallback
2020-11-04 00:53:07 +00:00
db 0, 0, 0 ; unused
2013-05-01 03:10:21 +00:00
2021-03-11 22:43:20 +00:00
PlayersHouseDoll1Script::
2018-01-12 06:40:20 +00:00
describedecoration DECODESC_LEFT_DOLL
2021-03-11 22:43:20 +00:00
PlayersHouseDoll2Script:
2018-01-12 06:40:20 +00:00
describedecoration DECODESC_RIGHT_DOLL
2021-03-11 22:43:20 +00:00
PlayersHouseBigDollScript:
2018-01-12 06:40:20 +00:00
describedecoration DECODESC_BIG_DOLL
2021-03-11 22:43:20 +00:00
PlayersHouseGameConsoleScript:
2018-01-12 06:40:20 +00:00
describedecoration DECODESC_CONSOLE
2021-03-11 22:43:20 +00:00
PlayersHousePosterScript:
2018-01-23 00:10:09 +00:00
conditional_event EVENT_PLAYERS_ROOM_POSTER, .Script
.Script:
2018-01-12 06:40:20 +00:00
describedecoration DECODESC_POSTER
PlayersHouseRadioScript:
2013-09-24 07:48:58 +00:00
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
2015-06-26 04:01:08 +00:00
iftrue .NormalRadio
checkevent EVENT_LISTENED_TO_INITIAL_RADIO
iftrue .AbbreviatedRadio
playmusic MUSIC_POKEMON_TALK
2015-12-09 23:25:44 +00:00
opentext
2018-01-23 00:10:09 +00:00
writetext PlayersRadioText1
pause 45
2018-01-23 00:10:09 +00:00
writetext PlayersRadioText2
pause 45
2018-01-23 00:10:09 +00:00
writetext PlayersRadioText3
pause 45
musicfadeout MUSIC_NEW_BARK_TOWN, 16
2018-01-23 00:10:09 +00:00
writetext PlayersRadioText4
pause 45
2015-11-25 15:16:29 +00:00
closetext
2015-06-26 04:01:08 +00:00
setevent EVENT_LISTENED_TO_INITIAL_RADIO
end
2015-11-02 22:38:08 +00:00
.NormalRadio:
jumpstd Radio1Script
2015-11-02 22:38:08 +00:00
.AbbreviatedRadio:
2015-12-09 23:25:44 +00:00
opentext
2018-01-23 00:10:09 +00:00
writetext PlayersRadioText4
pause 45
2015-11-25 15:16:29 +00:00
closetext
end
PlayersHouseBookshelfScript:
jumpstd PictureBookshelfScript
PlayersHousePCScript:
2015-12-09 23:25:44 +00:00
opentext
special PlayersHousePC
2015-06-26 04:01:08 +00:00
iftrue .Warp
2015-11-25 15:16:29 +00:00
closetext
end
.Warp:
warp NONE, 0, 0
end
2018-01-23 00:10:09 +00:00
PlayersRadioText1:
text "PROF.OAK'S #MON"
line "TALK! Please tune"
cont "in next time!"
done
2018-01-23 00:10:09 +00:00
PlayersRadioText2:
text "#MON CHANNEL!"
done
2018-01-23 00:10:09 +00:00
PlayersRadioText3:
text "This is DJ MARY,"
line "your co-host!"
done
2018-01-23 00:10:09 +00:00
PlayersRadioText4:
text "#MON!"
line "#MON CHANNEL…"
done
2018-01-23 00:10:09 +00:00
PlayersHouse2F_MapEvents:
db 0, 0 ; filler
def_warp_events
2018-02-02 03:22:07 +00:00
warp_event 7, 0, PLAYERS_HOUSE_1F, 3
def_coord_events
def_bg_events
2018-02-02 03:22:07 +00:00
bg_event 2, 1, BGEVENT_UP, PlayersHousePCScript
bg_event 3, 1, BGEVENT_READ, PlayersHouseRadioScript
bg_event 5, 1, BGEVENT_READ, PlayersHouseBookshelfScript
2021-03-11 22:43:20 +00:00
bg_event 6, 0, BGEVENT_IFSET, PlayersHousePosterScript
def_object_events
2021-03-11 22:43:20 +00:00
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseGameConsoleScript, EVENT_PLAYERS_HOUSE_2F_CONSOLE
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseDoll1Script, EVENT_PLAYERS_HOUSE_2F_DOLL_1
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseDoll2Script, EVENT_PLAYERS_HOUSE_2F_DOLL_2
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseBigDollScript, EVENT_PLAYERS_HOUSE_2F_BIG_DOLL