mob/proc
Level(type,gain)
usr.type.value+=1
How can I make it so that if I call Level(nin,rand(1,50)) that I don't have to do:
var/x=rand(1,3)
if(type=="nin")
nin.max_value+=x
if(type=="tai")
tai.max_value+=x
if(type=="gen")
gen.max_value+=x
I hope it's understandable what I want, and I hope I'm able to do it with your help.
Regards,
Rick