Jump to content

Recommended Posts

Hi! I wanted to create a character mod, but want to copy the data of an existing character, and only edit the sprites/ animations. Is there any guide on doing that? I need the abilities, stats, animations, and starting items to be the same of an existing DST character, but with a different look (sprites)

A little bit of an experimental idea. You could just duplicate the character file and change the build manually. But you could also do something like this:

local wicker = require "prefabs/wickerbottom" -- Using Wickerbottom as a template
local testchar = _G.deepcopy(wicker) -- Fully copying Wicker's prefab

testchar.fn = function(...) -- Changing the main fn to include a build switch
    local inst = wicker.fn(...)

    inst.AnimState:SetBuild("yourbuild")
    
    return inst
end

testchar.name = "testchar" -- Changing the name of your prefab

return testchar

 

You would need to put that in scripts/prefabs/testchar.lua. This method definitely is the shortest, and most secure if Klei ever decides to modify Wickerbottoms file, but it might cause some bugs so I'd recommend testing it a bunch.

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...