I've figured out that dt is equal to TYPE_HIT + your weapon's dam_type or dam_punch. Basically it equals like 1009 if you're unarmed (I reordered my damage types). The check should be if ch->stance != STYLE_NONE, because when you're in a stance it should be picking these damage types from a different attack table. The default is STYLE_NONE which equals 0. -Matt Foltz
--- Tony Kuiper <[EMAIL PROTECTED]> wrote: > Matt, > Well, the first thing I'd do is figure out what > dt and ch->stance are > inside the damage function - printf or > gdb+breakpoints come in very handy > for this, then I'd go from there. lso, is there a > default stance whenever > using hand_to_hand? > Or should that if check be if( ... && ch->stance > == STYLE_NONE ) to say > they're using h-t-h but don't have a particular > stance? (Or am I > misunderstanding what this if check is for?) > > Tony > > ----- 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 > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > > http://mailplus.yahoo.com > > > > -- > > ROM mailing list > > [email protected] > > http://www.rom.org/cgi-bin/mailman/listinfo/rom > > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

