|
takke Beginner
Joined: 11 Oct 2002 Posts: 29 Location: Sweden
|
Posted: Sat Jul 10, 2004 3:00 pm
Random time trigger? |
#EXEC %concat( "#ALARM {+", %random( 1, 20), "} {#no prott}")
What is wrong with this trigger? I want the prott alias to trigger
random between 1 and 20 sec. Can't get it to work
//Takke |
|
|
|
Vodoc Apprentice
Joined: 11 Apr 2003 Posts: 119 Location: Sweden
|
Posted: Sat Jul 10, 2004 3:29 pm |
Don't use the #nop in the alarm and it will work just fine, like this:
#EXEC %concat( "#ALARM {+", %random( 1, 20), "} {prott}") |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Jul 10, 2004 3:46 pm |
Or either of these:
#ALA +%random( 1, 20) {prott}
#EXEC {#ALA +%random( 1, 20) {prott}}
They do the same thing, but show up different if you use #ALARM by itself. The first will show +%random( 1, 20) while the second will show the actual number selected. |
|
|
|
takke Beginner
Joined: 11 Oct 2002 Posts: 29 Location: Sweden
|
Posted: Sat Jul 10, 2004 8:23 pm |
Thanks very much, works great.
Just when you think you understand the language in zmud you notice that you are just in the begining of the learning process :P
//Takke |
|
|
|
|
|