ID:163593
 
Can anyone give me an example of how I can have 2 different output boxes in 4.0 and have one for talking and the other only for monster interactions?
DarkD3vil666 wrote:
Can anyone give me an example of how I can have 2 different output boxes in 4.0 and have one for talking and the other only for monster interactions?

Sure. The output proc will do this for you:

mob/verb/Say(msg as text)
if(!msg || IsSpam(msg)) return
world << output("<b>[name]:</b> [html_encode(msg)]", "chat")

mob/proc/Smack(mob/M)
src << output("You smack [M].", "combat")
// in case M is a real player
M << output("[src] smacks you.", "combat")


Lummox JR
In response to Lummox JR
Thanks.