Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
xenapan
Wanderer


Joined: 26 May 2004
Posts: 68

PostPosted: 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!
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: 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!$
Reply with quote
xenapan
Wanderer


Joined: 26 May 2004
Posts: 68

PostPosted: 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!
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: 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...
Reply with quote
xenapan
Wanderer


Joined: 26 May 2004
Posts: 68

PostPosted: 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!
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Sep 16, 2005 9:34 pm   
 
#TRIGGER {^%e[1;31m*DISARMS your Nasr, Claymore of Sovereignty!$} {#ECHO TEST}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
billaben
Wanderer


Joined: 02 Sep 2005
Posts: 60

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net