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


Joined: 22 Aug 2006
Posts: 9

PostPosted: Wed May 13, 2009 8:10 pm   

Disabiling an alias
 
I have an alias that I use to set off a timed sequence of events. It works great, but I encounter one problem with it. If I want to do anything (say like move to another room) before the sequence is finished it will keep firing off, which becomes a huge hassle. My question is how do I disable the alias once the sequence has started (stop it from running and sending the rest of the commands to the mud)? I tried disabiling the class that the alias is in, but it doesn't work. The sequence of events just continues.

Thanks...
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu May 14, 2009 1:08 am   
 
You can't. You could build checks at various points like #if (@abort) {#abort 1} and then change the @abort variable to 1 when you want it to stop. You could also divide your alias up into smaller chunks that call each other in a chain, and disable them when you want it to stop. It'll stop when it gets to the next break.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Kiltedboy
Newbie


Joined: 22 Aug 2006
Posts: 9

PostPosted: Thu May 14, 2009 1:49 am   
 
Sounds good. I'll give it a shot.

Thanks for you help.. :)
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Fri May 15, 2009 2:04 am   
 
Another option if you use the movement Macros is to edit them (or better, to create new ones with the same keys and leave the default hidden ones alone) and add #ABORT 1 to them. I use that.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
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