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


Joined: 10 Oct 2007
Posts: 17

PostPosted: Sat Feb 02, 2008 3:42 pm   

'#abort all' does not function properly
 
In the helpfiles you will find the following.

#IF (@Name="Zugg") {Command 1;#abort all;Command 2};Command 3
Another contrived example. In this one if @Name is "Zugg" then Command 1 is executed...both Command 2 and Command 3 are aborted since the flag to #abort is non-zero. Command 3 is executed if @Name is not "Zugg".

This used to be true in zmud, but in cmud command 3 is executed all the time.

#Abort all seems to be no different to #abort. Can anybody suggest an easy workaround for this? or do I need to rewrite all my scripts that use #abort 1?
Reply with quote
Zhiroc
Adept


Joined: 04 Feb 2005
Posts: 246

PostPosted: Sat Feb 02, 2008 5:33 pm   
 
"#abort 1" seems to work. I bet the "all" is being converted to a number, and that turns out to be zero?
Reply with quote
luggage
Novice


Joined: 20 Jul 2004
Posts: 38
Location: Australia

PostPosted: Sun Feb 03, 2008 2:12 pm   
 
I tested using #ABORT all in both zmud and cmud, and both process both Command 1 and Command 3.
Zmud help files give the example of using #ABORT 1, and not abort all.
So, yes, atm you need to a find/replace and change everything to abort 1.

Either the help files need adjusting under Cmud to use a 1 instead of the word all, or it is a feature that Zugg was going to implement but never happened yet.
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