Summary

Methods

Returns the armor class of the player, which an attack roll against them has to reach to hit: 10, plus the modifier of their reflexes when the Stats plugin is loaded, plus 2 while they have any armor, after the AdjustArmorClass hook.

Methods

Player:get_armor_class()

shared plugins/d20/plugin/lib/sh_d20.lua:66

Returns the armor class of the player, which an attack roll against them has to reach to hit: 10, plus the modifier of their reflexes when the Stats plugin is loaded, plus 2 while they have any armor, after the AdjustArmorClass hook.

target:get_armor_class() -- 10 + 2 reflexes + 2 armor = 14

Returns

  • Number armor class

Defined in