I need a script that gives me a number, and the bigger the timer is, the smaller the number gets, and the smaller the number gets, the smaller the decrement.
Eg. After 1 second my number is 20, after 5 seconds it is 18, after 10 seconds the number is 17 ect.
Note that the number cannot go below 0.
Was that clear?
Last edited by Splodgey (2012-10-26 11:28:05)
Offline
BoltBait wrote:
when gf clicked forever set [myVar v] to ((20) - (timer)) if <(myVar) < (0)> set [myVar v] to (0) end end
I knew someone would say that, divided by is much better since it wouldn't go below 0. The point is, the smaller it gets, the smaller the decrement, that, decreases by 1 every second, and the decrement stays the same.
meew0 wrote:
when gf clicked repeat until <(number) = (0)> set [number v] to ((21) - (timer)) end
That is even worse, I didn't say I wanted it to stop at 0, I said It can't go below 0.
Last edited by Splodgey (2012-10-26 11:30:32)
Offline
MathWizz wrote:
when gf clicked forever set [number v] to ((1) / (timer)) end?
I just facepalmed so hard it hurt, not at you, at myself.... THAT WAS SO OBVIOUS!!! I even considered divided by....
Wait, I need something that doesn't decrease quite so rapidly.
Last edited by Splodgey (2012-10-26 11:43:28)
Offline
Ok, Nevermind, I've worked it out:
(((32) + ((timer) * (8))) / (timer))
Offline