Skip to content

HitChanceStatEffect ​

Inherits: StatEffect < Resource

Changes the chance to hit. Accuracy raises the chance of the attacks of the entity that has the stat; Evasion lowers the chance of the attacks that are aimed at it. The value (from the formula slots, like any per-point effect) is a number of points of hit chance: 0.1 per point of the stat is a tenth of a percent. Both only matter when the project uses the hit system and the ability can miss (see HitRules). The effect can be limited with the hit filters (melee or ranged, a school, some abilities) and with conditions, like any stat effect. See docs/systems/entity-stats.md, section 32.

Properties ​

HitSidesideHitSide.ACCURACY

Methods ​

EffectTypeget_effect_type()
Stringget_effect_category()
Stringget_short_description()
Dictionaryget_preview_info( stat_points: float )
Stringget_tooltip_text( stat_points: float )
Array[Dictionary]validate()

Enumerations ​

enum HitSide ​

The options of hit side: accuracy, evasion.

  • ACCURACY = 0 - Raises the chance of the attacks of the owner
  • EVASION = 1 - Lowers the chance of the attacks against the owner

Property descriptions ​

Hit Chance

HitSide side = HitSide.ACCURACY ​

Accuracy raises the chance to hit of the owner's own attacks. Evasion lowers the chance to hit of the attacks against the owner

Method descriptions ​

EffectType get_effect_type() ​

========== EFFECT IDENTIFICATION ==========

String get_effect_category() ​

The group of the effect in the editor.

String get_short_description() ​

========== DISPLAY ==========

Dictionary get_preview_info( stat_points: float ) ​

What the effect gives for a number of stat points, for the tooltip and the editor preview.

String get_tooltip_text( stat_points: float ) ​

The tooltip text of the effect for a number of stat points.

Array[Dictionary] validate() ​

========== VALIDATION ==========