Set Stats (Health/Hunger/Sanity)
dont-starve — Cheat Codes
Instantly sets your character's health, hunger, or sanity to a specific value.
Syntax
c_sethealth(amount) / c_sethunger(amount) / c_setsanity(amount)
Example
c_sethealth(150) sets health to 150.
💡 Notes
Values are absolute, not additive. Max values vary by character (e.g., Wilson 150, Wes 75). [verify] for DLC characters.
🎯 Tips & Tricks
Set to max
Use c_sethealth(9999) to effectively become invincible, but beware of one-hit kills from certain bosses.
Combine with god mode
Use c_setsanity(0) to trigger shadow creatures for farming nightmare fuel.
🔧 Troubleshooting
Stat not changing
Ensure you're typing the exact function name; check for spaces.
Character dies instantly
Set health to a positive value immediately; avoid setting to 0.
⚠️ Common Mistakes
- Setting hunger to 0 accidentally
- Using negative values that cause instant death
👍 Pros
- Instant recovery from near-death
- Precise control over stats
- Useful for testing survival mechanics
👎 Cons
- Can trivialize gameplay
- Doesn't affect max stats
- May cause issues if set to negative