MV Yanfly's Event Spawner

I'd like to use a slightly altered version of this script call:

Yanfly.SpawnEventAt(mapId, eventId, x, y, preserved)

Rather than specific X and Y coordinates, I'd like the event to spawn at coordinates based on the player's location on the map. For example, one event will spawn 1 tile above the player, another will spawn 1 tile below the player, etc... the spawn trigger would be a common event, so the player may spawn these events at any time, regardless of their location.

Is there a way to achieve this using this (or any other) plugin without extensive scripting knowledge?

What I currently do as a workaround is having individual spawn events and an individual trigger common event for every map, which is doable, but feels redundant.
Yanfly.SpawnEventAt(mapId, eventId, $gamePlayer.x, $gamePlayer.y, preserved)
Thanks! I ran into another strange issue though...
The event doesn't spawn when I start the game. Only after going to the menu via Escape button and going back to the map, the event would spawn.

Any idea why this would happen?
Seems like a conflict with SaveEventLocation plugin and tag on the target map. Is there a solution to this?
Where are u using the scriptcall?
Where are u using the scriptcall?
as a command inside an event (action button trigger)

1657387939698.png
One more question...
I'd like to move the last spawned event 1 tile down after it is spawned (in order to bypass the limit that it can't spawn into an occupied tile)
is this script call correct?

◆Script:Yanfly.SpawnEventTemplateAt('Fire', $gameMap.event(this._eventId)._x, $gameMap.event(this._eventId)._y-1, true)
◆Script:$gameMap.LastSpawnedEvent('Fire').moveStraight(2);

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-event-spawner.149306/