ID:269388
 
Lets say I have
5/345 EXP, I am not sure how to get this to show up as a percent...lets say...like 3%.
Try:
mob
verb
XP()
var/a = [src.xp]/[src.mxp]*10
src << "You have [a]% of the needed XP"

That might work. I am not sure.
In response to N1ghtW1ng (#1)
N1ghtW1ng wrote:
Try:
> mob
> verb
> XP()
> var/a = [src.xp]/[src.mxp]*10
> src << "You have [a]% of the needed XP"
>

That might work. I am not sure.

You dont need the [ and ] ^_^.

EDIT
It doesnt work :(, comes up as a decimal..
In response to ITG Master (#2)
Bah, I meant *100. Also you might want to use round()