ID:138635
 
I'm having my friend make some social commands and I experience a problem with verbs such as spit. It works fine when you want to spit on someone, but I'd like to use the same verb to just spit without it being on someone. When I put it into code it seemed like it would work but if I just typed spit in the console it would give the verb usage form saying I needed to specify a mob.
Try:

mob/verb/spit(M as mob|null in oview()) {
if (M) oview() << "[usr] spits on [M]!"
else oview() << "[usr] spits!"
}

...if you haven't already.

Z