I have a problem with my trigger.
Basically, when I try to cast a spell, it has a chance to fail (resulting in "You lost your concentration!" message in output). I want the trigger to re-cast the spell until it succeeds.
Currently, it reacts to the message and also casts the spell without a problem.
The problem is that it doesn`t react to the message once it has been fired (or rather the message this trigger caused).
Here is the trigger:
EDIT:
I have "activeSpell" variable declared in MUSHClient, it holds the name of the spell I want to re-cast
Basically, when I try to cast a spell, it has a chance to fail (resulting in "You lost your concentration!" message in output). I want the trigger to re-cast the spell until it succeeds.
Currently, it reacts to the message and also casts the spell without a problem.
The problem is that it doesn`t react to the message once it has been fired (or rather the message this trigger caused).
Here is the trigger:
<triggers>
<trigger
enabled="y"
group="Casting"
keep_evaluating="y"
match="You lost your concentration!"
name="spellAutoRetry"
send_to="12"
sequence="100"
>
<send>
activeSpell = GetVariable('activeSpell')
Send("cast '" .. activeSpell .. "'")
</send>
</trigger>
</triggers>
EDIT:
I have "activeSpell" variable declared in MUSHClient, it holds the name of the spell I want to re-cast