ID:160954
![]() Jul 6 2008, 6:16 pm
|
|
What the title said xD
|
Ok, well this is what I am working with, and Im kinda bad with procs but, this is what I have, what do I do from here?
proc/percent(value, max) return 100 / max * value And these are my Vars ("[src.exp],[src.maxexp]") |
Relleke wrote:
Ok, well this is what I am working with, and Im kinda bad with procs but, this is what I have, what do I do from here? ("[percent(src.exp, src.maxexp)]%") |
That'll return the percentage value, using the provided value and the maximum value. So if your value is 0 to 500, and you have 320, then:
100 / 500 * 320 = 64%
If you want a non-zero minimum value, then you need to have a third argument: