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


Joined: 05 Aug 2003
Posts: 17
Location: Austria

PostPosted: Tue May 15, 2007 9:44 pm   

half second Alarm...
 
Greetings...

To optimize one of my scripts...
I would like to change one of my alarms (+1) to fire twice as fast...
that would be half a second...
I tried +0,5 ...but that does not work...
in the manual it says that half a second is possible....

Please tell me what syntax to use :)

Thanks & best Regards...
Eraldo
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Tue May 15, 2007 9:50 pm   
 
its *.501 :)

if its with "+", its temp alarm and +0.5 should work, notice the "." instead of ",".



Prog
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue May 15, 2007 10:29 pm   
 
Yep, programming tends to use english conventions, so a full stop instead of a comma for a decimal point.
#alarm test {+0.5} {do whatever}

where test is the name of the alarm (you don't have to include a name, but it helps to manage them)
As Progonoi said, for a recurring alarm then use *0.5 instead of +0.5
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Tue May 15, 2007 10:58 pm   
 
I bet it was just a typo but I'm still going to say that

Code:


#alarm "test" {*0.5} {do whatever}



WON'T work.

Code:


#alarm "test" {*.501} {do whatever}



WILL work.


Prog
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
Reply with quote
Eraldo
Beginner


Joined: 05 Aug 2003
Posts: 17
Location: Austria

PostPosted: Wed May 16, 2007 10:53 am   
 
Thank you :)
that will surly speed up things *cheeeer*
I meant it to be a 'one time alarm' ;)
But thanks for meantioning (thinking of reference)
I'm from Austria.. thats where the comma came from I guess ^^
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Wed May 16, 2007 8:10 pm   
 
i use +.01 alarms, so +.5 is certainly possible.
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Wed May 16, 2007 8:36 pm   
 
As far as I know, the temp alarm setup is a lot more flexable in the sense of numbers/exact numbers as perm alarms are.

That being said, I don't see why +.5 shouldn't be possible. I haven't tried it, though. More into permanent alarms myself if anything.



Prog
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
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