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


Joined: 06 Sep 2001
Posts: 14
Location: Canada

PostPosted: Fri Jul 12, 2002 10:50 pm   

Triggers on and off
 
Is there any commands to just turn triggers "on" or "off"
rather than a toggle using #ig ??

I can't connect to mud in proxy ahhhhhhhh
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Jul 12, 2002 11:08 pm   
 
quote:

Is there any commands to just turn triggers "on" or "off"
rather than a toggle using #ig ??

I can't connect to mud in proxy ahhhhhhhh



Besides the individualistic #T+/#T-? Not if you still want the trigger to be in the settings file.

li'l shmoe of Dragon's Gate MUD
Reply with quote
EdwinDroom
Wanderer


Joined: 25 Jan 2002
Posts: 77
Location: Ireland

PostPosted: Tue Jul 16, 2002 1:49 am   
 
Well, you could set a variable when you use #IG to store whether they are on or off, then use #IF to toggle if necessary...

Bit of a lateral solution, but it does the job

All the best freaks are here, please stop staring at me
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jul 16, 2002 5:30 pm   
 
I suppose you could make buttons
#var ignore 0 0
#BUTTON 0 {Ignore} {#IF (@ignore = 0) {#VAR ignore 1;#IGNORE}} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "Test" {} {} {}
#BUTTON 0 {Triggers} {#IF (@ignore = 1) {#VAR ignore 0;#IGNORE}} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "Test" {} {} {}


LightBulb
Senior Member
Reply with quote
lewdpotato
Novice


Joined: 16 May 2002
Posts: 48
Location: USA

PostPosted: Tue Jul 16, 2002 5:42 pm   
 
I use buttons to turn my triggers on and off.
I like to put my triggers into different classes. then make buttons to turn the class on and off. for example, if the name of the class containing the script(s) you want to turn of is "TEMP" then make a button like this
#T-temp
and to turn it back on
#T+temp
hope this helps
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Wed Jul 17, 2002 11:24 am   
 
Or, you can make commands of your own:

#CLASS {TriggerOnOff}
#VAR On 0
#TRIGGER {Testing to see if triggers are on...} {#VAR On 1}
#ALIAS {TriggerOn} {#VAR On 0;#SAY Testing to see if triggers are on...;#IF (@On = 0) {#IGNORE}}
#ALIAS {TriggerOff} {#VAR On 0;#SAY Testing to see if triggers are on...;#IF (@On = 1) {#IGNORE}}
#CLASS 0

Now you can use TriggerOn and TriggerOff to enable/disable all triggers explicitly instead of toggling with #IGNORE.


 - Charbal
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