GetCriticalStrikeChance

From ESOUI Wiki

(Difference between revisions)
Jump to: navigation, search
DavidJCobb (Talk | contribs)
(Created page with "This function returns the chances of landing a critical strike on an enemy, for a given stat. == Arguments == ;statValue : A DerivedStats constant indic...")

Latest revision as of 15:37, 4 November 2019

This function returns the chances of landing a critical strike on an enemy, for a given stat.

Arguments

statValue
A DerivedStats constant indicating the stat to query the critical chance for.

Example

local chance = GetCriticalStrikeChance(STAT_SPELL_CRITICAL)
chance = math.floor(chance * 100)
 
d("You have a " .. chance .. "% chance of landing a spell critical.")

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox