ooc(Text as text) // a chatting verb
set category = "Commands"
set desc = "World Say"
if(src.muted==0)
if(src.talkdelay==0)
if(length(Text) < 100)
for(var/client/c in world)
if(Text && usr.ooc == 1 && c.mob.ooc == 1)
c << "<b>[usr] (OOC): [scantext(Text)]"
usr << "<b>[usr] (OOC): [scantext(Text)]"
// world << "<b><font color=orange>[src] (OOC): [scantext(Text)]"
src.talkdelay=1
sleep(10)
src.talkdelay=0
return
else return
else
src << "Sorry, that message is too long."
else
src<<"You can't talk too fast!"
else
src<<"You can't do that!"
Problem description:
Well, it seems to me like it would work, yet when I try to use ooc, nothing happens. I'd appreciate any help I can get. :)
EDIT: Well, I tried making bug checks, putting usr << "Bug" at the else statements etc. And I've found something interesting. It seems that once you get to the for statement, nothing else works. I'm not to sure why.