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
zorra
Beginner


Joined: 13 Oct 2006
Posts: 10

PostPosted: Thu Jun 12, 2008 9:55 am   

Is there a command to delete all the temporary triggers?
 
I have a lot of temporary triggers in the game, but if I was disconnected and automatically login again, those stored triggers may cause trouble. So I want to delete them all in some cases. Is there any command related to this? Thanks a lot in advance.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Jun 12, 2008 10:50 am   
 
Depends what you mean by temporary. Assuming you're talking about the #temp command - no, there's not. You can give them all unique ids when you create them, though (say, temp_trig1 to temp_trig23523 or whatever) and then do:

#loop 23523 {#untrig %concat("temp_trig",%i)}

in an atconnect alias.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
zorra
Beginner


Joined: 13 Oct 2006
Posts: 10

PostPosted: Tue Jun 17, 2008 8:30 am   
 
Thanks for the reply. I actually found the way to do that. I use #ALARM +2 to replace the #WAIT 2000, and when create the temporary triggers, I use a temp class to hold them, like #ALARM +2 {do something} {temptimer}. And when I detect something unusual happens, I can delete them by using #DELCLASS temptimer.
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