Validators

From GalaxyWiki
Jump to: navigation, search

Validators are catalog objects, representing boolean functions (they validate whether given conditions apply or not). They are used by other catalog objects, such as abilities (for auto-cast validation), behaviors (to decide whether the behavior works or not) or effects. Each validator entry is one condition, that can be tested by incuding this validator in appropriate field.

Validators inherit the target references form whatever object used them.

Types[edit]

Wrapup[edit]

Wrapup validators work only with other validators, they are used to construct more complex conditions.

Combine[edit]

Simplest wrapup validator, it combines multiple other validators with AND/OR logic function. It can also be used to negate other validator.

Condition[edit]

Condition validator first test one helper validator, and then, regarding the helper's outcome, decide which of the two validators to use. (If-then-else equivalent)

Function[edit]

Simillar to condition, but allows for more complex conditions (switch equivalent).

Generic[edit]

Generic validators don't belong to any other category.

Enumerate area[edit]

Counts all units in area that fulfill given condition (=validator). Then compares the count to a give value.

Terrain[edit]

Compares the Terrain texture set of the map.

Time of Day[edit]

Compares the time of day, propably in-game time.

Unit[edit]

Most of unit validators are self-explanaory, I would like to point out:

Unit filter[edit]

This applies the standard filter (attributes, unit state, invulnerability....)

Location[edit]

Player[edit]