 |
MyMiasma Wanderer
Joined: 26 Oct 2012 Posts: 56
|
Posted: 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. |
|
|
 |
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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)))} |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
 |
MyMiasma Wanderer
Joined: 26 Oct 2012 Posts: 56
|
Posted: 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. |
|
|
 |
|
|