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
acaykath
Wanderer


Joined: 03 Aug 2005
Posts: 84

PostPosted: Sat Sep 03, 2005 12:07 am   

Why are my Triggers not executing?
 
Code:
#CLASS {Spam Butcher} {enable}
#TRIGGER {*arm is sliced*} {butcher arm} "" {nocr|prompt}
#TRIGGER {*head is shattered*} {butcher brain} "" {nocr|prompt}
#TRIGGER {*spills*guts all over the floor*} {butcher guts} "" {nocr|prompt}
#TRIGGER {*leg is sliced*} {butcher leg} "" {nocr|prompt}
#TRIGGER {*tail twitches*} {butcher tail} "" {nocr|prompt}
#TRIGGER {*heart is torn*} {butcher heart} "" {nocr|prompt}
#CLASS 0


None of these execute upon the line that is supposed to trigger them.

ex: "A grubby beggar's arm is sliced from his dead body."

Though in the test trigger box it says that this pattern (copied and pasted directly from the mud window) matches the first trigger in this class. Both the trigger and the class and triggers in general are enabled. Other triggers like my autolog triggers and status triggers work fine and I cannot see why these are any different.

Thnx in advance

-Acaykath
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Sat Sep 03, 2005 5:29 am   
 
Just guesses here.

1. The * wildcard may require a character for delineation. '*arm is sliced*' -> '* arm is sliced *'.

2. If the message line ends with a CR/LF, then noprompt is probably a better choice.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Sep 03, 2005 10:16 am   
 
All these triggers are set to fire on prompts and not new lines. Since the line they supposed to fire on will likely always have a new line character at the end they never fire.

#CLASS {Spam Butcher} {enable}
#TRIGGER {*arm is sliced*} {butcher arm} "" {}
#TRIGGER {*head is shattered*} {butcher brain} "" {}
#TRIGGER {*spills*guts all over the floor*} {butcher guts} "" {}
#TRIGGER {*leg is sliced*} {butcher leg} "" {}
#TRIGGER {*tail twitches*} {butcher tail} "" {}
#TRIGGER {*heart is torn*} {butcher heart} "" {}
#CLASS 0
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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