Jump to content

Scenario


_Q_

Recommended Posts

So I want to add scenario to Islands level I created.

The thing is I want season to change every time player uses a wormhole.

That can be done with other ways like prefab post inits and such but then it would affect all savefile if the mod is enabled.

Scenarios seems ideal for the job, I found out they are attached to objects like set pieces and such, now it would possbile to attach it to wormhole prefab, and how to do that? (can't find anything about using scenarios)

Link to comment
Share on other sites

Scenarios are just for set pieces, unfortunately. But you can do

AddPrefabPostInit("wormhole", function(inst)    if GetWorld() and GetWorld().meta.level_id == "ISLANDS" then        -- stuff    endend)
(I found about this yesterday myself, when implementing a Caves Preview-like survival preset for U&A; this was also how I found out dlc support at worldgen is broken)
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...