Hot/Cold vs Hunger/Thist
0

4 posts in this topic

Recommended Posts

I would like to make it so you get more Hungry when you are Cold and more Thirsty when you are Hot.

 

Is this already a thing? If so where should I be looking at for the code or is it hard coded?

 

Thanks in advance!

Share this post


Link to post
Share on other sites

Not sure if this is already a thing. Looking at the java API:

player:getBodyDamage():getTemperature() returns a float value

player:getStats():getHunger() and player:getStats():getThirts() both return floats

 

possibly on a EveryTenMinutes event (or similar), check the temperature of the player, then:

 

local h = player:getStats():getHunger()

player:getStats():setHunger(h + 0.1)

 

or increment it by w/e value works for balance

(disclamer: totally untested theory)

Share this post


Link to post
Share on other sites
Posted (edited)

Cold definitely needs more downsides..
I wouldn't mind risking catching a cold or a fever/ the flu even. There's no reason not to run the prone to illness perk.

Edited by Patrick H

Share this post


Link to post
Share on other sites

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
0