Data/Validators/Unit Compare Behavior Count

## Example Usage

### Leviathan - Tentacle A Not Busy

The actual ground attacks of the Leviathan are not weapons but effects caused by the behaviour called **Leviathan - Ground Attack Scan**. This periodically uses a Create Persistent effect to perform four Search Area effects that on finding a unit use a **Create Persistent** until the target dies or is untargetable that applies this counter buff which is removed when the persistent is finished while the periodic effect launches the tentacles via a Launch Missile effect. The validator requires there to be no counter buff to prevent the **Search Area** effect if there is still a valid target that is not yet dead to prevent the tentacles only attacking stuff closest or a random target each time.

#### URL

As the Leviathen and all it's interesting features are already in the campaign dependencies, no URL is needed

### Ghost Holding Fire

An unused validator that was originally for the **Ghost - Hold Fire** ability that counts if the **Ghost - Hold Fire** behaviour stack count is greater than 0

#### URL

As this is an unused relic present in the editor. no URL is needed

## Fields Description

### (None) Behavior Alignment

Specific Behavior Alignment that must be true.

### (None) Behavior Categories

Specific Behavior Category(ies) that must be true.

### (None): Exclude Caster Unit

**Value**

Location of the caster from which the behavior cannot origin from.

### (None): Exclude Origin Player

**Value**

Location of the player from which the behavior cannot origin from.

### (None): Heroic

Returns true if the behavior is Heroic or non, or any.

### (None): Require Caster Unit

**Value**

Location of the caster from which the behavior must origin from.

* Used to limit behaviour stack validation to those from specific casters
* Used by the Liberator so the ground attack can only attack targets marked by the caster

### (None): Require Origin Player

**Value**

Location of the player from which the behavior must origin from.

* Used to limit behaviour stack validation to those from specific casters
* Used by the Liberator so the ground attack can only attack targets marked by the caster

### Validator - Behavior

The behaviour from the Behaviors data type that is validated

* Attribute type behaviours do not work beyond present or not (this needs verification due to >= working as well)

### Validator - Compare

Logic function that the number of stacks of the behaviour and the Validator - Value are compared with:

* Equal To
* Greater Than
* Greater Than Or Equal To
* Less Than
* Less Then Or Equal To
* Not Equal To

### Validator - Failure Result

The alert from an unknown source that is played if the validator fails to return true

### Validator - Other Unit

If used, compares the behavior count of the **Unit** toward this location unit.

### Validator - Unit

**Effect**

* Specific effect that the scope of which is to be used in combination with the Validator - Unit - Value field to determine the unit validated for the behaviour

**Value**

* Caster: Validates the casting unit
* Outer: Validates a unit that is not Target, Source, Caster, or Origin
* Source: Validates the most recent unit targeted or created by a previous effect in the effect tree
* Target: Validates the target unit unless specified otherwise by the Target - Launch Unit - Effect field
* Unit Origin: (Unknown)
* Unknown: (Unknown)

### Validator - Value

Constant against which the stack count of the Validator - Behavior is compared with.

* Also verifies the Accumulators

## Related

* Abilities
* Behaviors
* Effects
* Validate Creation Effect
* Validate Player
* Validate Position
* Validate Unit
* Validate Unit Type