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


Joined: 11 Oct 2002
Posts: 29
Location: Sweden

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Oct 17, 2002 11:33 am   
 
#EXEC %concat("#ALARM {+",%random(1,30),"} {#NOOP your command goes here}")
Reply with quote
MadBomber
Beginner


Joined: 17 Oct 2002
Posts: 26
Location: USA

PostPosted: 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
Reply with quote
takke
Beginner


Joined: 11 Oct 2002
Posts: 29
Location: Sweden

PostPosted: Thu Oct 17, 2002 4:16 pm   
 
Thanks for the replies.
The trigger works great.

//Takke
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