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
uviel
Beginner


Joined: 24 Feb 2007
Posts: 12

PostPosted: Sun Mar 04, 2007 7:57 pm   

Ansi trigger problems
 
Trying to make a disarm trigger so that it fires only when I get disarmed by a mob and not when someone says or emotes it.

This is the mud output when I get disarmed (mob name changes respectively)

a short hill troll DISARMS you and sends your weapon flying!

I made the following trigger

%e[1;33ma~ DISARMS you and sends your weapon flying! --> set the trigger to ansi and pasted the text from the mud to get the color (it is always the same)

For some reason it is not firing, tried with and without ~ and with %w but cannot get it to work.

I know I am doing something wrong so any adivce, solution would be appreciated.

Thanks.,
Reply with quote
uviel
Beginner


Joined: 24 Feb 2007
Posts: 12

PostPosted: Sun Mar 04, 2007 10:24 pm   
 
Solved it with (%1) instead of ~, works nicely.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Mar 04, 2007 11:19 pm   
 
(%1) Is unsupported you are using the wrong pattern matching character in your example you need * to match anything or (*) to match anything and capture it to %1

%e[1;33ma * DISARMS you and sends your weapon flying!
_________________
Zmud Support Library
Zmud Knowledge Base
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