|
takke Beginner
Joined: 11 Oct 2002 Posts: 29 Location: Sweden
|
Posted: Thu Oct 17, 2002 10:30 am
Timeproblemes |
Hi there fooks
I need to make a trigger there the command will randomly execute in a range of 1-30 sec. How can I make this happend?
Thanks
Takke |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Oct 17, 2002 11:33 am |
#EXEC %concat("#ALARM {+",%random(1,30),"} {#NOOP your command goes here}")
|
|
|
|
MadBomber Beginner
Joined: 17 Oct 2002 Posts: 26 Location: USA
|
Posted: Thu Oct 17, 2002 11:58 am |
I could be mistaken but this should work absolutely fine:
#ALA takke_alarm *%random(1,30) {#SH Random Trigger in Effect}
It will take a random number between 1 and 30, wait that many seconds, then display "Random Trigger in Effect" on your screen. Of course just change "#SH Random Trigger in Effect" to whatever you need it to do. If you only need to do it once, then use the following trigger:
#ALA takke_alarm *%random(1,30) {#SH Random Trigger in Effect;#T- takke_alarm}
Take Care,
MadBomber |
|
|
|
takke Beginner
Joined: 11 Oct 2002 Posts: 29 Location: Sweden
|
Posted: Thu Oct 17, 2002 4:16 pm |
Thanks for the replies.
The trigger works great.
//Takke |
|
|
|
|
|