Attack roll


 * When an attack is made, the attacker rolls a 1d20.
 * All attack bonuses also known as to-hit bonuses that the character may have are added to the roll.
 * If the sum meets or beats the target's armor class, a hit is scored.

Basic attacks
 * Melee Attacks - 1d20 + BAB + Strength Modifier + size modifier + feat modifiers + weapon modifiers
 * Melee attack roll (with Weapon Finesse and Dexterity > Strength) = 1d20 + BAB + dexterity modifier + size modifier + feat modifiers + weapon modifiers
 * Ranged attack roll - 1d20 + BAB + dexterity modifier + size modifier + feat modifiers + weapon modifiers
 * Ranged attack roll (with Zen Archery and Wisdom > Dexterity) = 1d20 + base attack bonus + wisdom modifier + size modifier + feat modifiers + weapon modifiers

Example Melee attack roll for the character with the weapon equipped

1d20 + 16 (BAB) + 5 (STR bonus) + 0 (size modifier) + (( Feat modifiers + 1 (Weapon Focus - Bastard Sword) - 2 (tower shield penalty)) + (weapon modifier + 3 enhancement bonus) = 1d20 + 23