Jump to content

Custom slideshows for modded Acts?


Recommended Posts

Is it currently possible to attach custom slideshow data to a player Act from a mod, using the "slides" field in AddAct? Say I've got my own starting_slides.lua in my mod folder - with placeholder images and text - but entering slides = { "starting_slides.lua", }, and slides = { "MODALIAS:starting_slides.lua", }, both don't do anything, not even break - it just jumps straight to the start of the quest on new game start.

Link to comment
Share on other sites

  • Developer

You'll need to call Content.AddSlideShow to first load your slides into the content db, and then reference it by the provided id:

modinit.lua:

local slide_id = "starting_slides"
local slide_tables = require "MODALIAS:starting_slides"
Content.AddSlideShow( slide_id, slide_tables )

then, in AddAct:

slides = { "starting_slides" }

 

I've updated Shel's Adventure to include some custom slides, as a reference.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...