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
Atreides096
Beginner


Joined: 26 Apr 2004
Posts: 15
Location: USA

PostPosted: Fri May 21, 2004 3:01 am   

Help with #alarm or similar command
 
Hi, I am trying to write a couple of scripts right now that involved time-delayed output to the MUD. The #wait command is too flawed for the timing I need, and I cannot get the #alarm command to work.. I was wondering if someone could help with the syntaxing? An example of what I want to do would be like:

#ac {^(%w) says 'Activate'}
{
say Bot activated
(delay 2 seconds)
say something else
(delay 6 seconds)
say something else
(etc)
}

All help is appreciated, thanks!
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Fri May 21, 2004 3:07 am   
 
#TRIGGER {^(%w) says 'Activate'} {say Bot activated
#ALARM +2 {say something else
#ALARM +6 {say something else}
}
}

These alarms are nested.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri May 21, 2004 3:53 am   
 
A multistate Wait-type trigger could also be used.
#ACTION {^(%w) says 'Activate'} {say Bot activated}
#COND {} {say something else} {Wait|Param=2000}
#COND {} {say something else} {Wait|Param=6000}
(etc)
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