mob/verb
say(msg as text) //what the usr says is passed into "msg" as txt
world << "[usr]: [msg]" //the world sees chatroom-like output
smile()
world << "[usr] smiles."
laugh()
world << "[usr] laughs."
cry()
world << "[usr] cries \his heart out." // \his applies users gender.
I had the above which shows without error but according to Zalil's Guide 1, as soon as I add in:
attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(1,10) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M.HP -= damage //take away the damage from M
Now, i'm getting all sorts of indentation errors. Is there a better way to avoid the issue or should I just not bother with Zalil's Guide anymore? I tried typing it and I tried copy'n'paste and same problem always arises. I can normally fix it but after all this....it is becoming a pain!