MV Galv's event spawner - Is it possible to spawn an event directly under a player/spawn a below player priority event directly under the player?

I'm working on a simulator type game where you spawn events and I'm wondering if it's possible to directly spawn events right under/below the player on the same tile.
You can set spawn overlap to true then have a separate event command or script call to change that event's priority right after.
You can set spawn overlap to true then have a separate event command or script call to change that event's priority right after.
Could you provide an example in JavaScript?... I'm not the best at coding. 😅
It should say in the plugin file what the spawnOverlap script is.

Then you can use
$gameMap.event(x).setPriorityType(0)

Where x is the event number or you can use whatever script the plugin is using for lastSpawnEventId.

I don't have the plugin on me and I'm on my phone. You need to read the plugin file.
It should say in the plugin file what the spawnOverlap script is.

Then you can use
$gameMap.event(x).setPriorityType(0)

Where x is the event number or you can use whatever script the plugin is using for lastSpawnEventId.

I don't have the plugin on me and I'm on my phone. You need to read the plugin file.
Yes but how would I spawn it directly under the player?... like where the player is standing.
Like if I were to initiate this in real time and spawn the event under the player on the same tile.
You put $gamePlayer.x, $gamePlayer.y

Where it asks for x and y in the spawn script
You put $gamePlayer.x, $gamePlayer.y

Where it asks for x and y in the spawn script
Ah I got it! 😮
Thank you so much!... I'm sorry if I sounded like a nuisance haha

Original thread: https://forums.rpgmakerweb.com/threads/galvs-event-spawner-is-it-possible-to-spawn-an-event-directly-under-a-player-spawn-a-below-player-priority-event-directly-under-the-player.176946/