mob/verb/lolo(msg as text)
if(copytext(msg,1,2)==":")
world<<"[src] [copytext(msg,2)]"
else
world<<"[src]: [msg]"
So far, as you can see, what the code does is, whenever a user enters a message through the verb "lolo", if they start it with a : then it comes out as an emote.
What I need it to do is so that, if they type it :, instead, it starts out like "Bob, after considering his options, took leave." The problem is that, with what I'm using, it would appear, "Bob , after considering his options, took leave.".
Help please :(
Thanks in advance.
To avoid a space for , only but have it for the rest, you can use the ? operator (basically like a compact if() and else().. look it up)
- GhostAnime