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
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Tue Oct 15, 2002 2:01 am   

Timer with a random actions...
 
Anyone know how about doing a ALARM for like every 10 minutes, and a action (random from a list) will occur, ?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Oct 15, 2002 2:19 am   
 
#ALARM {*600} {#EXEC %item(@list, %random(%numitems(@list)))}

Kjata
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Tue Oct 15, 2002 2:57 am   
 
hmm, it doesn't work, I created a variable name list too
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Oct 15, 2002 3:58 am   
 
#VAR list %null
#ADDITEM list {remove all}
#ADDITEM list {drop all}
#ADDITEM list {drop all gold}
#ADDITEM list {dance}
#ADDITEM list {say oops}

It has to be a list. The order doesn't matter, since you are picking a random item. I wouldn't recommend the examples I used.

LightBulb
Senior Member
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Tue Oct 15, 2002 8:48 am   
 
thanks
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