Jump to content

How do I modify an existing character (made by Klei)

Recommended Posts

I want to change some of Warly's abilities and stats, and I also wanted to do it for a dedicated server, so I thought a mod would be the easiest way to do this. I can't find anything on how do this. I have little experience with modding in DST, but I have tried a little, but anything will help.

Link to comment
Share on other sites

As far as I know, using AddPrefabPostInit("warly", function...) should do the trick.

Changing characters stats is extremely easy, just put this in the funcion:

inst.components.health:SetMaxHealth(350) -- This sets max hp of a character
inst.components.hunger:SetMax(500) -- This sets max hunger of a character
inst.components.sanity:SetMax(459) -- This sets max sanity of a character

Adding some more abilities is more complicated and depending on what your ability is supposed to be it can be really hard and complicated. I suggest you check games files or mods for something that is similar to what you want and learn from it.

  • Like 1
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

  • Create New...