Jump to content

Need help with custom character's coding and stuff


Recommended Posts

Hello.

 

Alright, so. I'm pretty new to modding (just started yesterday) and is making my own custom character. I've done the basics by editing an already existing character template to fit my character. But I couldn't figure out how to do some stuffs that I wanted to add to the character such as:

- Higher sanity drain when near monsters and all other sanity draining stuffs

- Character deals more damage against the Chess monsters (robot chess pieces things)

 

So... could you guys teach me how to do those stuff? Or maybe you could just paste a code that does the things I mentioned above...! :<

 

Now for a weird question section

1. How/Is it possible to get a data on the default characters like Wendy? Because she has that thing which makes her sanity drains less when near monsters and all that stuff and maybe I can paste that certain line into my character and make it do the opposite, though I'd still have problems where to put the lines anyway. It still would be nice to get the datas on the default characters though. :<

2. .. that's all

 

Thank you :<

 

 

Link to comment
Share on other sites

Or maybe you could just paste a code that does the things I mentioned above...! :<

SteamApps\common\Don't Starve Together\data\scripts

everthings in there.

some helpful tutorials to understand what u are looking for:

http://forums.kleientertainment.com/topic/25850-wots-the-diff-prefabs-components-stategraphs-and-brains/

http://forums.kleientertainment.com/topic/50811-guide-modding-practices-series-index/

and there are more helpful tutorials on the top of the modforum here and on the top of the DS modforum.

 

Higher sanity drain

Wendy is a good start, but everything causes sanitydrain in different ways. if u really just want EVERYTHING to drain more, it might be way easier to just reduce her max sanity^^

 

Character deals more damage against the Chess monsters

search for onattackother in combat.lua (and try to learn how to use eventlisteners).

if u dont have much programming experience and have trouble understanding some concepts like functions and variables, u might want to check this out:

https://www.khanacademy.org/computing/computer-programming/programming/variables/p/intro-to-variables

(and watch at least the introvideo to each section)

Edited by Seiai
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
 Share

×
  • Create New...