Final Fantasy Hacktics

Modding => Help! => Topic started by: Triazic on August 08, 2023, 10:14:32 am

Title: Damage calculation question (WOTL)
Post by: Triazic on August 08, 2023, 10:14:32 am
I am curious about the damage calculation in this game and looked at the PSX BGM.
I am checking basic sword attack damage in the first battle (Orbonne) and am confused.
Attacking Lavian (Female Aries) with Ramza (6PA, 7WP sword, Male Capricorn) should yield 6*7*0.75 (bad zodiac compat) = 31 ~32 dmg.
Instead it yields 35 damage. What am I missing?
This is WOTL.

Damage against Ladd at neutral compat is 42 (correct) and Agrias at best compat is 63 (correct).
Damage against Gaffgarion at good compat is 49 (seemingly incorrect, should be 42*1.25=53).

Are compat multipliers different in WOTL?
Title: Re: Damage calculation question (WOTL)
Post by: stuminator on August 28, 2023, 03:30:19 pm
The zodiac compatibility modifier is applied only to the attacking character's XA, not the WP.  Ramza's attack against Lavian in your example should be calculated as (6 - [6*0.25])*7, which works out to 35.  And attacking Gafgarion would be (6 + [6*0.25])*7, which gives 49.

Also note that when applying compatibility you multiply by either 0.25 (good/bad) or 0.50 (best/worst), then add/subtract that number to the original XA to get the new value.  Using the Orbonne example vs Lavian again, the compatibility modifier changes Ramza's PA in the calculation to 5.  If you calculated 6*0.75 instead, you would get 4.5 (or 4, since FFT truncates nearly all non-integer values) which is incorrect.
Title: Re: Damage calculation question (WOTL)
Post by: oscarramirez on September 04, 2023, 09:54:42 pm
Thanks for this explanation. I'm wondering the same problem
Title: Re: Damage calculation question (WOTL)
Post by: Triazic on December 18, 2023, 12:17:01 am
Right, so the core issue is actually integer rounding being used internally in the calculation, got it. Thanks!