Jump to content

Recommended Posts

So its already like oh boy making regen seems complicated and what ive tried to use just gives the regeneration for a few seconds rather than actually making it toggle-able and its not like im retarded and dont know lua, just new to "dont starve lua"

You can take a look at what I did in my mod Stat Regen System. I just built my own complete regen system, which reacts to whether you're moving, have been in battle recently, has timers to delay it and everything, but the basic functionality is simple: DoPeriodicTask => check if the character should regen health, and if so, add some health. The not-so-simple part is the check for whether they should regen health or not.

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