ID:155860
 
How do I make a "say" command with a different format like a slant?
Using set name will allow the command_text to display an alternate string.

mob/verb
say(t as text)
set name = ">"
// [...]


So instead of seeing 'say [...]' in your input bar, it'll say '> I'm writing text!'.
In response to Majin_Gogeta_4
Sorry but I already have a say command, I guess that won't work so I need a different command to do the same thing since its saying "duplicate definition
previous definition
conflicts with previous definition".
In response to Majin_Gogeta_4
Also, I need for it to have a different format from the other say command, when I say format I mean a different color or perhaps a slant in the text. But, only with this command and not the "say" command.
mob
verb
say(t)
if(findText(t) != "\\") return
world << "\blue [t]"


Is this what you meant?
In response to Hopeforthelost
Yes but it doesn't work for some reason, because "say" already exists so it counts as a duplicate and gives me error messages. Is there another command that isn't say that does the same thing?
In response to Bigmnm
You're not supposed to just copy/paste this stuff into your code you know. You could... also try modifying your original say verb? It's not permanent. o_O
In response to LordAndrew
Elaborate when you say modify?
In response to Bigmnm
Nevermind, don't elaborate because I figured it out. I combined both of your examples and it works perfectly thank you so much!
In response to Hopeforthelost
I'm so sorry that I just now realized this but it doesn't show the person's name. It puts the text in blue but now I can't see who's saying what they are saying.
In response to Bigmnm
Does this fix it?

//Name will be blue also
mob
verb
say(t)
if(findText(t) != "\\") return
world << "\blue [src.name]:[t]"


//Name will not be blue 
mob
verb
say(t)
if(findText(t) != "\\") return
world << "[src.name]:\blue[t]"
In response to Hopeforthelost
I played around with this in a Text MUD I was doing. And i'm not sure how to actually get rid of the "\"

So messages look like this:

User types: \Hello world

World sees: <font color="blue">\Hello World</font>
In response to Hopeforthelost
No, it gives me these errors: "t: undefined argument type
findText: findText is being phased out; replace with findtextEx"
In response to Bigmnm
mob
verb
say(t)
if(findText(t,"\\"))
world << "[src.name]:\blue[t]"
else
//You could add mor findtext stuff too
<dm>
In response to Hopeforthelost
while in DreamMaker press "F1" and search "findtext" it will explain how to use it.

Hope this helps