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


Joined: 10 Sep 2003
Posts: 3
Location: USA

PostPosted: Mon Feb 02, 2004 12:31 am   

Stop or Abort a loop
 
I'm finding out that starting a loop say..
#LOOP 1,20 {#SHOW {test};#WA 1000}
will show the word TEST 20 times regardless if the class has been disabled in the middle of the loop or not.

I've made some scripts where I needed to break the loop and found that the loop kept going even after I disabled the class. Is there a way to stop a loop completely?

I know how to get around it by simply using recursive definitions, but sometimes they are a pain to create and I thought I'd ask to see if there's a command to completely break a loop.
If such command exists, what are the consequences? (meaning memory cleared of all current scripts.. variables cleared or not)

If anyone has any info on this, I'd appreciate it very much. Thanks!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Feb 02, 2004 5:48 am   
 
Have you tried the #ABORT command?
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