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


Joined: 21 Mar 2003
Posts: 19
Location: USA

PostPosted: Mon Oct 06, 2003 6:09 pm   

#WAIT
 
Is there any way to clear a command that has been #WAIT'ed?

EX:
-----------
#WAIT 10000
SAY HI
-----------


What if I want to abort the command SAY HI five seconds into the wait?
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Mon Oct 06, 2003 6:22 pm   
 
I don't think its possible, you should try using a alarm instead, then you can delete the alarm if you want to stop it.

#alarm +10 {say hi}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Oct 06, 2003 7:44 pm   
 
#ABORT 1
Reply with quote
Andromeda
Beginner


Joined: 29 Aug 2003
Posts: 25
Location: USA

PostPosted: Mon Oct 06, 2003 7:59 pm   
 
I find the escape key clears a wait in progress.

Is there a way to detect an escape key press so that triggers can be stopped in flight?
Reply with quote
Bradach
Beginner


Joined: 21 Mar 2003
Posts: 19
Location: USA

PostPosted: Tue Oct 07, 2003 6:15 pm   
 
Ok, next question:
I'd considered using #ALARM but I couldn't get it to work any differently than #WAIT

Can someone please give me a complete example? Talahaski says to delete the alarm, but I don't know how to do that. LightBulb says to use #ABORT 1, but I didn't get the results I need, unless I have the context wrong.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Oct 07, 2003 6:35 pm   
 
To delete an alarm, use the #untrigger command.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Oct 07, 2003 10:44 pm   
 
Perhaps you could give us a complete example? Maybe some details on the results you want? How you intend to use it?

I took your example and pasted it to my command line.
#WAIT 10000
SAY HI

Sure enough, after about 10 seconds I got
SAY HI

Then I did that again
#WAIT 10000
SAY HI

But this time, after hitting Enter I typed in
#ABORT 1
This probably took me 2-3 seconds, but certainly far less than 10. After waiting about 20 seconds, there was still no further output. This sounds like exactly what you asked for, a way to abort the command SAY HI several seconds into the wait.
Reply with quote
Bradach
Beginner


Joined: 21 Mar 2003
Posts: 19
Location: USA

PostPosted: Wed Oct 08, 2003 4:28 am   
 
Thanks, that worked. I don't know why I had a problem when I first tried it, but it works fine now.

Thanks again!
Bradach
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