|
rehevkor Newbie
Joined: 02 Nov 2006 Posts: 9
|
Posted: Wed Jul 18, 2007 12:25 am
Disabling or deleting triggers from command line |
Basically, I've created a temp trigger, but sometimes it doesn't fire as intented. Is there an easy way to disable it or delete via a command if it fails to fire or doesn't fire after a certain time? For some reason I can't get the option {dur|param=1000} to work, the trigger still fires after 1000 milliseconds. Or am I missing something?
Thanks. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Jul 18, 2007 5:44 pm |
If you want to disable a trigger from the command line, type #T- {trigger id or trigger}. For instance:
#TRIGGER {The sword glows blue.} {drop sword}
If I wanted to disable the above trigger, I'd type:
#T- {The sword glows blue.}
If I have "Cursed" as an ID on it, though, I'd type:
#T- "Cursed"
As for why your trigger isn't working, I can't help there right now. I'm not on zMUD. :P
Charneus |
|
|
|
rehevkor Newbie
Joined: 02 Nov 2006 Posts: 9
|
Posted: Wed Jul 18, 2007 11:56 pm |
Using #T+ and #T- seem to do the trick, not ideal but it seems a good enough work around. Thank you. :)
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Jul 19, 2007 3:41 am |
Quote: |
As for why your trigger isn't working, I can't help there right now. I'm not on zMUD.
|
Unless the pattern line is part of a really large block of text coming all at once (sometimes Zmud's parser will give up the fight entirely instead of trying to muddle through a backlog of processing), the only times I've ever seen triggers fail to fire is within the automapper or when the pattern doesn't actually match the line. Moving out of a room with an active temporary trigger in the room script causes the mapper to flake out enough that the trigger never fires even if you re-enter the room before the temp-trigger pattern line comes through. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
rehevkor Newbie
Joined: 02 Nov 2006 Posts: 9
|
Posted: Fri Jul 20, 2007 10:35 pm |
The trigger fires, the problem I found was that using the {dur|param=1000} option doesn't seem to work.. it can still fire after 1000 milliseconds.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Jul 20, 2007 10:52 pm |
It's a known issue, but might not change - the trigger will fire once after the duration expires and not again.
|
|
|
|
|
|