Move event located at specified XY location

I am using Yanfly event spawner. this causes event ids to be unpredictable. I’m making a house decoration system. Some furniture takes up more than one tile so when the player pushes it I need multiple events to move. I can determine the XY position of the additional event to be moved using variables but I can’t find a way to apply any kind of move event command based off of that. I don’t have any experience using scripts.

If there’s a different solution I’m open to ideas.
Nvm I just realized I can make the ghrapic a character sprite rather than a map sprite.
¯\_(ツ)_/¯ whoops
In case you do still end up needing this, or anyone else who finds this thread searching for it does:

Code:
$gameMap.eventIdXy(x, y)
Allows you to get the id of the event at coordinates x, y
Code:
$gameMap._events[$gameMap.eventIdXy(x,y)]
Would get you that event
Code:
$gameMap._events[$gameMap.eventIdXy(x,y)].locate(newX, newY)
Would move it to coordinates newX, newY
Code:
$gameMap._events[$gameMap.eventIdXy(x,y)].moveStraight(direction);
Would move it by one tile in a specified direction: 2 for down, 4 for left, 6 for right, or 8 for up.

Original thread: https://forums.rpgmakerweb.com/threads/move-event-located-at-specified-xy-location.151856/