Don't Starve

Don't Starve

81 ratings
Stat Regen And Drain
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
38.727 KB
Nov 21, 2018 @ 6:33pm
Nov 20, 2019 @ 3:50pm
16 Change Notes ( view )

Subscribe to download
Stat Regen And Drain

Description
Set up your own survival-style stat regeneration AND drain system 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, health / hunger / sanity requirement and cost, thresholds 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. Does NOT require you to make a new world before working.
b. Does not "show up" as arrows on the stat icons. It updates the stats "silently".
c. 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 Don't Starve Together version

Links to my other DS / RoG / SW / Hamlet 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.
Fishing Buddy - Allows you to edit all settings pertaining to fishing.
Long-range Research - Lets you set the range from which you can use the research machines, and access recipes 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 - Can either remove wetness from all items you can pick up or just from equipment (so they cannot get slippery).
Realistic Placement (fixed) - Allows you to place buildings, plants, or whatever you please closer together.
Resurrection Tuner - Lets you set the severity of penalties pertaining to revival (and the crafting of revival-items in the DST version).
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 time you sleep, the gain/loss of each stat for each sleep, number of uses, AND whether you can use them at day/night, all INDIVIDUALLY for each piece of equipment!
Temperature Tuner - Allows you to tune the rate at which the temperatures of the players rise and fall, and change the minimum and maximum temperature caps for the players as well.
Tenting 101 - Allows you to set the # of uses for tents and siesta huts.
Time Your Own Boss - Allows you to set the number of day-cycles before bosses start to arrive.
What Am I Crafting? - 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.

Tags: stat, regen, system, health, sanity, hunger
37 Comments
Ultroman the Tacoman  [author] Nov 7, 2024 @ 1:11am 
@Julie Annaryllis: The changes are in addition to the game's normal change-rates. The only change-rate in the game that it can change, is the damage when you starve, which can be turned off with the setting "Turn Off Starve Damage".
Annaryllis Nov 6, 2024 @ 6:42pm 
Does this mod REPLACE in game values or add TO them? For example, if I set my hunger degen interval to be very long, will I starve slower?
Ultroman the Tacoman  [author] Oct 4, 2020 @ 4:45am 
@Mugen: That's exactly the kind of setup that was the inspiration for this mod :D Healing when at good health and hunger. I usually added the reverse, as well, so I DEgen Health when low on both hunger and sanity, and I DEgen Sanity if I'm super-low on Hunger (need a Snickers?). It's really an entirely different game. I used the "can't regen until some time after combat", as well.

Glad to hear it still works in Hamlet! Thanks for that. I can't keep testing all my mods every time there's an update. I wouldn't have time for anything else. I rely on the users to report bugs.

It's kind of my goal in life to make things that make people happy, so to have helped you gain immersion really hits home for me, so thanks a ton for taking the time to write to me and tell me your story. I'd wish more people did that, so I know which mod to focus on and what things to change etc.

Anyway, thanks a lot! Happy gaming :)

Sincerely, Ultroman the Tacoman
onebunchmugen Oct 3, 2020 @ 5:58am 
your mod raised my game's immersion level to a much higher level. Now i gotta handle new mechanic. Above a certain level of sanity and hunger my character's health starts to regen slowly For example I made threshold for hunger requirement %80 so I gotta eat every now and then to keep my hunger above that threshold so i have to eat raw or cooked veggies for this healing process because if I eat a hearty meal just for that %20 hunger level I waste calories so there is a catch. In other words this mod is not OP at all. You can add also sanity requirement for healing because you know if your not psychologically good, your body can not heal well. Thats realistic. So i made sanity threshold %80 too. I wanted a immersive health regeneration mechanic and this mod gave me that. Thx for this.

PS: Mod works flawlessly in HAMLET world. :steamhappy:
Ultroman the Tacoman  [author] Oct 3, 2020 @ 5:14am 
@Mugen: Wow! Thank you very much for the kind words :D
Yes, well, mostly. All settings are either off or set to the value they are in the vanilla game.
I'm thrilled to see someone actually using it! It opens SO many possibilities for custom regen/degen game mechanics known from other games.
I hope you've also looked at "Long-range Research"! I don't understand how everyone isn't using it. Even if you leave it at the default (vanilla) research range, the mod allows you to pick from the recipes of ALL machines you are within range of, instead of only the closest one.
"Auto Stack and Pick Up" also seems to be very popular ;) And "Sanity Tuner" and "Temperature Tuner" can also change the game quite significantly, in the same vein as this mod.

Sincerely, Ultroman the Tacoman
onebunchmugen Oct 3, 2020 @ 3:36am 
I must ask, everything is off as default right?
onebunchmugen Oct 3, 2020 @ 3:33am 
Customization is insanely well designed. You can pick whatever option u want and deactivate others. I hope this works in Hamlet.
Ultroman the Tacoman  [author] Nov 20, 2019 @ 3:52pm 
UPDATE:
- Made the mod more automatically adaptable to changes to the game, whether through updates or mods.

Sincerely, Ultroman the Tacoman
Ultroman the Tacoman  [author] Nov 15, 2019 @ 10:49am 
Start Don't Starve. When on the main menu, click "Mods". It will then download the mods you have subscribed to. A list of mods will appear, and you can enable/disable and configure them individually. Simply hover your mouse over the mod you want to configure, and click the "Configure mod"-button that appears in the middle of the screen.
Joggingless Nov 15, 2019 @ 3:19am 
how use??????