Var Trigger: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
JYWLuca8269 (talk | contribs) m (Updated look.) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}} | |||
{{HeaderTemplate | |||
|welcome=Var Trigger | |||
}} | |||
A '''Var trigger''' fires if a variable meets given criteria. | A '''Var trigger''' fires if a variable meets given criteria. | ||
{{SectionTemplate | |||
|h=h3 | |||
|title=Arguments | |||
|content=}} | |||
*'''Var''' - The name of the variable to check | *'''Var''' - The name of the variable to check | ||
*'''Operator''' - What logical operator to use when evaluating the variable (equal to, less than, etc) '''[ == | >= | <= | > | < | != ]''' | *'''Operator''' - What logical operator to use when evaluating the variable (equal to, less than, etc) '''[ == | >= | <= | > | < | != ]''' | ||
*'''Value''' - The (integer) value to compare the variable against | *'''Value''' - The (integer) value to compare the variable against | ||
{{SectionTemplate | |||
|h=h3 | |||
|title=Common Usage | |||
|content=}} | |||
*Tracking how many enemies have been destroyed for victory purposes | *Tracking how many enemies have been destroyed for victory purposes | ||
*Having something fire once when one of several things happens | *Having something fire once when one of several things happens | ||
{{SectionTemplate | |||
|h=h3 | |||
|title=Examples | |||
|content=}} | |||
<Trigger Name="tWeasleyDead" Type="Var" Var="vWeasleyDead" Operator="==" Value="1" > | <Trigger Name="tWeasleyDead" Type="Var" Var="vWeasleyDead" Operator="==" Value="1" > | ||
This fires when the " | This fires when the "tWeasleyDead" variable is equal to 1. | ||
[[Category:Triggers]] |
Latest revision as of 16:50, 24 November 2020
A Var trigger fires if a variable meets given criteria.
Arguments
Common Usage
Examples<Trigger Name="tWeasleyDead" Type="Var" Var="vWeasleyDead" Operator="==" Value="1" > This fires when the "tWeasleyDead" variable is equal to 1. |