How would I make a forumular to the end value will get smaller as the user trains?
var/value = rand(1,usr.endurance)/10
Say the value of of the rand was 70, then divide that by 10, which makes the end value 7. But with 80 as the endurance value, the end value will be 8. Gah! It's such a pain.
ID:159342
Mar 29 2009, 2:53 am
|
|
In response to Schnitzelnagler
|
|
Well, I want the stamina in my game to decrease even less the more endurance you have.
so say your endurance is 200, and the decrease amount ended up as 6, I would the decrease amount to be less than 6 if I had more than 200 endurance. And I meant Formula. |
In response to Howey
|
|
And how should endurance decrease?
Linear, exponential, logarithmic, ... Like, if you're heading for a linear decrease, you could simply change the sloop, given a steady interval. |
Could you provide a little example of what exactly you want the values to end as, since I'm a bit puzzled by your description.
One set of values would be nice, to see intention.