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
roncli
Wanderer


Joined: 07 Sep 2002
Posts: 63
Location: USA

PostPosted: Mon Nov 04, 2002 8:29 am   

Aborting scripts
 
I have Alias_A:

#echo "Starting Alias_A"
Alias_B
#echo "Ending Alias_A"

And I have Alias_B:

#echo "Starting Alias_B"
;Some command needs to go here
#echo "Ending Alias_B"

Basically, I want to place a command on the comment line in Alias_B that will cause the output to read:

Starting Alias_A
Starting Alias_B
Ending Alias_A

#abort and #abort 1 do not finish the script for Alias_A. What am I missing?

-roncli
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Nov 04, 2002 1:26 pm   
 
I don't think you can do that. Try suggesting it to Zugg and maybe he'll implement it in a future version.

Kjata
Reply with quote
roncli
Wanderer


Joined: 07 Sep 2002
Posts: 63
Location: USA

PostPosted: Fri Dec 13, 2002 7:44 pm   
 
I figured out how to do this.

Alias_A

#echo "Starting Alias_A"
#alarm +0.001 {Alias_B}
#echo "Ending Alias_A"

Alias_B

#echo "Starting Alias_B"
#abort 1
#echo "Ending Alias_B"

By calling it as an alarm, it starts up a separate thread, thus eliminating the problem with #abort 1 cancelling everything. :)

-roncli
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