|
LEit Novice
Joined: 27 Jul 2002 Posts: 38 Location: USA
|
Posted: Thu Aug 08, 2002 5:45 pm
Removing #WAIT |
I've got an alias that currently uses #WAIT, and I've been trying to remove #WAIT after reading about #WAIT (this has beta info, but the stuff on #WAIT applies to the public release) http://www.zuggsoft.com/zmud/timers.htm
My alias is:
#ALIAS psing {
rest
sing none;sp sylar;sing seduction
#wait 5000
sing none;sp com;sing tales
#wait 5000
.
.
.
(for 12 more songs)
I suppose I could have nested alarms, but that seems kind of klugy. Does any one have a better suggestion?
Thanks |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Aug 08, 2002 6:42 pm |
Put your commands into a stringlist and have the alarm send the next item in the stringlist each time it fires. This should do it:
#VAR index 1
#VAR commands {"sign none;sp com;sing tales"|"sign none;sp something;sing somethingtoo"}
#ALARM "queueAlarm" {*5} {#EXEC %item(@commands, @index);#ADD index 1;#IF (@index > %numitems(@commands)) {#UNTRIG "queueAlarm"}}
Kjata |
|
|
|
|
|