|  | 
	
	
		| vwan Beginner
 
 
 Joined: 06 Sep 2001
 Posts: 14
 Location: Canada
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		| MattLofton GURU
 
 
 Joined: 23 Dec 2000
 Posts: 4834
 Location: USA
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		| EdwinDroom Wanderer
 
 
 Joined: 25 Jan 2002
 Posts: 77
 Location: Ireland
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		| LightBulb MASTER
 
 
 Joined: 28 Nov 2000
 Posts: 4817
 Location: USA
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		| lewdpotato Novice
 
 
 Joined: 16 May 2002
 Posts: 48
 Location: USA
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		| Charbal GURU
 
 
 Joined: 15 Jun 2001
 Posts: 654
 Location: USA
 
 | 
			
			  |  Posted: 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
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |