ECHO colour in Zmud

by Polion

Back to Mechanic's Corner.

Polion2006-12-02 11:43:10
I've recently taken to using Zmud again, after a six-month hiatus. Unfortunately, though, I have to rebuild my system, since I had deleted my old one.

Unfortunately, I can't for the life of me figure out how to colour #ECHO commands. I know it's possible, because I used to do it. I swear I used to use the %color command, but now that doesn't seem to work.

I know it's probably a stupid question, but if someone could clear this up for me, I'd really appreciate it.
Soll2006-12-02 12:09:08
I use #ECHO %ansi(###). That might be what you're referring to.
Polion2006-12-02 12:10:35
Ahh, that's the one! Thanks for clearing that up for me.
Gwylifar2006-12-03 00:48:03
If you're going to color them anyway, use #show. #echo goes to whatever window is in front, #show goes to the window associated with the MUD in question. If you only ever are logged into one MUD at a time, they're identical, but if you ever log into two, or if you ever plan to share your scripts with anyone who does, #show is almost always better. And there's no downside to using #show instead of #echo, as far as I know.
Anarias2006-12-03 01:39:57
I use #say
Shryke2006-12-04 02:12:01
#sa isn't always on a new line, and you can do triggers off of #sa... On the other hand, #show always makes a new line, and triggers never fire off #show text.
Shorlen2006-12-04 02:50:34
I loathe #show. It comes up after the prompt, and not right where it triggered, so I can't use #trigger {blah} {#gag;#show thing I want to replace blah with} like I can with #echo.
Laysus2006-12-04 03:08:43
#say is fine for me.
Unknown2006-12-04 13:23:43
Triggers fire on #SHOW. I use it to test my triggers on a regular basis.

The echo commands will not be on a new line if you have a prompt as your last text received, but you can tack on a %crlf to make it go to a new line.
Shryke2006-12-06 00:43:09
make a trigger, use show, it does nuffin bro! Maybe your settings are different than mine , but I doubt it.
Unknown2006-12-06 12:19:36
With the default zMUD setup, triggers -will- fire on #SHOW. I reformatted my PC and started over on Sunday. My zMUD is still untouched from the default installation, so I just now ran it for the very first time. Hit ESC to get a blank window, create a simple trigger, use the #SHOW command to echo the trigger pattern, and, yes, it did fire... bro. tongue.gif
Charune2006-12-06 12:42:11
QUOTE(Shryke @ Dec 5 2006, 06:43 PM) 360271

make a trigger, use show, it does nuffin bro! Maybe your settings are different than mine , but I doubt it.


QUOTE
SHOW

Syntax: #SH text

Same as the #SAY command. Displays the specified text to the screen without sending it to the MUD. The difference between #SAY and #SHOW is that #SHOW processes the text just as if it was received from the MUD. This means text for #SHOW must be in Telnet format, which means %crlf should be used for newlines instead of just %cr.

SHOW example

#SH You have @gold coins
Prints You have nnnn coins to the screen where nnnn is the current value of the @gold variable. Any trigger set up for this type of pattern will get triggered.


I use #show a lot as well to test triggers. It is the best way to offline test.
Shryke2006-12-07 02:55:28
I personally use say, maybe my setup is backwards, but it simply doesn't trgger off show, tricky.