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


Joined: 14 Oct 2006
Posts: 1

PostPosted: Sat Oct 14, 2006 6:50 pm   

Help with turning triggers on/off
 
Maybe I'm a little dense but in reviewing the help files I cant find how to do this.

What I'm trying to do is find a way to have a trigger set up that turns a specific (different) trigger off (but not all triggers).

And then set up another trigger that will turn yet a different trigger..thats currently off, back on.

Is this possible?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Oct 14, 2006 7:29 pm   
 
It's possible.

Since you haven't given any code, I'll use a generic example.

Code:

This line triggers trigger number one.


--this line is the primary trigger.

Code:

This line turns off trigger number one.

--does what it says...

If that's the effect you're going for, then here's the coding for it (and other triggers you may want to turn off/on).

Code:

#TRIGGER {This line turns off trigger number one.} {#T- {This line triggers trigger number one.}}


Also, if you want to turn the triggers back on using another trigger, use the following code:

Code:

#TRIGGER {This line turns trigger number one back on.} {#T+ {This line triggers trigger number one}}


If you give some examples, I can put them in code for you and make it easier to understand, if you can't get by with this.

Charneus
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Oct 15, 2006 4:04 am   
 
Patterns can get pretty long, so if you plan on turning them on and off regularly you might want to name them:

#trigger "name goes here" {pattern} {code}

#T+ "name goes here"
#T- "name goes here"
_________________
EDIT: I didn't like my old signature
Reply with quote
symposes
Novice


Joined: 26 Apr 2006
Posts: 34

PostPosted: Mon Oct 16, 2006 3:24 am   
 
or if you have multiples that you might want to turn off at the same time

drop them in a class.
then you just use #t- to turn class off, and #t+ to turn class on.
oh well, just another way to peel that potato
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