Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8931

Simple maths formula - help needed!

$
0
0

I wonder if anyone with a better mathematical brain than mine can come up with a simple formula for this?…

I have 2 attributes (as percentages):
1) Poisoned - Real attribute (value can be between 0-100): 0= no poison, 100= max poison
2) Tolerance - Real attribute (value can be between 0-100): 0= no tolerence, 100 = max tolerence

From these I need a formula to calculate a 3rd Real Atrribute named ‘Health’ (also a percentage: 0 - no health, 100 full health)

So as an example:
If Poisoned = 50, Tolerence = 100, then Health Should = 100.
If Poisoned = 50, Tolerence = 0, then Health Should = 50.
If Poisoned = 50, Tolerence = 50, then Health Should = 75 (I think) etc etc.

Seems simple enough, but I’m struggling!

Thanks if anyone can help!!


Viewing all articles
Browse latest Browse all 8931

Latest Images

Trending Articles



Latest Images