BB Marioni Posted April 2, 2023 Share Posted April 2, 2023 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) Link to comment https://forums.kleientertainment.com/forums/topic/146860-copying-existing-characters-for-a-new-mod-character/ Share on other sites More sharing options...
-LukaS- Posted April 5, 2023 Share Posted April 5, 2023 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. Link to comment https://forums.kleientertainment.com/forums/topic/146860-copying-existing-characters-for-a-new-mod-character/#findComment-1628196 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