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
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Fri Oct 21, 2011 9:38 am   

#t- "classname/triggerID" trigger
 
I need/want some way to turn a trigger on or off inside a specific class. Because I've been told it is bad to use #class for this.
Would be nice if there's another way to do this.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Oct 21, 2011 5:07 pm   
 
You should be able to use the //module/class/.../setting format, but failing that the old-style syntax using pipes (class|class|...|setting) still works. Then again, if you have unique names for settings then you don't need to worry about the class path at all.

As an additional point, #T+/#T- both accept a second argument that lets you choose the setting type to look for:

#T+ Notes trigger
#T- Notes class
_________________
EDIT: I didn't like my old signature
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Sat Oct 22, 2011 7:16 am   
 
#t- "classname/triggerID" - works
#t- "triggerID" trigger - works
#t- "classname/triggerID" trigger - DOESN'T work. (or is #t+, or both?) It creates a new class.
I wanted this to work, really. Any other ways that do the same thing? Using unique IDs is the same thing when I use the #t+ "classname/triggerID". I had gotten into the habit of putting my classname into the trigger IDs. That's the best I do with #t- + atm.
So as long as I don't use duplicate IDs across aliases/triggers/classes I should be good, and use #t- "classname/triggerID" I guess. Thanks :)
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