|
rkubiak Beginner
Joined: 27 May 2001 Posts: 22 Location: USA
|
Posted: Fri Mar 19, 2004 7:56 am
Trigger on trigger |
Well I'm working on some recasting triggers and I've got it mostly figured out, however I ran into a problem with the message for a successful spell being casted. So the output looks something like.
Ok.
Your spell failed!
Basically all I have to go off for a successful cast is the Ok, so I was thinking have a condition to see if the spell fails, but then I also need to know if it didn't fail somehow. |
|
|
|
Lench Beginner
Joined: 26 Jan 2004 Posts: 21 Location: Norway
|
Posted: Fri Mar 19, 2004 8:31 am |
#trig Ok.
#cond {Your spell failed.}{whatever repeat command your mud has}{within|param=1} |
|
|
|
rkubiak Beginner
Joined: 27 May 2001 Posts: 22 Location: USA
|
Posted: Fri Mar 19, 2004 1:07 pm |
I already have a queue and stuff built and working, so that wouldn't do what I want to do, but thanks :)
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Mar 19, 2004 1:08 pm |
#TRIGGER {Ok.$(*)} {#IF ("%1" != "Your spell failed!") {succesful spell} {spell failed}}
|
|
|
|
rkubiak Beginner
Joined: 27 May 2001 Posts: 22 Location: USA
|
Posted: Fri Mar 19, 2004 1:09 pm |
wow can't believe i didn't think of that, thanks kjata :)
|
|
|
|
|
|