Jump to content

Recommended Posts

Hi, I recently started making a new mod, its gonna be called The Woods. Its going to eventually be a total remake or renovation of Don't Starve, kinda like "Hero In The Dark" is doing. There are gonna be a lot of items and characters, but I only got three now. What I'm not sure of is if the code is different for multiple characters or if I can just copy and paste it for each one?

@IceCube77,

need more information.

by "code is different for multiple characters", do u mean the code in the prefabfile?

well at least the prefabname has to be different, or they will overwrite another.

also, if there are no differences, then they are literally the same,so why even make several?

Edited by Seiai

I meant that I have more then one character and I'm not sure if the code in the modmain.lua file needs to be different for adding more than one character, or if i can just use the same methods over and over again for each character. Also, i made one prefab file for each so I did I do that right at least?

@IceCube77,

they will also need their own prefabname each(the first thing u return at the bottom with the MakePlayerCharacter-function) and u will have to take care of everything that comes with that.(eg. adding the prefabfiles in the modmain; adding the characters in the modmain; making animfiles according to that prefabname or setting the build and bank in the prefab to whatever prefabfile u want to use, etc.)

if u provide more information on what and how exactly u are trying to do, we can probably help u to do it right/easier.

if u want u can also add me on steam for more direct communication:

http://steamcommunity.com/profiles/76561197996184319/

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