Don't Starve Together

Don't Starve Together

85 ratings
Stat Regen And Drain
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
40.774 KB
21 Nov, 2018 @ 2:22pm
23 Nov, 2019 @ 9:54am
12 Change Notes ( view )

Subscribe to download
Stat Regen And Drain

Description
Set up survival-style stat regeneration AND drain systems for max-health, health, sanity and hunger, with individual settings per stat for interval (time between regen / drain), amount, delay after fighting, delay after moving, stat-thresholds and -cost, and much more! This allows for much more dynamic gameplay, defined by a set of rules that you can adjust in interesting ways.

Example 1: Make all characters regenerate Max Health if their Health, Hunger and Sanity are all above 80%, but only so long as they are not in combat; perhaps they even have to be standing still for it to work?

Example 2: Make all characters slowly lose Sanity, if their Hunger OR Health is below 15%.

You can have both, and more!

Settings Information
! These settings can be set separately for each stat (Health, Max Health, Sanity and Hunger) !
Regeneration
- Interval: Time between each regeneration.
- Amount: How much to regenerate per regeneration.
- Threshold: It stops regenerating, when it reaches a certain high-point percentage, e.g. "stop regenerating when the stat e.g. Health is above 90%".
- Move Delay: How long you have to stand still before you can regenerate.
- Combat Delay: How long you have to wait after a fight before you can regenerate.
- Stat Requirements: Activate regeneration when these stat requirements are met, e.g. "when above 70% Hunger and 80% Sanity, regenerate the stat e.g. Health".
- Regeneration Costs: Hunger, sanity and / or health cost per regeneration.

Degeneration
- Interval: Time between each degeneration.
- Amount: How much to degenerate per degeneration.
- Threshold: It stops degenerating, when it reaches a certain low-point percentage, e.g. "stop degenerating when the stat e.g. Health is less than 5%".
- Stat Thresholds: Activate degeneration when stats are lower than a certain percentage, e.g. "when below 10% Hunger and 20% Sanity, activate degeneration of the stat e.g. Health".
- All Thresholds Must Break: Whether only one or ALL stat thresholds must be broken for degeneration to happen.
- Turn Off Starve Damage: (Health Special) Disable the health degeneration done by the game when on 0 hunger. Prevents stacking the game's usual health degen with this mod's health degen. Does NOT require Health Degeneration - Interval to be on!!!
- Can Kill?: (Health Special) Whether health degeneration with 0% Threshold can kill you or it always stops at 1.

Interval? What does that mean?: A "Health Regen Interval" of "1/8 segment" means that the "Health Regen Amount" is applied once every eighth of a clock segment i.e. 8 times per clock segment. What is a clock segment? The clock in DS / DST is (usually) split into 16 segments for each day, where some are day-segments (yellow), some are dusk-segments (red) and some are night segments (dark blue).

Usage notes
a. This is a server mod. All players must have the mod (it should be automatically downloaded for them, if they have that enabled in their DST options menu).
b. Does NOT require you to make a new world before working, but enabling/disabling this mod will require a server restart.
c. When using a dedicated server, enabling/disabling this mod will require a server restart.
d. Does not "show up" as arrows on the stat icons. It updates the stats "silently", except for the max-health regeneration, which shows as a green circle around the health-icon, and plays a sound. Sorry, I can't get it to stop saying that sound.
e. Threshold and Requirement percentages are checked against the maximum stat percentage WITH penalty included. This means, if you have set a requirement of 50% health for a stat-regen to happen, and you have 50% max-health penalty, then the stat-regen will happen when you have over 25% health, because that's 50% of the maximum health you are currently capable of having. It was a tough call choosing whether to use the full max-health or max-health with penalty, but using full max-health would create a problem where with certain settings you could never stop a degeneration, if your max-health penalty made your max-health be less than one of your health thresholds. If you think that's stupid, please comment with your reasons why, and maybe I will make it an option.

Link to DS / RoG / SW version

