ID:164144
 
mob
verb
say(msg as text)
world<<"[usr]says[msg]!"




I wanna make a wsay and then just a say where not the whole world sees it just people close by how do i do that thanks for the help.
instead of putting world, put view() and it will only show it to people on your screen.
Read the DM guide http://developer.byond.com/docs/guide/

And Zilal's Beginner Tutorials
http://zilal.byondhome.com/tutorials/zbt.html
http://zilal.byondhome.com/tutorials/zbt2.html
http://zilal.byondhome.com/tutorials/zbt3.html

When you're new to DM, those are the best guides i know to learn it.
In response to Pieinface1
Ok i did that but it will not show the text on my screen at all(my text screen that is)
In response to Gotu3088
You sure?
mob/verb/say(msg as text)
view()<<"[src] says [msg]!"
In response to Pieinface1
mob
verb
say(msg as text)
view()<<"[usr]says:[msg]!"







Thats my code did i do something wrong?
In response to Gotu3088
Don't think so, but i'm pretty good at it so the problem's probably right under my nose =P
Try oview().
In response to Pieinface1
Nope nothing changed lol
try this one:
mob
verb
say(msg as text)
view() << "[usr] says, [msg]"// The view() is a proc which means this output will be shown only to users in the sight of the player

mob
verb
wsay(msg as text)
world << "[usr] says, [msg]"//world means the messege will be shown to the entrie server


I hope I helped you

In response to Arochimaro
guys you can code Say two ways and view() and oview() are wrong ways to do it.(they might not be wrong but they just never worked for me before.) there could be more than 2 ways but these are the only working ways I know of.
mob/verb/Say(t as text)
hearers << "[usr] says [t]"
//Since your new to coding, I might add that the letter or letters before "as text" are variables and can be anything.

or

mob/verb/Say(t as text)
view(usr) << "[usr] says [t]"