Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Ethershade
Beginner


Joined: 17 Oct 2008
Posts: 11

PostPosted: Thu Oct 23, 2008 11:57 am   

Abort Alias?
 
Im wondering if there is a way to abort an alias completely, and with that id also like how to abort a loop completely, any help is very much appreciated
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Thu Oct 23, 2008 11:58 am   
 
#ABORT
_________________
Taz :)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Oct 23, 2008 3:52 pm   
 
#ABORT can abort the alias, or also abort the entire script that called the alias. It's actually better to use #EXIT since it just exits the current alias without aborting the calling script. Or, if you are just trying to break out of a loop, use the #BREAK command.

If you are talking about how to abort an alias that is already running as a loop in the background, then it is harder. You need to identify the thread number using the #THREAD command and then use #STOP to kill the thread. In this case, it's better to modify your alias to test a variable to determine if the loop should be aborted and then you can just set that variable from another alias.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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