Attack Rolls
Rule
When making an attack roll, determine the result by rolling 1d20 and adding your attack modifier for the weapon or unarmed attack you're using. Modifiers for melee and ranged attacks are calculated differently.
Bonuses and penalties apply to these rolls, just like with other types of checks. Weapons with the tracking trait add an item bonus to your attack rolls, improving your ability to hit targets.
Melee attack roll result = d20 roll + Strength modifier (or optionally Dexterity modifier for a finesse weapon) + proficiency bonus + other bonuses + penalties
Ranged attack roll result = d20 roll + Dexterity modifier + proficiency bonus + other bonuses + penalties
Bonuses and penalties apply to these rolls, just like with other types of checks. Weapons with the tracking trait add an item bonus to your attack rolls, improving your ability to hit targets.
Melee attack roll result = d20 roll + Strength modifier (or optionally Dexterity modifier for a finesse weapon) + proficiency bonus + other bonuses + penalties
Ranged attack roll result = d20 roll + Dexterity modifier + proficiency bonus + other bonuses + penalties