- Joined
- Apr 9, 2015
- Messages
- 1,797
- Reaction score
- 863
- First Language
- German
- Primarily Uses
Description
Adds self variables to the game, that work similar to self switches.
Author
Iavra
Parameters
@param Container Name
@desc Name of the self variables container. Default: $gameSelfVariables
@default $gameSelfVariables
@param Plugin Command
@desc Name of the plugin command to manage self variables. Can't control whitespaces. Default: SelfVariable
@default SelfVariable
How to Use
Adds self variables to the game. These work similar to self switches and are uniquely identifies by a map id, an event id and a key (any string without whitespaces). This documentation assumes, that the plugin parameters "Container Name" and "Plugin Command" are set to their default values.
Basic access to self variables is done via script commands:
$gameSelfVariables.setValue([mapId, eventId, key], value);
$gameSelfVariables.value([mapId, eventId, key]);
To access a self variable of the current event, the following script command can be used:
$gameSelfVariables.get(this, key);
$gameSelfVariables.set(this, key, value);
Self Variables can also be modified via plugin commands. The following operations are available:
= Sets a self variable to a given value.
+ Adds a given value to a self variable.
- Subtracts a given value from a self variable.
/ Divides a self variable with a given value.
* Multiplies a self variable with a given value.
% Sets a self variable to the remainder when dividing it with a given value (mod).
To apply one of these operations, one of the following commands can be used:
SelfVariable key operation value // Invokes an operation with a given value.
SelfVariable key operation v[value] // Invokes an operation with the value contained in a given variable.
SelfVariable key operation self[value] // Invokes an operation with the value contained in a given self variable.
SelfVariable key operation (value1 ~ value2) // Invokes an operation with a random integer between 2 values.
SelfVariable key operation "value" // Evaluates the given expression as an integer and invokes the operation with it.
Further plugin commands are:
SelfVariable key abs // Sets a self variable to its absolute value.
Terms of Use
Free to use for both commercial and non-commercial games. Please give credit.
Download
http://pastebin.com/fGnQBBPB
Notes
The plugin originated from this request: http://forums.rpgmakerweb.com/index.php?/topic/51012-self-variables
Adds self variables to the game, that work similar to self switches.
Author
Iavra
Parameters
@param Container Name
@desc Name of the self variables container. Default: $gameSelfVariables
@default $gameSelfVariables
@param Plugin Command
@desc Name of the plugin command to manage self variables. Can't control whitespaces. Default: SelfVariable
@default SelfVariable
How to Use
Adds self variables to the game. These work similar to self switches and are uniquely identifies by a map id, an event id and a key (any string without whitespaces). This documentation assumes, that the plugin parameters "Container Name" and "Plugin Command" are set to their default values.
Basic access to self variables is done via script commands:
$gameSelfVariables.setValue([mapId, eventId, key], value);
$gameSelfVariables.value([mapId, eventId, key]);
To access a self variable of the current event, the following script command can be used:
$gameSelfVariables.get(this, key);
$gameSelfVariables.set(this, key, value);
Self Variables can also be modified via plugin commands. The following operations are available:
= Sets a self variable to a given value.
+ Adds a given value to a self variable.
- Subtracts a given value from a self variable.
/ Divides a self variable with a given value.
* Multiplies a self variable with a given value.
% Sets a self variable to the remainder when dividing it with a given value (mod).
To apply one of these operations, one of the following commands can be used:
SelfVariable key operation value // Invokes an operation with a given value.
SelfVariable key operation v[value] // Invokes an operation with the value contained in a given variable.
SelfVariable key operation self[value] // Invokes an operation with the value contained in a given self variable.
SelfVariable key operation (value1 ~ value2) // Invokes an operation with a random integer between 2 values.
SelfVariable key operation "value" // Evaluates the given expression as an integer and invokes the operation with it.
Further plugin commands are:
SelfVariable key abs // Sets a self variable to its absolute value.
Terms of Use
Free to use for both commercial and non-commercial games. Please give credit.
Download
http://pastebin.com/fGnQBBPB
Notes
The plugin originated from this request: http://forums.rpgmakerweb.com/index.php?/topic/51012-self-variables
Last edited by a moderator:








