usr.wealth Problem. in Developer Help
mob var HP = 30 //declares a new variable called HP, with a value of 30 usr.wealth += amount //add to usr.wealth
mob/var wealth=0mob/verb/AddWealth(var/amount) if(amount) usr.wealth+=amount
To use any sort of procedure or arithmetic or anything, you need to do it inside of a verb or "proc".