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


Joined: 02 Nov 2003
Posts: 12
Location: USA

PostPosted: Tue Feb 10, 2004 5:53 am   

sleep or something like it?
 
Is there anything like sleep that can make a script wait a little before it executes the next line?
Reply with quote
Valint
Wanderer


Joined: 12 Nov 2003
Posts: 70
Location: USA

PostPosted: Tue Feb 10, 2004 7:03 am   
 
There is the #wait command, e.g.,
#SAY First line
#WAIT 5000
#SAY Second line
will pause five seconds between those two commands.

However, #WAIT has its own set of problems, and is generally not recommended. A better way is to use #ALARMs, e.g.,
#SAY First line.
#ALARM +5 {#SAY Second line.}
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Feb 10, 2004 7:46 am   
 
of course always good to give your alarms name so as not to have a million of them at one time

#ALARM "name" {+5} {#Say Second Line}
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