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: 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
Reply with quote
Vodoc
Apprentice


Joined: 11 Apr 2003
Posts: 119
Location: Sweden

PostPosted: 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}")
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

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


Joined: 11 Oct 2002
Posts: 29
Location: Sweden

PostPosted: 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
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