How useful RM2K3 variable pointers can be?

While I've read a tutorial about RM2K3 variable pointers, I want to know why they're used in the first place.

Specifically, are there anything that can only be done using variable pointers, or can it make anything more convenient, effective and/or efficient?

I'd be glad to see any real example of any of these 🙂
Say, you have a maximum of 5 enemies in a custom battle syste, each with its own variables for hp, mhp, mp, mmp, ... that are initialized at start of combat.

Now, if you want to deal damage to an enemy, you calculate the hp variable like this:

(overall offset) + (enemy index) * (total number of variables per enemy) + (variable offset)and substract you damage from that variable.I guess you could do this with a lot of conditional branches, but this could get really messy.
Almost forgot to ask for 1 specific use: Variable pointers to variable pointers(variable a points to variable b which points to variable c). Is it useful in RM2K3 as well?
That depends on the complexity of what you are trying to do...it's been a long time since i've dealt with pointers (haven't touched C++ since ~5 years).
If RM2K3 Pointers are akin to C++ pointers, would an RM2k3 pointer then not be equal to a ruby DL Pointer??

Eg:

Code:
pointer = DL::CPtr[ variable ]
One thing you shouldn't forget is that 2K3 has no scripting capacity.

Later RM's solve a lot of problems by moving to script access - if you don't have that, indirect referencing can solve quite a number of logic structures.
You mean these?

http://rpgmaker.net/tutorials/523/

http://rpgmaker.net/tutorials/410/

http://rpgmaker.net/tutorials/479/
To make sure I get RM2K3 variable pointers right, I use C++ pointers as an analogy -

1. Referencing

ptr = &var // ptr stores the memory address of varIs analogous to "Single Variable x" "Set Equal" "Value Stored in Index y"

So reading variable x without dereferencing should return y.(or reading variable x always dereferences it?)

2. Dereferencing(If reading variable x won't dereference it already)

*ptr // returns var*ptr = operation(operand) // does some variable value operations on var with operandIs analogous to what? Is it "Variable Reference x" "Operation" "Operand"?

3. Pointer to pointer

ptr = &var // ptr stores the memory address of varpptr = &ptr // pptr stores the memory address of ptr* pptr // returns ptr* pptr = operation(ptr_shift) // does some variable pointer operations on ptr with ptr_shift** pptr // returns var** pptr = operation(operand) // does some variable value operations on var with operandIs analogous to what? "Single Variable y" "Set Equal" "Value Stored in Index z" and "Single Variable x" "Set Equal" "Value Stored in Index y"?

And "Variable Reference x" "Operation" "Operand"? changes what variable variable y points to right(from variable z to something else)?

If RM2K3 variable pointers do support all these, I really need to think of how to play with them(not using RM2K3 though) 🙂
"Value stored in Index" aka "Variable ID" is always used for dereferencing.
A variables "memory address" is its ID, so if you want to create a reference to variable 20 for example, just set your pointer-variable to 20.

A few examples:

Spoiler
@>Comment: int source = 9999;  :                 ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ : int* ptr = &source;

  :                 ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ : int value = *ptr;

  :                 ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ : *ptr = 7777

@>Control Variables: [0010:source] = 9999

@>Control Variables: [0011😛tr] = 10

@>Control Variables: [0013:value] = Variable ID [V[0011]]

@>Control Variables: Variable ID [V[0011]] = 7777

@>Comment: int** ptrptr = &ptr;

  :                 ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ : value = *(*ptrptr);

  :                 ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ ‪‫‬‭‮‪‫‬ : *(*ptrptr) = 4444;

@>Control Variables: [0012😛trptr] = 11

@>Control Variables: [0014:TEMP] = Variable ID [V[0012]]

@>Control Variables: [0013:value] = Variable ID [V[0014]]

@>Control Variables: [0014:TEMP] = Variable ID [V[0012]]

@>Control Variables: Variable ID [V[0014]] = 4444
I made a party changing system similar to FF6 using variable pointers. You can download it here:

http://forums.rpgmakerweb.com/index.php?/topic/39959-change-party-system-demo/

Original thread: https://forums.rpgmakerweb.com/threads/how-useful-rm2k3-variable-pointers-can-be.40848/