Var
From M.U.G.E.N Wiki
Trigger: Var
This trigger takes a mandatory variable number as an argument. It returns the value of the player's specified int variable.
- Format:
- Var(exprn)
- Arguments:
- exprn
- An expression evaluating to a variable number. Valid numbers at this time are 0-59.
- Return type:
- int
- Error conditions:
- Returns SFalse if exprn evaluates to SFalse, or if exprn evaluates to an invalid variable index.
Example:
trigger1 = Var(0) = -34 Triggers if the value of variable 0 is -34.