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


Joined: 10 Feb 2004
Posts: 21
Location: Sweden

PostPosted: Fri Nov 24, 2006 5:57 pm   

Delaying an Alarm with 200ms.
 
Greeting!

I have a script that needs to excecute an trigger every 3,2sec or 3200ms.

Problem is:
Quote:
The smallest period of time that can be matched by an alarm is half a second.


Any brilliant ideas out there?

I guess you could use #WAIT but i'd rather not.
And if you switch alarm length each time, first 3000ms then 3500ms, you end up with 3250ms avarage but it's messy as the trigger is inherited.
_________________
When you lose, dont lose the lesson.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Nov 24, 2006 7:07 pm   
 
Doesn't a wait-state trigger operate on milliseconds like #WAIT? I suppose you could more elegantly include that in your script as a replacement of the alarm, but at it's simplest you could have an alarm that gets you close to the time needed and then have it enable the wait-state trigger to zero in on the correct time.
_________________
EDIT: I didn't like my old signature
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Nov 24, 2006 9:56 pm   
 
Lets see, .5 second is less than 3.2 seconds. What was the problem again?

The half a second was an imposed limit in one of the betas at the time I worked on the help file. I don't believe that limit was actually removed, but it may have been. In any case, that particular limit was for alarms of less then .5 seconds at the time of creation.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Mortis
Beginner


Joined: 10 Feb 2004
Posts: 21
Location: Sweden

PostPosted: Sat Nov 25, 2006 6:18 am   
 
Ahh. MattLofton, your idea worked. First I made an alarm that triggered after 3 sec then waited 200ms.

And Vijilante, are seeing your reply I did a quick test to see if the limit was there. And it wasnt! Stupid of me not to test that before I posted here.

Thanks for the quick replies.
_________________
When you lose, dont lose the lesson.
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Sun Nov 26, 2006 7:47 pm   
 
i use alarms of +.01 so i don't believe this limit exists
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