ID:142752
 
Code:var
worldC=1
mob/var/OOC=0
mob/verb/OOC(msg as text)

set desc = "Say something to everyone in the game"
var/list/L
L = list("font size","font color")
for(var/H in L)
if(findtext(msg,H))
alert("No HTML in text!")
return
if(!usr.OOC)
alert("You are muted!")
return
if(!worldC)
alert("An admin has turned off world chat.")
return
if(length(msg) >= 100)
alert("Message is too long")
return


Problem description:my code wont work it pops up what you want to say but nothing appears after you press ok whats wrong?

you need a
world<<"[src]: [msg]" after it, so it actually says what you write.
In response to Bakasensei
var
worldC=1
mob/var/OOC=0
mob/verb/OOC(msg as text)

set desc = "Say something to everyone in the game"
var/list/L
L = list("font size","font color")
for(var/H in L)
if(findtext(msg,H))
alert("No HTML in text!")
return
if(!usr.OOC)
alert("You are muted!")
return
if(!worldC)
alert("An admin has turned off world chat.")
return
if(length(msg) >= 100)
alert("Message is too long")
return
world<<"[src]: [msg]"


like that?
In response to Seanleonartes
var
worldC=1
mob/var/OOC=0
mob/verb/OOC(msg as text)

set desc = "Say something to everyone in the game"
var/list/L
L = list("font size","font color")
for(var/H in L)
if(findtext(msg,H))
alert("No HTML in text!")
return
if(!usr.OOC)
alert("You are muted!")
return
if(!worldC)
alert("An admin has turned off world chat.")
return
if(length(msg) >= 100)
alert("Message is too long")
return
world<<"[src]: [msg]"
In response to Bakasensei
how would i get it colored?
In response to Seanleonartes
Using html command codes. Check up them on your own using google ^^. Though an example is [font color=(Insert Color Here)]
In response to Bakasensei
I mean where do i put it im still kind of new to coding
hmm i think the codes goes inside dm tags o.o