[Control Variables]
Function
·Changes the value stored in a variable.
Settings
·Carries out [Operation] using the values and options specified under [Operand] on the variable specified under [Variable].
·Under [Variable], specify the variable to operate on using one of the 3 following methods.
Single |
Operates on a single variable. Click the [...] button to display the [Variables] window, and specify the variable to operate. |
Batch |
Enter the start and end points of the range of variables to modify. All variables within this range will be operated upon. |
Variable |
The variable with the same number as the value stored in the given variable will be operated on. For example, if variable no. 2 is specified which contains “5” at the time the command is processed, variable no. 5 will become the target of this command. The variable to be used can be specified by clicking the [...] button to open the [Variables] window, from which the number of the variable can be chosen. |
·Under [Operation], choose one of the following operations to perform on the variable specified in [Variable].
Set |
Sets the variable's value to the value specified as the operand. |
Add |
Adds the operand value to the variable's original value and stores it in the variable. |
Subtract |
Subtracts the operand value from the variable's original value and stores it in the variable. |
Multiply |
Multiplies the operand value by the variable's original value and stores it in the variable. |
Divide |
Divides the variable's original value by the operand and stores it in the variable. |
Modulus |
Divides the variable's original value by the operand and stores the remainder in the variable. |
·Under [Operand], specify the value to use in the variable calculation using one of the following methods.
Constant |
Uses the given constant value. |
Variable |
The value stored in the given variable will be used. For example, if variable no. 5 is specified which contains “2” at the time the command is processed, 2 will be used. The variable to be used can be specified by clicking the [...] button to open the [Variables] window, from which the number of the variable can be chosen. |
Variable ID |
Refers to the value in the specified variable and uses the variable that corresponds to that value. |
Random |
Uses a number randomized within a given range. Random numbers are values that are randomized during the game. |
Item |
Uses the number of a possessed or equipped item. From the dropdown menu, choose the item name, and specify whether inventory items or equipped items should be counted. |
Actor |
Uses an actor's stat, or the item ID of an equipped item. From the dropdown menu, choose the actor's name, as well as the option to take the value of. |
Enemies (Battle Events Only) |
Uses an enemy stat value. From the dropdown menu, choose the enemy's name, as well as the stat to take the value of. |
Other (Map/Common Events Only) |
Uses the location information of characters or events on the map. Specify the target character (a) and location information type (b) using the dropdown menus. |
Targets
Player |
The walking player. |
Boat |
The boat vehicle. |
Ship |
The ship vehicle. |
Airship |
The airship vehicle. |
This Event |
The current event. If used in a common event, it refers to the last map event on the call stack instead. |
Event Name |
Other events. |
Location Information
Map ID |
Uses the ID number of the map the target is on. |
X Coordinate |
Uses the horizontal coordinate of the target's location on the map. |
Y Coordinate |
Uses the vertical coordinate of the target's location on the map. |
Direction |
Uses the facing direction of the target. North (Up) will be 8 West (Left) will be 4 South (Down) will be 2 |
Screen X |
Uses the horizontal coordinate of the target with respect to the screen. |
Screen Y |
Uses the vertical coordinate of the target with respect to the screen.
|
Others
·Use one of the following 8 options. Specify the option from the dropdown menu.
Money |
Uses the amount of money currently possessed by the player. |
Timer n Remaining Time |
Uses the remaining number of seconds on the current timer (n = 1 or 2). |
Party Size |
Uses the number of members in the player's party. |
Save Count |
Uses the number of times the player has saved the game data up until the current moment. |
Battle Count |
Uses the number of times enemies have been battled up until the current moment. |
Win Count |
Uses the number of times battles have been won up until the current moment. |
Loss Count |
Uses the number of times battles have been lost up until the current moment. |
Escape Count |
Uses the number of times battles have been escaped from until the current moment. |
MIDI Play Location (Tick) |
Uses the current data position of the MIDI file that is being played. |