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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
rkubiak
Beginner


Joined: 27 May 2001
Posts: 22
Location: USA

PostPosted: 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.
Reply with quote
Lench
Beginner


Joined: 26 Jan 2004
Posts: 21
Location: Norway

PostPosted: Fri Mar 19, 2004 8:31 am   
 
#trig Ok.
#cond {Your spell failed.}{whatever repeat command your mud has}{within|param=1}
Reply with quote
rkubiak
Beginner


Joined: 27 May 2001
Posts: 22
Location: USA

PostPosted: 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 :)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Mar 19, 2004 1:08 pm   
 
#TRIGGER {Ok.$(*)} {#IF ("%1" != "Your spell failed!") {succesful spell} {spell failed}}
Reply with quote
rkubiak
Beginner


Joined: 27 May 2001
Posts: 22
Location: USA

PostPosted: Fri Mar 19, 2004 1:09 pm   
 
wow can't believe i didn't think of that, thanks kjata :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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