ID:146607
 
i get no errors from compiling it, but when you try to speak with it, nothing shows up.
mob/verb
Say(msg as text)
set category = "Communication"
if(usr.talk == 1)
view(6) << "<font size = 2><font color = blue><b>[usr]</b><font color=white> says: <tt>[msg]</tt>"
else
return

it is weird, my var is set, but i dont understand why it isnt working....
Well... A few things here. FIrst this really should be in develpoer how-to or maybe even code problems. Secondly its better to use if(usr.talk) instead of if(usr.talk == 1) as well as if(!usr.talk instead of if(usr.talk == 0/null/"")

And finally you should put in a test just to check and see if you havent set usr.talk.

mob/verb
Say(msg as text)
set category = "Communication"
if(usr.talk == 1)
view(6) << "<font size = 2><font color = blue><b>[usr]</b><font color=white> says: <tt>[msg]</tt>"
else
usr << "test"


Also I would change the else/return to something along the lines of

else
usr << "You are unable to speak"

In response to Madcrackfiend
i figured out what i had wrong, and your right, i should have put it robustly, but its a base for my brother. but this is what i ended up with which is pretty simple now that i think about it now, and i feel like kicking myself.
mob/verb
Say(msg as text)
set category = "Communication"
view() << "<font size = 2><font color = blue><b>[usr]</b></font><font color=white> says: [msg]</font>"

the view(6) is what was causing all the fuss.but i do appreciate your help. thank you.
In response to Twizted1
tricky view()

Glad to hear that it works now. To bad to see the if(usr.talk go though. Its always nice to shut people up from time to time.
In response to Madcrackfiend
i do have a mute command, it takes away the say,wsay and emote verbs :) trust me i did think about that
        Mute(mob/M in world,message as message)
set category="GM"
if(M.admin == 1||M.gm == 1)
usr << "<font color = red><b>You can NOT mute Admins!</font></b>"
else
M.verbs -=/mob/verb/Say
M.verbs -=/mob/verb/Wsay
M.verbs -=/mob/verb/RolePlay
world << "<b>[usr] has muted [M] becuase: [message]"

i definately had that in mind tho :)