|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: 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 :) |
|
|
|
|
|