ID:166711
 
how would i make it to like were if you have full hp your stats would say 100% when your max hp is lie 25000?

and to were it works on all percents goen down?
mob
Stat()
stat("HP:", "[perc(hp, max_hp)]%")

proc/perc(cur, max)
return (cur/max) * 100


Is that what you mean?
Percent means "(something) per hundred".
% = /100

Set up the problem as a word problem.
-- What percent of max_hp is current_hp?

Translate to an equation.
-- (w/100)*max_hp = current_hp [of mostly translates to "multiply"]

Now solve for w.
-- (w/100) = current_hp/max_hp
-- w = (current_hp/max_hp)*100

"w" represents the percentage of max_hp that has a value of current_hp.

[Edit: Beat me to it, Papoose :P ]
In response to Papoose
yea thx :)