ZMUD's Trigger allows you to add ANSI color code in Pattern, which causes trigger not only need to match text from the MUD, but also require color. This feature is very useful when preventing error triggering.
For example: usually we will add the following in Trigger to prevent the poisonous hand from NPC or PKER, # TR {^ (you have already fallen in a half-state, you can faint at any time)} {quit} Note: Pattern Symbol (^) Forced ZMUD triggered from a line of head, can not be omitted, otherwise casually, you have to lose helmets, wolf quit, how do you mix it on the rivers and lake? However, because some of the reasons I don't know, on some machines, symbols (^) cannot work properly, then use the color trigger.
Follow the steps below to establish a color trigger 1, select the row that needs to be triggered in the MUD output window; 2. Click New to create a new trigger in the establishment of the TRIGGER window; 4. Returns the Trigger tab, and paste it with Ctrl-V in the Pattern field in a row, then fill in the required command in the Command field, and a trigger that requires color matches is completed. Note: Be sure to use Ctrl-V to paste, and you cannot use the right mouse button. You can also use the #color command to create a color trigger. In addition, the ANSI color sequence is defined by a string "% e [xxm", where xx is an ANSI color value, defined as follows: 0 No Properties 1 Highlight 2 Low-Light 3 Tablet 4 Underline 5 Flashing 6 Rapid Blink 7 Reverse Show 8 Visible; prospect color: 0 black 1 orchid Blue 2 green 3 blue green 4 red 5 purple red 6 brown 7 gray 14 yellow 15 white 128 thick; prospects high bright plus 8 background deeper * 16 bold plus 128; prospect color: 30 black 31 Red 32 Green 33 Yellow 34 Lan 35 Dark Red 36 Delay 37 White; Background Color: 40 Black 41 Red 42 Green 43 Yellow 44 Lan 35 Dark Red 36 Delay 37 White
Therefore, the example of the escape trigger mentioned in this article can now be written:
#TR {Your% e [31m has been caught in half-state, you can faint} {quit}
Never worry about the wrong trigger.