|
Eraldo Beginner
Joined: 05 Aug 2003 Posts: 17 Location: Austria
|
Posted: 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 |
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: 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
-------------------------------- |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: 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... ;) |
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: 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
-------------------------------- |
|
|
|
Eraldo Beginner
Joined: 05 Aug 2003 Posts: 17 Location: Austria
|
Posted: 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 ^^ |
|
|
|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Wed May 16, 2007 8:10 pm |
i use +.01 alarms, so +.5 is certainly possible.
|
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: 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
-------------------------------- |
|
|
|
|
|