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
grahamsccs2
Newbie


Joined: 12 Jul 2002
Posts: 2
Location: United Kingdom

PostPosted: Fri Jul 26, 2002 11:55 pm   

Shutting off trigger classes
 
Ok...heres the deal..
I would like to know how to shut off a folder worth of triggers for a period of ONE line only.
Now I would set an alarm but its not quite as effective.

Heres why I want to shut off a folder of triggers:

If I recieve a line:

Montique stabs you in the gut
You feel woozy.

Now I obviously want it to pick up the woozy bit, and I can easily turn on triggers for it to trigger on the woozy line. BUT, how do I turn off the triggers again AFTER the woozy line without adding lines to EVERY affliction trigger. I could make each of the triggers conditional, but that is also long winded. I wondered therefore if there was something I could add to the Montique stabs you trigger that would do something AFTER 1 line (turn off trigs for example).
Reply with quote
lewdpotato
Novice


Joined: 16 May 2002
Posts: 48
Location: USA

PostPosted: Sat Jul 27, 2002 7:53 am   
 
well I dont know if this will work for you cause I dont play this type of game. but I use buttons to turn triggers on and off.
use the #T-class button to turn them off.
and #T+class to turn them back on.
buttons work very well to turn triggers on and off that are within a class. works great when you are at the keys.
hope this helps?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Jul 27, 2002 1:00 pm   
 
I'm guessing that you have a trigger that fires on the "stabs you in the gut" line and this enables a class that has triggers to match every possible affliction you could receive. If this is the case, then you can add another trigger to this class like this one:
#TRIGGER {(*)} {#IF (!("%1" =~ "stabs you in the gut")) {#T- className}}

I had to put the #IF in there because zMUD has a habit of checking all of the triggers in a class that has just been enabled, agaisnt the line used to fire the trigger that enabled that class. Also, you should make sure that this trigger appears after all of the other triggers in that class folder so that it will be fired last.

Kjata
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