# increase value as another decreases

i have done some looking around but i’m new and i haven’t found anything that i’ve figured out how to help with my problem, so i am trying to make a hunger and thirst system, but i want it so that at certain temperature extremes the drain on the hunger or thirst will change based on the temperature

e.g
at a temp of 10 cold drain would add to satiation drain by 0.0025 and as temp decreases it will max the drain at a temp of 1 at which it will add to satiation drain by .025, so as the temp lowers the cold drain amount increases

i dont know if mathf.Lerp or InverseLerp would be what i’m looking for but i want it so that for each unit of temperature that decreases the cold drain will increase by .0025

solution found, was simple math, just working off of a tired brain i didn’t immediately realise the method i was using was the reverse of what i needed

working method is give a max variable for cold drain and then divided by temperature, i was trying to use a minimum variable and multiply that for what i needed which was wrong