Script call for transfering an event based on variables?

Hi All,

How can I transfer an event to a different location based entirely on variables (Event ID, X cord and y cord)?

I've been trying to use
$gameMap.event($gameVariables.value(25)).setPosition($gameVariables.value(26), $gameVariables.value(27))
but to no luck
I used a round about method but for all intensive purposes it does work,to remove the "jump npc" would be easy enough by adding a 3rd self switch and leaving the page blank.
I Must Stress this is only a way around it til i figure how its actually done,also the 3rd page of the first 2 images is just a revert to a cat that meows triggered off self switch b after alot of text.
the method name is locate, not setPosition. Everything else looks fine.
thanks as always @Shaz ill tweek my event *thumbs*

Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-transfering-an-event-based-on-variables.90308/