YesNoOk
avatar

VarRangeSet (SCTRLs) (Read 1564 times)

Started by Odb718, September 22, 2015, 03:49:14 am
Share this topic:
VarRangeSet (SCTRLs)
New #1  September 22, 2015, 03:49:14 am
  • *****
  • Shame on you!
    • USA
Sets a contiguous range of the player's working variables to the same value. Either float variables or int variables can be set by this controller, but not both at the same time.

Required parameters (int version):
    value = int_expr (int)
        int_expr is evaluated once to give the value that is assigned to all int variables in the range.

Required parameters (float version):
    fvalue = float_expr (float)
        float_expr is evaluated once to give the value that is assigned to all float variables in the range.

Optional parameters (both versions):
    first = first_idx (int)
        Specifies the lower end of the range of variables to set. Defaults to 0 (first variable).
    last = last_idx (int)
        Specifies the higher end of the range of variables to set. Defaults to 59 for int variables, or 39 for float variables (this is the last available variable in both cases).

Notes:
    If you have placed P2 in a custom state through a successful hit, do not use variable assignment within the custom states. Otherwise, you will overwrite P2's variables, which can cause unintended malfunction of the opponent player.

Example:
Code:
type = VarRangeSet
trigger1 = MoveHit
value = 1 
first = 18
last = 21
ignorehitpause = 1

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

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

Related CNS:
IntPersistIndex & FloatPersistIndex  -  Player Variables (CNS)
vVv Wheat Stage Released vVv
Last Edit: December 10, 2015, 02:30:47 pm by Odb718