Right, that makes sense (it's taking me awhile to remember how ROM uses
dt...), so then we are left with the question of what is gsn_hand_to_hand's
value? (since we're comparing to require dt to be equal to it...) Or maybe
the if check should be "dt == ( TYPE_HIT + gsn_hand_to_hand ) && ..." or
"( dt - TYPE_HIT ) == gsn_hand_to_hand && ..."
My apologies for the misspellings of previous emails, somehow the
automatic spell checker got left off... *whistles innocently* :-)
Tony
----- Original Message -----
From: "Matt Foltz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, January 04, 2003 1:44 PM
Subject: Re: Fighting stances
> 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
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>