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
simonmarriott
Newbie


Joined: 19 Oct 2003
Posts: 3

PostPosted: Mon Oct 20, 2003 7:23 am   

Wait/Alarm message
 
This is quite hard for me to work out how to code, but maybe easier for some of the good coders heh, here's what im trying to do:

When I see the message -> You deftly maneuver into position....

I would like ZMud to wait 20 seconds, then show a message alerting
me that I can backstab again (A cold shiver runs down your spine.)

I've tried using #WA to time and #ECHO to announce, but #WA, if used in conjunction with another #WA timer, ends up distrupting each other and becomes one big mess.

Thanks :)
Reply with quote
Arcane_of_Discworld
Wanderer


Joined: 29 Jan 2002
Posts: 99
Location: UK

PostPosted: Mon Oct 20, 2003 7:39 am   
 
Instead of using #wa try reading the help file and using #ALARM
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Oct 20, 2003 2:48 pm   
 
You can do this with a one-time alarm or a multi-state trigger.
#TR {You deftly maneuver into position} {#ALA +20 {#ECHO A cold shiver runs down your spine.}}
or
#TR {You deftly maneuver into position} {#NOOP}
#COND {} {#ECHO A cold shiver runs down your spine.} {Wait|Param=20000}

As you've already discovered, #WAIT shouldn't be used with triggers.
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