|
xenapan Wanderer
Joined: 26 May 2004 Posts: 68
|
Posted: Thu Sep 15, 2005 3:30 pm
need help with fixing up trigger. |
after the recent changes in the disarm message, i can no longer get my triggers to work properly. As the MUD allows emotes, the trigger needs to be color based to prevent players trying to spam me out.
sample trigger condition:
%e[1;31mArtemis of the forest DISARMS your Nasr, Claymore of Sovereignty!
%e[1;31mBruenor Battlehammer DISARMS your Nasr, Claymore of Sovereignty!
%e[1;31mT'kul DISARMS your Nasr, Claymore of Sovereignty!
(note:%e[1;31m is the color code for a highlighted red)
ive tried using
%e[1;31m DISARMS your Nasr, Claymore of Sovereignty!
But it does not work (my guess is due to the fact that the color code is put at the start of line.) However, that leaves me with the problem that I cannot solve as very often, mobs have multiple words in the name (as above) or punctuation. Ive tried using the line color thing built into the trigger options but that doesnt work at all. Vertabrim prevents me from using color codes.
Does anyone have any idea how to fix this? |
|
_________________ Player on Realms of Despair. realms.game.org port 4000. Join us today! |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Thu Sep 15, 2005 3:58 pm |
You are right. The color code are sent when the color actually changes. Or in this case at the very beginning of the line. You just need to add in some wild card to grab the missing disarmer.
Try:
^%e[1;31m * DISARMS your Nasr, Claymore of Sovereignty!$ |
|
|
|
xenapan Wanderer
Joined: 26 May 2004 Posts: 68
|
Posted: Fri Sep 16, 2005 5:05 am |
hrm. i tried it, playing around with line color, new line, prompt.. still doesnt work. anyone else wanna have a crack at it?
|
|
_________________ Player on Realms of Despair. realms.game.org port 4000. Join us today! |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Fri Sep 16, 2005 11:12 am |
Its not a line color or prompt for sure.
If you paste in color codes (IE %e[1;31m) you have to have the ANSI trigger option enabled.
If you did try ANSI trigger (which is the correct option by the way) perhaps its the ending $ that messed it up as I did not include an ANSI reset before the end... |
|
|
|
xenapan Wanderer
Joined: 26 May 2004 Posts: 68
|
Posted: Fri Sep 16, 2005 2:52 pm |
yea i know. ansi trigger was on during all the tries. was line color i turned on and off. anyhow.. still not working.
|
|
_________________ Player on Realms of Despair. realms.game.org port 4000. Join us today! |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Fri Sep 16, 2005 9:34 pm |
#TRIGGER {^%e[1;31m*DISARMS your Nasr, Claymore of Sovereignty!$} {#ECHO TEST}
|
|
|
|
billaben Wanderer
Joined: 02 Sep 2005 Posts: 60
|
Posted: Wed Sep 21, 2005 6:19 pm |
Code: |
#TRIGGER {^%e~[1;31m*DISARMS your Nasr, Claymore of Sovereignty!$} {#ECHO TEST} "" {color} |
You forgot to enable color. =P
Also, This doesn't look like the full line sample text. Normally when I see ANSI code at the start of a line I will see something like ...
{%e~[0$}
at the end of a line. If something like this exists in your raw text and you use $ without including that in your trigger.... It won't work. |
|
|
|
|
|