Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Distract
Newbie


Joined: 06 May 2009
Posts: 2

PostPosted: Wed May 06, 2009 6:18 pm   

#Alarm pattern troubleshooting
 
Hi, I'm quite new to z and cMUD and was reading through the helpfile to figure out how to make triggers and such instead of asking but I'm stumped with this.

What I want is a trigger to start after I used a spell that is still on a cooldown that tells me when the cooldown is up and ready.

This is what I have so far:
Code:
<trigger priority="750" repeat="true" id="75">
  <pattern>You cannot cast (*) again for another (%d) seconds.</pattern>
  <value>#ALARM +%2 {#SAY You can use %1 now.}</value>
</trigger>


Everything works except that when it tells me the spell is off cooldown it says "You can use now."
So the problem is the timing is right and it will tell me that it's off cooldown, it just won't tell me which spell it is.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed May 06, 2009 6:39 pm   
 
Try using a local variable. You cannot cast ($spell:*) again - You can use $spell now.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Wed May 06, 2009 7:23 pm   
 
Since your alarm is a simple delay, why not use #WAIT 2000 instead?
_________________
Discord: Shalimarwildcat
Reply with quote
Distract
Newbie


Joined: 06 May 2009
Posts: 2

PostPosted: Wed May 06, 2009 11:06 pm   
 
Fang Xianfu wrote:
Try using a local variable. You cannot cast ($spell:*) again - You can use $spell now.

Yes, that worked. Thank you.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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