Links to my other DST mods (Steam pages)
Auto Stack and Pick Up - Gives you MANY settings for automatically stacking or picking up newly spawned and manually dropped stackable items.
Blow Darts Any Feather - Allows you to add extra recipes for any blowdart, so you can use any feather to craft them.
Fishing Buddy - Allows you to edit all settings pertaining to fishing.
Long-range Containers - Allows you to change the distance you can move away from containers, before they automatically close.
Long-range Research - Lets you set the range from which you can use the research machines, and access recipies from more than one machine at a time!
Metabolizer - Allows you to set the base rate of hunger, from 400% of normal loss, and all the way to 200% gain.
Monster Ash Drop Tuner - Allows you to set a chance for monsters, prey, animals and characters (not players), to NOT replace their loot with ash when they die burning and screaming.
No Wet Items - Removes the possibility of inventory items being wet.
Resurrection Tuner - Tune the resurrection penalties, and starting stats after resurrection, plus crafting-cost of revival-items.
RPG Items (global edition) - Any weapon, armor and helmet has a chance to be imbued with special modifiers when they are generated by the game (by world generation, crafting, drops etc).
Sanity Tuner - Allows you to tune the sanity gain and loss players receive from many things, including moisture and auras!
Sleepy Time - Allows you to set the amount of gain/loss of each stat for each sleep-tick, AND how often sleep-ticks occur, as well as # of uses for tents and siesta huts.
Temperature Tuner - Allows you to tune the rate at which the temperatures of the players rise and fall (separately) using percentages, and change the minimum and maximum temperature caps for the players as well.
Time Your Own Boss - Allows you to set the amount of day-cycles, before bosses start to arrive.
What am I crafting (fixed) - Shrinks the lock icon that appears on crafting recipes which haven't been prototyped yet, so you can see the silhouette of what you are crafting.
39 Comments
Ultroman the Tacoman  [author] 8 Mar, 2022 @ 1:05pm 
@ShaneRyan: I finally got a dedicated server set up to test on, and the mod works fine for me; setting "Turn Off Starve Damage" to "Yes" works for me, even with "Health Degeneration" -> "Interval" set to "Off". You may be seeing either a max-health or health degeneration happening due to having those enabled (their "Interval" setting) with some settings that react to the current health being low, or your modoverrides.lua file doesn't have the right settings.

Please do report any bugs! I may get to them later than we all want, but I will investigate promptly to see if I can replicate bug reports, so I can gauge the damage.

Sincerely, Ultroman the Tacoman
Shaye Ryan 23 Dec, 2020 @ 12:47pm 
Is this mod still working? I tried testing by turning hunger degeneration off but I'm still loosing a point of hunger every 5 seconds. I have it installed on a dedicated server.
Ultroman the Tacoman  [author] 25 Feb, 2020 @ 12:07pm 
@Elio: What seems to be the problem? I need more information if I'm to help you :) The mod is very complex with many settings, many of which completely stop it from working if set up improperly. I've tried describing the settings as best I could in the mod description here on the workshop, but I can only write so much. I'm VERY interested to hear if you have found a bug! I will fix it ASAP if you can tell me what the bug is, what you were expecting it to do, and last but NOT least, which settings you used.

SIncerely, Ultroman the Tacoman
Elio 24 Feb, 2020 @ 3:15pm 
not working properly
Ultroman the Tacoman  [author] 23 Nov, 2019 @ 9:57am 
UPDATE:
- Fixed bug with max-health degen always being on, if "all thresholds must break" was true and only the hunger-threshold was used. A very, very specific bug :)

Huge thanks to Nuudson007 for reporting!!

Sincerely, Ultroman the Tacoman
Nuudson007 23 Nov, 2019 @ 7:20am 
I think there is a problem with the max health degeneration, i put it to degen max health when below 5 % hunger and must break all thresholds and 1 damage per 1/16 clock segment, but it kept degenning it even when i had full hunger. so would really appreciate the help. again :P
Ultroman the Tacoman  [author] 20 Nov, 2019 @ 4:19pm 
UPDATE:
- Made the mod more automatically adaptable to changes to the game, whether through updates or mods.

Sincerely, Ultroman the Tacoman
Nuudson007 19 Oct, 2019 @ 7:00pm 
Thanks :) no worries you’re already done a lot of cool stuff, hope You do good with your new job :3, Nice talking to You, keep up The amazing work. Hope to talk to You again sometime soon, byee ^_^
Ultroman the Tacoman  [author] 17 Oct, 2019 @ 12:01pm 
@Nuudson007: Thanks for the suggestions :D I could add thresholds/requirements for the regen for temperatures and wetness. That shouldn't be too difficult. It is getting to the point where it's a lot of things that need to be maintained in order for the regen/degen to work, and it is limiting that you can only make one regen and one degen for each stat, but it's all customizable, so I guess it's fine.

Adjusting speed would be an entirely different mod, and I'm not looking to make new mods right now. Just started a new job I want to focus on, and I still have some work on my other mods. You can leave a mod suggestion on the Klei modding forums [forums.kleientertainment.com].

It is a lot of work, but I do it because mostly it doesn't feel like work to me. My only problem is the amount of time it takes away from IRL stuff.

I'll see what I can do, but don't expect it too soon ;)

Sincerely, Ultroman the Tacoman
Nuudson007 17 Oct, 2019 @ 11:07am 
and maybe you could customize the speed based on if you have full health or if you are wet or something. just some ideas, hope it isn´t too much work. i don´t really know how much iwork it is