Jump to content

Recommended Posts

Hey guys,  as you can see im new in froums.  I have lot of questions to ask im hopefully need need some answers please help me to figure out

1)how can i give my character shape shifting ability

2)how can i spawn my character with costom item : like wendy flower but wanna do shape shifting when you activate that. 

3)how can i make that mob friendly when my custom use that shape shifting item

Im so sry for lot of question and just 1 more thing 

4)how can i upload my mod to workshop

Im so so sry for lot of questions and kinda in this thing plz help thanks .:?

Link to comment
https://forums.kleientertainment.com/forums/topic/93869-please-help-me/
Share on other sites

You ask for a some complex stuff (the shape shifting part), and i'm unable to help with that. It will be hard to find someone with the knowledge needed. Maybe a first mod less ambitious would be better to learn the basic.

For starting with items in inventory, you need something like this in your character.lua file :


local start_inv =
{
    default =
    {
        "abigail_flower",
    },
}

I don't know how much this line is needed too :

    inst.starting_inventory = start_inv[TheNet:GetServerGameMode()] or start_inv.default


Uploading mod in workshop : you need don't starve mod tool, you'll find it on steam, in tools. Then you need to have a modmain.lua file and a modinfo.lua file, containing the right informations. Use other mods as example if needed.

Shapeshifting for the most part is just a build swap, and overiding on what your character can and can't do. E.g. woodie fully changes into a mob rather than a player as he has more restricted actions.

Wolfgang also has shapeshifting in the form of just changing builds. While maintaining full player controls.

Also I recommend checking out singleplayer and multiplayer versions of their files. As the multiplayer version is designed with skin compatibility in mind.

Shapeshifting seems to be on the workshop in many forms, and searching for transform and other similar words yields good mods to copy code from.

As for making custom items rightclickable will likely require dabbling into custom actions. Not sure if there is a tutorial around here, but its relatively easy to do by copying and modifying mods and referencing the code.

I don't understand your third question and I won't have cell signal for the next couple of days.

Hope this helps.

1 hour ago, dr.hunter said:

You mean its hard to make shapeshifting :*(

It requires to know a little things about code itself so you aren't totally lost. Your questions let me think that you start looking at coding, and it could be easier to gain a little experience before doing something like shapeshifting. At least, i would suggest to do stuff step by step, like : creating your custom character, then adding a starting item (existing item), then creating your custom item, then trying to do the shapeshifter related stuff.

guys, I changed my mind I want my character to build some statue which increases sanity, health, food, and fighting etc... 

and I also wanted a statue which decreases sanity 

remember I wanna make this statue in my building list so I want to add 1 new building in the list and I want it to make that to increase players which are nearby  10 blocks

im still so sry for bothering u all guyz i will be thanked full if u help me 

Edited by dr.hunter

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