Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
MyMiasma
Wanderer


Joined: 26 Oct 2012
Posts: 56

PostPosted: Wed Apr 03, 2013 10:30 am   

how would I..
 
I want to make a list of commands and have an alarm call a random command from the list
and execute it every 20 seconds.

I want to be able to add new commands to the list as well,
I intend to grow the list long term.

is this possible? :)
_________________
It is better to die on your feet than to live on your knees.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Wed Apr 03, 2013 5:12 pm   
 
Something like this (untested):
Code:
commands = {command1|command2|command3}
#ALARM *20 {#SEND %item(@commands, %random(1, %numitems(@commands)))}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Apr 03, 2013 8:02 pm   
 
Presumably these would be game commands, so instead of * you may want to use -. * works while offline, while - only works when connected.
_________________
EDIT: I didn't like my old signature
Reply with quote
MyMiasma
Wanderer


Joined: 26 Oct 2012
Posts: 56

PostPosted: Wed Apr 03, 2013 9:00 pm   
 
thank you and thank you.. :)
_________________
It is better to die on your feet than to live on your knees.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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