Returns the attack power bonus provided by one of the player's basic statistics


See also Stat information functions.

Signature:

attackPower = GetAttackPowerForStat(statIndex, effectiveStat)

Arguments:

  • statIndex - Index of a basic statistic (number)

    • 1 - Strength
    • 2 - Agility
    • 3 - Stamina
    • 4 - Intellect
    • 5 - Spirit

  • effectiveStat - Value of the statistic to use in attack power calculation (number)

Returns:

  • attackPower - Attack power bonus provided to the player by the basic statistic value (number)