|
Distract Newbie
Joined: 06 May 2009 Posts: 2
|
Posted: 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. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed May 06, 2009 6:39 pm |
Try using a local variable. You cannot cast ($spell:*) again - You can use $spell now.
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Wed May 06, 2009 7:23 pm |
Since your alarm is a simple delay, why not use #WAIT 2000 instead?
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Distract Newbie
Joined: 06 May 2009 Posts: 2
|
Posted: 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. |
|
|
|
|
|