ID:266452
Mar 15 2002, 2:53 pm
|
|
How would I go about making it so only people with a certain var like hearing = "true" would hear a say
|
In response to Super16
|
|
Ahh crap it works except it gave me about 200 msgs that were the thing that the person typed!
|
In response to Thief Jack
|
|
Try using break
|
In response to Thief Jack
|
|
Wait theif when I posted I used usr<< here is the code I meant:P
mob/var/hearing="true" mob/verb/Say(T as text) for(var/mob/M as mob in world) if(M.hearing=="true") M<<"[src.name]: [T]" It works :P |
In response to Super16
|
|
see this is how i want it to work
------------------------------------ mob verb/Say(T as text) for(var/mob/M in world) if(M.Hearing == "True") usr << "[src.name]: [html_encode(T)]" else oview() << "[src.name]: [html_encode(T)]" usr << "[src.name]: [html_encode(T)]" |
In response to Thief Jack
|
|
let me guess what this one does-
you type in a message, and for every mob in the world, you see that message, regardless of whether they had healing or not. You should probably have something like this: Say(T as text) for(var/mob/M) Every mob that has hearing will see the message. I think... (Note: >> equals one tab) |
mob/var/hearing="true"
mob/verb/Say(T as text)
for(var/mob/M in world)
if(M.hearing=="true")
usr<<"[src.name]: [html_encode(T)]"