|
futhwo Newbie
Joined: 16 Oct 2006 Posts: 4
|
Posted: Mon Oct 16, 2006 11:42 am
Spell fail trigger |
Hi
I want to set up a trigger that automatically resend an alias/command to the mud if the spell failed.
My mud output when a spell is cast and it fails is like that (i traslated it: i play in an italian mud):
you say the words "powerful spell"
you lose your concentration
i tried to trigger on the "you lose your concentration" pattern things like %lastcommand, %lastinput, using <> or not, and the only one that works a bit is %lastcommand, with the flaw that is send aliases to the mud "verbatim".
Is there a simple way to do what i mean? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Mon Oct 16, 2006 8:18 pm |
Use a placeholder variable to keep track of where you are, then you can use it to repeat if you fail
#ALIAS spell5 {placeholder=spell5;cast spell5}
#TR {you lose your concentration} {@placeholder} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
futhwo Newbie
Joined: 16 Oct 2006 Posts: 4
|
Posted: Tue Oct 17, 2006 8:06 pm |
It works :) thx a lot
|
|
|
|
|
|