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
phranq
Beginner


Joined: 11 Jul 2006
Posts: 13

PostPosted: Tue Jul 11, 2006 1:29 pm   

Need help, #COND...I thought I was using it right
 
So yah, erm, according to the help library on #COND I assumed this would work, any idea where it goes wrong?

#TRIGGER {%w lets fly at you with a snap kick.} {#SUB {Snap Kick}}
#COND {({He|She}) connects to the ({left leg|right leg|left arm|right arm|head|torso})!} {#SUB {<<<< Opponent Hit %2 >>>>}} {Within|Param=3}


Edit: To elaborate...it looks like this in the game

Bob lets fly at you with a snap kick.
He connects to the left arm!

If Bob is attacking say someone else, it looks like

Bob lets fly at Bill with a snap kick.
He connects to the left arm!

So, pretty much I'm just trying to use this as a check to only #SUB the hit when the attack is against me. I'm sure there's a way to trigger it to my health going down too (for verification, but I don't know how to do that.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Jul 11, 2006 7:11 pm   
 
It works for me... Can you tell me what wrong with it? Bear in mind that the Within Param is 3 so
Code:
Bob lets fly at you with a snap kick.
Bob ducks
Bob dances
He connects to the left arm!
will match, but
Code:
Bob lets fly at you with a snap kick.
Bob ducks
Bob dances
Bob punches swings and misses
He connects to the left arm!
won't.
_________________
Asati di tempari!
Reply with quote
phranq
Beginner


Joined: 11 Jul 2006
Posts: 13

PostPosted: Tue Jul 11, 2006 11:50 pm   
 
hmm, I think I just pasted it into the command funny...all is well ... hrm, thanks.
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