Jump to content

How to modify a TaskSet?


Recommended Posts

How can I modify a TaskSet in my mod? I want to be able to change the required and optional tasks when a new world is generated. I don't see an AddTaskSetPostInit function, but I do see an AddTaskSetPreInit function. The problem is, I don't know how to use it, or if it can be used to do what I want to do. It takes a name and a function, the name I'm assuming is the name of the TaskSet to modify, but it's a PreInit so that makes it sound like the TaskSet doesn't even exists at the time this runs, and I don't know what arguments the function takes.

 

I'm so dumb. I was trying to use AddTaskSetPreInit in modmain.lua instead of modworldgenmain.lua

Edited by HomShaBom
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...