I now have it sort of working - it works for my primary weapon, but if i add a different legendary weapon it no longer works.
Really stuck on this now!
Code:
doneif (field[abilActive].value = 0)
var iX as number
~ iX=0
~ Loop through all weapons on the hero except Touch Attacks
~ and any Ammunition.
~ Assume one handed damage
iX = 0
~ If two handed weapon set to two-handed damage
If (hero.child[iMagWeapon].tagis[wClass.TwoHanded] <> 0) Then
iX = 1
~ If one handed and used in two hands then damage is two-handed
ElseIf (hero.child[iMagWeapon].tagis[wClass.OneHanded] + hero.child[iMagWeapon].tagis[Hero.MainHand] + hero.child[iMagWeapon].tagis[Hero.OffHand] = 3) Then
iX = 1
~ If used in off-hand
ElseIf (hero.child[iMagWeapon].tagis[Hero.OffHand] - hero.child[iMagWeapon].tagis[Hero.MainHand] = 1) Then
iX = 4
Endif
~checks if the weapons are legendary and equipped
if (hero.child[iMagWeapon].field[gIsLegend].value <> 0 ) then
if (hero.child[iMagWeapon].field[gIsEquip].value <> 0) then
~Changes the damage shown
hero.child[iMagWeapon].field[wFixDamage].text = "(" & hero.child[iMagWeapon].field[wDamageTbl].arraytext[iX] & ") x2"
endif
endif
any clues as to why it works with a rapier but not a battle axe or light mace???