HomShaBom Posted June 14, 2018 Share Posted June 14, 2018 (edited) 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 June 15, 2018 by HomShaBom Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now