|
neohemp Newbie
Joined: 23 Jun 2003 Posts: 3 Location: USA
|
Posted: Mon Jun 23, 2003 5:46 am
Help with full line triggers |
I'm going to try and explain this the best I can but I'm very very new to Zmud. I have a current trigger to blink red when I see tells you: in the MUD. I would like for Whoever tells you: <full message> including all lines to blink red, and I have no idea how to do this at all.
I also have what's called a clan comm which is basically an alias that gives tells to ALL people in my clan. Which means I get lots of tells. I would like for a trigger to pick up KOR and blink blue on the entire like and put <CLAN COMM> at the beginning, and this is the format it comes in Whoever tells you: {KOR} <message>
I would like EVERYTHING in that message to blink blue
Could someone please help me?
Thanks. |
|
|
|
Jah Wanderer
Joined: 11 Oct 2000 Posts: 52 Location: Sweden
|
Posted: Mon Jun 23, 2003 2:15 pm |
#trigger {%1 tells you~:} {#if (%1 = ~{KOR~}) {
#sub {%ansi(high, blue, blink)CLANCOMM %line}} {
#sub {%ansi(high, red, blink)%line}}
Should work.. Atleast in my head :) |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Jun 26, 2003 6:43 am |
Sorry, but you haven't provided enough information to make ALL lines of the message blink red (or blue). The basic principle for multi-line action is to trigger on the channel-beginning (tells you:) to start the blink/color change by enabling a trigger that matches everything (pattern is *), and to trigger on the channel-ending (unknown) to stop it by disabling that trigger.
For single-line:
#TR {tells you: (%x)} {#IF (%1 = "{KOR}") {#CO blink,hi,blue} {#CO blink,hi,red}}
I suspect a blinking blue line is sufficient identification without CLANCOMM. Since I prefer #COLOR to #SUB, I've left it out.
%1 really shouldn't be used in the PATTERN of a trigger, and {KOR} came AFTER tells you:, not BEFORE it. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|