 |
gmueller Apprentice
Joined: 06 Apr 2004 Posts: 173
|
Posted: Wed Mar 23, 2005 4:23 am
how to properly specify a trigger in a #T+ or #T- |
ok i realize that the syntax for #T+ is Syntax: #T+ classname/id [type]
but since there are no examples that include all of the options i havent a clue if the / is there or the []....
at any rate this is what im trying to do,
I have an alarm reenable my eat herb aliases after a certain period of time, but also if i eat an herb, i want to turn off the alarm trigger, because the condition the alarm was waiting for was satisfied. The problem is...since i use
Code: |
#ALARM my_trivial_alarm_name {+1} {do_stuff} |
the alarm might not be there when i try to
Code: |
#T- my_trivial_alarm_name |
and so it creates a class by the name of my_trivial_alarm_name
How do i avoid this problem, or can someone show me the appropriate syntax for the #T[+/-] command |
|
|
 |
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Wed Mar 23, 2005 4:40 am |
Maybe this will sound just to basic, but what if you put that alarm in a Class folder and just enable disable it with the #T+ #T- syntax
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Mar 23, 2005 10:57 am |
Specifying the type will solve your immediate problem, keep in mind that alarms are special kind of trigger.
#T- my_trivial_alarm_name trigger
I would suggest that if you are going to use #T- with the alarm you make it static instead of temporary. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
Theragil Apprentice

Joined: 13 Feb 2004 Posts: 157 Location: USA
|
Posted: Wed Mar 23, 2005 3:12 pm |
Or, just untrigger the alarm, since you'll be creating it again next time you need it anyway, instead of disabling it.
|
|
|
 |
DeathDealer Adept

Joined: 20 Jul 2004 Posts: 268
|
Posted: Wed Mar 23, 2005 3:23 pm |
To piggyback a question on the same topic, is there a way to have the #T work on either a folder OR a command?
like if I have a folder called Quest and an trigger ID'd as Quest. Can you tell #T WHICH one to turn off? I know the easy way is NOT to have a folder AND a trigger with the same name, but that's not always an easy thing when importing codes and forgetfullness :-)
Oh, and as a side note: if you have a folder/trigger named with a space, as in, Quest Triggers you can put "'s around the text like this:
#T+ "Quest Triggers"
Just something I learned the other day when i was cleaning up my folders and renaming them and putting spaces without thinking :-) |
|
_________________
 |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Mar 23, 2005 11:38 pm |
Your question was already answered, DeathDealer. You need to specify the TYPE in the #T+ or #T- command:
#T+ Quest class
#T- Quest trigger
This will cause ZMud to only look at the specified type of setting, instead of accidentally turning off the wrong item. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
DeathDealer Adept

Joined: 20 Jul 2004 Posts: 268
|
Posted: Thu Mar 24, 2005 7:33 pm |
bleh, yer right. thought that it had said #T- my_trivial_alarm_name_trigger
Also correctly reading the help file "In case of name conflicts, you can specify the type of setting (alias, trigger, macro, button, path, variable, status, class, speed) to search for. " shoulda made it damned obvious to me  |
|
_________________
 |
|
|
 |
|
|