Jump to content

Recommended Posts

I have no problem with the stuff in the character's lua, but I'm only guessing what to do after. I took Don't Starve's Hamlet SGwilson file and brought it over to my mod's stategraphs folder, figuring that the dodge code won't work without it. I deleted everything in it that doesn't have anything to do with dodging, but don't know what steps to take so that my mod's SGwilson doesn't overwrite the game's SGwilson.

8 hours ago, decduck3 said:

1) Welp.

2) Sure looking through this is okay? Is the mentality that in order to do the same thing, I'll end up doing the same thing anyway, so it's fine?

It's OK to look through code to do how other mods do it, and you can even take some code, as long as it isn't identical. If you need the code to do something that the mod doesn't, it's OK, as you will probably get the same result or similar.

 

Also, to not override Klei's SGwilson, use a AddPrefabPostInit

  • Thanks 1

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