Var Trigger

From Ashes of the Singularity - Official Wiki
Revision as of 16:50, 24 November 2020 by JYWLuca8269 (talk | contribs) (Updated look.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Var Trigger

A Var trigger fires if a variable meets given criteria.


Arguments

  • Var - The name of the variable to check
  • Operator - What logical operator to use when evaluating the variable (equal to, less than, etc) [ == | >= | <= | > | < | != ]
  • Value - The (integer) value to compare the variable against


Common Usage

  • Tracking how many enemies have been destroyed for victory purposes
  • Having something fire once when one of several things happens


Examples

<Trigger Name="tWeasleyDead" Type="Var" Var="vWeasleyDead" Operator="==" Value="1" >

This fires when the "tWeasleyDead" variable is equal to 1.