Data Validator - funovus/editor-wiki GitHub Wiki
Table of Contents
- [Data\Validator](#datavalidator)
* [Unit Within Range](#unit-within-range)
* [Nearby Unit Health](#nearby-unit-health)
* [Health Value](#health-value)
* [Troop Amount [Wild Sky]](#troop-amount-wild-sky)
* [Unit Filter](#unit-filter)
* [Combine](#combine)
* [Unit Engaged [Wild Sky]](#unit-engaged-wild-sky)
* [Unit Type](#unit-type)
* [Location Is Lane](#location-is-lane)
* [Unit Ai Behavior](#unit-ai-behavior)
* [Wave Started [Wild Sky]](#wave-started-wild-sky)
* [Unit Stats](#unit-stats)
* [Point On Navmesh](#point-on-navmesh)
* [Effect Critical Hit](#effect-critical-hit)
* [Unit Is Moving](#unit-is-moving)
* [Point On Cliff](#point-on-cliff)
* [Expression](#expression)
* [Negate](#negate)
|
Data\Validator {dataValidator}
Validators are conditions that evaluate to true or false. Validators can be plugged into other data types and can be used to remove/disable behaviors, add additional checks to determine if a weapon or ability can fire, or create if/then/elseif style statements within effects (among other uses).
Returns true if the specified number of units are found within a search radius.
The radius of the circle to search.
MessageType: RangeInt
returns true if the number of units found is between this min and max.
EnumType: DistanceCheckModes
Determines whether to consider unit radius or center point when finding targets.
EnumType: DistanceExtendModes
Determines whether to extend the search radius by the source unit's radius.
MessageType: SearchFilter
Similar to other search filters. See: Data/Effect/Area Search
Target units must pass these validators to be considered valid targets.
Returns true if a number of units are found within a search radius with a specific health value.
Shares many fields with Unit Within Range.
The radius of the circle to search.
MessageType: RangeInt
Returns true if the number of units found is between this min and max.
EnumType: Validator.ValidatorValueType
Whether the validator will check units' health as an Absolute or Percentage (between 0 and 1).
MessageType: RangeDouble
Returns true if enough units are found with health within this min and max.
MessageType: RangeInt
Determines how many units must be found with the health value specified in Health Value Range.
Note that the total number of units found must also satisfy the Unit Count Range.
EnumType: DistanceCheckModes
Determines whether to consider unit radius or center point when finding targets.
EnumType: DistanceExtendModes
Determines whether to extend the search radius by the source unit's radius.
MessageType: SearchFilter
Similar to other search filters. See: Data/Effect/Area Search
Returns true if a unit has health within a specific range.
Which unit will be considered by the validator. Using NONE defaults to TARGET_UNIT.
MessageType: RangeDouble
Returns true if the checked unit's health is within this min and max.
EnumType: Validator.ValidatorValueType
Whether the validator will check health as an Absolute or Percentage (between 0 and 1).
Returns true of the unit has a specified number of child troop units.
MessageType: RangeInt
Returns true of the unit has a specified number of child troop units.
Returns true if enough units are found with health within this min and max.
Returns true if a unit matches a specific unit type (unit, missile, or structure).
EnumType: UnitComponent.UnitType
Returns true if the specified unit is of this type.
Which unit will be considered by the validator.
Allows you to combine other validators using logical operators.
Combine validators can be nested. Can be combined with negate for even more logic.
- AND:returns true if all of the listed validators are true.
- OR:Returns true if any of the listed validators are true.
The list of validators to combine.
Returns true if the specified unit is engaged.
Using NONE defaults to TARGET_UNIT.
Returns true if a unit is of a specific type.
Returns true if the unit is of this type.
Which unit will be considered by the validator.
Returns true if a point is in a lane (as defined in Terrain/WayPoints/Routes).
Which point to check.
If enabled, routes using the "Disable Rally" flag won't be considered.
Returns true if a unit has the specified AI Behavior type.
EnumType: BehaviorComponent.BehaviorType
Returns true if the unit has this AI behavior type.
Which unit will be considered by the validator.
Returns true if the first wave has started.
Returns true if a unit matches the specified unit filter.
Currently only supports checking if the unit is an air unit.
Which unit will be considered by the validator.
EnumType: SearchFilter.Flag
Returns true if the unit matches this filter.
Returns true if a point is on the nav mesh.
Which point to check.
Returns true if the effect tree is a critical hit.
Note that this is only relevant for effect trees created by abilities or weapons.
Returns true if a unit is currently moving.
Which unit to check. Using NONE defaults to TARGET_UNIT.
Returns true if a point is on the cliff.
Which point to check.
Returns the result of the evaluated expression. Non-zero numbers are treated as true, 0 is treated as false.
Flips the result of the validator, similar to the not
in Lua (true becomes false, false becomes true).