YesNoOk
avatar

ParentVarSet (SCTRL) (Read 1234 times)

Started by Just No Point, October 30, 2015, 03:43:00 pm
Share this topic:
ParentVarSet (SCTRL)
#1  October 30, 2015, 03:43:00 pm
  • ******
    • www.justnopoint.com/
If the player is a helper, sets one of the parent's working variables. Either a float variable or an int variable can be set by this controller. Does nothing if the player is not a helper.

Required parameters (int version):
v = var_no (int)
var_no should evaluate to an integer between 0 and 59.

value = int_expr (int)
int_expr is the value to assign to the int variable indicated by var_no.

Required parameters (float version):
fv = var_no (int)
var_no should evaluate to an integer between 0 and 39.

value = float_expr (float)
float_expr is the value to assign to the float variable indexed by var_no.

Optional parameters:
none in both cases

Alternate syntax:
var(var_no) = int_expr (int version)

fvar(var_no) = float_expr (float version)

Notes:
Due to historical reasons, note that the alternate variable assignment syntax listed above does not exactly match the syntax for variable assignment within an expression.

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 parent's variables, which can cause unintended malfunction of the opponent player.

Example:
none