Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Mar 30, 2009 4:09 am   

Is there a shorthand notation for #T- to disable the event/trigger you are in?
 
I find that often enough I want to disable the event/trigger I'm running code in. I use the #T- and specify the name. Is there any shorthand way to disable the trigger/event I'm running in without specifying the name/id?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Mar 30, 2009 4:48 am   
 
Not that I'm aware of.
_________________
Asati di tempari!
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Tue Mar 31, 2009 3:49 am   
 
If you wanted you could store the triggerid in a variable for each trigger and have a macro to #T- that setting so the last trigger would always be selected, or just put that code in scripts you find suitable. I'm not sure if there is a predefined value for the triggerid of the last trigger fired.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Tue Mar 31, 2009 11:37 pm   
 
If you're going to do all that, why not just put #T- triggerid in the script? Whats the big deal? :-)
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Wed Apr 01, 2009 12:52 am   
 
It would be nice if you could do #T- without an argument and have it disable the alias/trigger that is running it.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Apr 01, 2009 4:41 am   
 
I don't think that will happen. By design, it already disables all triggers that are firing.
_________________
Asati di tempari!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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