The attack rating is one of the most important combat stats in Legends of Arthengard. It determines how often your normal attacks hit an enemy.
Hit Chance
The hit chance comes from the ratio between your attack rating and the enemy's defense rating. The defense only counts for half:
Hit chance = Attack rating ÷ (Attack rating + half the defense rating) × 100
With 20 attack rating against 20 defense rating you therefore hit 67% of the time. The higher your attack rating compared to the enemy's defense, the more often your attack lands. The hit chance is at most 95%.
The attack rating applies to normal attacks. Spells and combat runes always hit.
Damage
How much a hit deals is determined by your minimum and maximum damage. The damage is rolled randomly within this range and then reduced by the enemy's defense rating. More on this in the article Defense Rating.
Where the Attack Rating Comes From
The base value comes from your Dexterity: 2 × the square root of Dexterity, rounded down. On top of that comes the attack rating of the weapon you are currently fighting with. If you carry a melee and a ranged weapon, the weapon you use in your row counts. The article Combat Position and Rows explains which one that is.
During combat, spells can change the attack rating for a few rounds. Some runes raise your own value and others lower the enemy's value.