Help! - Trying to transfer character based on variables!

I'm using arleq1n's Tactics System, and working on random encounters. I have it so that the map is covered with events that have a 1 in 10 chance of transporting the player to a battle map. After the battle, I want the player to be transferred back to the place on the map that the event was triggered. Here's what I have.

Spoiler: Transfer Player
1599784477890.png



Each event looks like this, theoretically setting the variable to its own coordinates. Then the return function calls those same variables. That mostly works, but instead of coming back to the right coordinates, the player comes back to the corner of the map.

Here's the return function

Spoiler: Return Player
1599784648824.png
most likely variables 2 and 3 are being returned to 0.
make sure no other plugin uses those, and make a broad search in the code for those IDs.
use something like Notepad++ to search in files.
most likely variables 2 and 3 are being returned to 0.
make sure no other plugin uses those, and make a broad search in the code for those IDs.
use something like Notepad++ to search in files.

That worked! I'll check the code later, I just switched them to arbitrarily high numbered variables and that fixed it. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/help-trying-to-transfer-character-based-on-variables.127135/