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
LEit
Novice


Joined: 27 Jul 2002
Posts: 38
Location: USA

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

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