FVar

From M.U.G.E.N Wiki

Jump to: navigation, search



Trigger: FVar

This trigger takes a mandatory variable number as an argument. It returns the value of the player's specified float variable.

Format:
FVar(exprn)
Arguments:
exprn
An expression evaluating to a variable number. Valid numbers at this time are 0-39.
Return type:
float
Error conditions:
Returns SFalse if exprn evaluates to SFalse, or if exprn evaluates to an invalid variable index.

Example:

trigger1 = FVar(5) = -1.23
  Triggers if the value of float variable 5 is -1.23.


Personal tools