ID:160954
 
What the title said xD
Run this proc:

proc/percent(value, max)
return 100 / max * value


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:

proc/percent(value, min, max)
if(min == max)
return 100
return 100 / (max-min) * (value-min)
In response to Foomer
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]")
In response to Relleke
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?

proc/percent(value, max)
return 100 / max * value

And these are my Vars ("[src.exp],[src.maxexp]")

("[percent(src.exp, src.maxexp)]%")
In response to Foomer
Thanks a lot man.