Description
Modifies the value of a global variable at an index, which is a variable that belongs to the game itself.
Snippet
Modify Global Variable At Index(variableName, 0, Add, 0);Properties
Returns: Void Parameters: ==Variable==, ==Index==, ==Operation==, ==Value==
==Variable== Type: Global Variable, Default: A The global variable to modify.
==Index== Type: Integer, Default: Number The index of the array to modify. If the index is beyond the end of the array, the array is extended with new elements given a value of zero.
==Operation== Type: Operation, Default: Add The way in which the variable’s value will be changed. Options include standard arithmetic operations as well as array operations for appending and removing values.
==Value== Type: Object | Array, Default: Number The value used for the modification. For arithmetic operations, this is the second of the two operands, with the other being the variable’s existing value. For array operations, this is the value to append or remove.