mob/var
dontknow
mob/verb/Say(msg as text)
var/t1=copytext(msg,1,12)
var/t2=copytext(msg,12)
var/list/N
N=list("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z")
if(findtextEx(t1,"[src]"))
for(var/mob/O in view(13))
if(O.dontknow==src.name)
O.dontknow += src.name
view(12)<<output("<font size=1 color=red><b>[src]:</b></font> [msg]","say")
else
for(var/mob/O in view(13))
if(O.dontknow==src.name)
view(12)<<output("<font size=1 color=red><b>[src]:</b></font> [msg]","say")
break
else
view(7)<<output("Unknown : [msg].","say")
I'm trying to do with who does not know the name of the person and the person speaking the name who in view know the name.More appear if a person does not speak her name then appears "unknown ". Most have no idea what to do.
Help please.
Example
Soul(My) : Hey
Unknown(Any guy) : Hello
Soul(My) : What you name?.
Unknown(Any guy) : My name is Zaza
Soul(My) : nice meet you zaza.
Zaza(Any guy) : nice meet you too