YesNoOk
avatar

SysFVar (Triggers) (Read 994 times)

Started by Just No Point, October 19, 2015, 02:07:08 am
Share this topic:
SysFVar (Triggers)
New #1  October 19, 2015, 02:07:08 am
  • ******
    • www.justnopoint.com/
This trigger takes a mandatory variable number as an argument. It returns the value of the player's specified system float variable. This trigger should NOT be used under normal circumstances. System variables are reserved for bookkeeping in common1.cns.

Format:
FVar(exprn)

Arguments:
exprn
An expression evaluating to a variable number. Valid numbers at this time are 0-4.

Return type:
float

Error conditions:
Returns bottom if exprn evaluates to bottom, or if exprn evaluates to an invalid variable index.

Example:
Code:
trigger1 = SysFVar(0) = -1.23
  Triggers if the value of system float variable 0 is -1.23.

Related SCTRL:
VarAdd (SCTRLs)
VarRandom (SCTRLs)
VarRangeSet (SCTRLs)
VarSet (SCTRLs)

Related Triggers:
Var and FVar (Triggers)
SysVar (Triggers)
StageVar(*,***) (Triggers)

Related CNS:
IntPersistIndex & FloatPersistIndex  -  Player Variables (CNS)
Last Edit: December 10, 2015, 02:32:47 pm by Odb718