What this function does?

Ur0XnW6.png

The title says. Sry my english.
Should read the help file. Click help -> contents (or whatever it is in your language (if it is in your language)).
Type variables
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.
This is what's referred to in tutorials as Variable Pointers. It's an awesome feature with a lot of practical uses: everytime you want to feed information from one event to another you can use variable pointers to easily mention which variable you want to affect, in real time, instead of having to make a separate conditional branch for each. In my opinion, this is particilarily useful in games with heavy custom evented systems, such menus and battle systems 😎

play around with it!
Im reading some tutorials about pointers on rm2k(3) and others engines, but I cant undestand straight, cause the way they wrote makes it difficult to understand.
@DarlesLSF that function (also called indirect referecing) is a very powerfull and complex programming tool.
you need to have at least basic knowledge in programming to be able to use it, and it can't be understood without that knowledge.

here is a simplification of what it does in comparison to the other options:
If you select single variable, you get to set a fixed number that will tell the engine which variable to use.
the command will always use that specific variable unless you change the command in the editor (which is not possible to do in the game itself).

If you select variable you tell the engine to read another variable to get that number that will tell which variable to use.
This will allow you to change which variable is used by the command during the game by modifying that reference.

Unfortunately for you, that only tells you the difference and what it does - it does not tell you the dozens of ways a programmer can use this to simply mathematics and other effects. And no one has time to write a 100-page-tutorial of what you could do with this option.
Atm Im creating a battle system on rm2k, but Im using some (maybe alot) conditional branchs, thats why I want to learn more about these variable pointers haha
yes, that is exactly one of the places where they can shine - but as said they're not easy to use if you're missing the basics.

Original thread: https://forums.rpgmakerweb.com/threads/what-this-function-does.114909/