Why not just use something like
if ( get_eq_char(WEAR_WIELD) == NULL && ch->stance != STYLE_NONE)
?
Just be sure that when you are seeting the new damage type you add TYPE_HIT
to the amount before sending it along.
Tavish
> ----- Original Message -----
> From: "Matt Foltz" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Saturday, January 04, 2003 1:14 PM
> Subject: Fighting stances
> Here is my dilemma. I have 20 different martial arts
> styles, and a command to switch between them.
> That part works fine. What I want to do is if you're
> using
> hand_to_hand, and in a stance, to have it randomly
> pick a damage string and the corresponding dam_type
> from the style_table. I put a check like this:
> if ( dt == gsn_hand_to_hand && ch->stance != STYLE_NONE )
> into the damage function, but it never passed the
> check. Is there a way to check if the attack
> itself is coming from hand_to_hand? Or is there a better
> way
> to approach this? Thanks for any help.
> -Matt Foltz
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail