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
rehevkor
Newbie


Joined: 02 Nov 2006
Posts: 9

PostPosted: 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.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
rehevkor
Newbie


Joined: 02 Nov 2006
Posts: 9

PostPosted: 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. :)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
rehevkor
Newbie


Joined: 02 Nov 2006
Posts: 9

PostPosted: 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.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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