NEED HELP: The infuriating inconsistency of using SET EVENT LOCATION to transfer party member followers

The bizarre specificity of the problem I am having is driving me up a wall so I've taken the liberty of recording and explaining my issue in detail as opposed to typing it out.


This is the caterpillar script I referenced
Incredibly grateful for the functionality and simplicity of this script but absolutely gobsmacked/dumbfounded/astonished/stupefied
that the writer mentioned "setting the party member location to the player x/y co-ordinates" but neglected to provide ANY INKLING on how to do that.

Please forgive my frustration with this feature but I have been at this for 3 days and can not get it working consistently.
I only watched the first half of the video, but have you tried putting the Set Event Location command after the Control Variables one? E.g.
Code:
@> Conditional Branch: Switch [0097:SPAWN DONNEL] is OFF
  @> Control Variables: [0012:Donnel X] = Player's X Coordinate
  @> Control Variables: [0013:Donnel Y] = Player's Y Coordinate
  @> Set Event Location: This Event, Variable [0012][0013]
  @> Control Switches: [0097:SPAWN DONNEL] = ON
  @>
 : Branch End
I'm guessing you might be setting the X and Y variables elsewhere, and sometimes they reflect the post-teleport player location, but sometimes they don't, hence inconsistency? 😅
Looking at your code I noticed you swapped the set event locations variables from 10 and 11 (the players x/y) to 12 and 13 (donnel's newly reset x/y variables) and so I tried writing that way and IT WORKED
after doing upwards of 30 map transfers in a row it was consistent with every transfer.

My best guess as to what went wrong is I must have been double setting the follower npc's event to the player x/y position and it must have tried to set the event to TWO separately stored positions.
I assume that if an events position is set to two different stored x/y positions it probably just does a coin flip and chooses one of them.

THANK YOU FOR YOUR HELP

Original thread: https://forums.rpgmakerweb.com/threads/need-help-the-infuriating-inconsistency-of-using-set-event-location-to-transfer-party-member-followers.122627/