ID:266454
 
it tells it to me

mob
verb/Say(msg as text)
for(var/mob/M in world)
if(M.Hearing == "True")
usr << "[src.name]: [html_encode(msg)]"
else
oview() << "[usr]: [html_encode(msg)]"
usr << "[usr]: [html_encode(msg)]"

it works but it spams me with the messsage 40 times anyway to fix it?
Thief jack wrote:
it tells it to me

mob
verb/Say(msg as text)
for(var/mob/M in world)
if(M.Hearing == "True")
usr << "[src.name]: [html_encode(msg)]"
else
oview() << "[usr]: [html_encode(msg)]"
usr << "[usr]: [html_encode(msg)]"

it works but it spams me with the messsage 40 times anyway to fix it?

You need the message sent to usr to be outside the for loop, not inside; otherwise it's called for ever M checked, and that's not what you want. You also should replace oview() with M, as I believe that's closer to what you want. The loop still won't work as you've written it, though, because the non-usr message is only sent if M can't hear you.

Lummox JR