Can eventA check if it occupies the same tile as any other event?

Using Orange Custom events, I copy eventA multiple times onto a region, acting as rocks.
What Im locking for is a
(parallel process)Conditional branch check for eventA to see if the tile its currently on, is in fact already occupied by something else.

If occupied.tile
delete.this
else
end

There might be other ways around this, but Im looking for a way to not get two rocks on same tile.
"rock eventA" runs a parallel process at start of map anyways so this is a good time to check if there is another rock or event on the same tile, for then to selfdestruct if there is.
JavaScript:
$gameMap.distance($gameMap.event(event a id).x, $gameMap.event(event a id).y, $gameMap.event(event b id).x, $gameMap.event(event b id).y) === 0
Returns true if they're on the same tile!

JavaScript:
$gameMap.distance($gameMap.event(this._eventId).x, $gameMap.event(this._eventId).y, $gameMap.event(event b id).x, $gameMap.event(event b id).y) === 0
To compare with the event checking it.
Thank you very much @ozubon ! Will play with this right away!

Edit: Seems i may have forgotten to say that I wont know that ID to check with. In any case I need to check them all, or any at all.
Im copying event onto a "random generated map" so I need it to fit this kind of logic

If any other event is on this tile
delete.this
else
end
Sorry that will of course not work if you're spawning in events you don't know the id of.
In that case use this. It's shorter code than the first one anyway:

JavaScript:
$gameMap.eventIdXy($gameMap.event(this._eventId).x, $gameMap.event(this._eventId).y) != 0

Returns true if the event that's checking is standing on an occupied tile.
Hmm interesting. that script actually deletes them all. I think it is because they are spawned from same object. I can delete via a variable ID then maybe
My bad again, that only finds itself so it will run true everytime.

Try this, this should work lol:
JavaScript:
$gameMap.eventsXy($gameMap.event(this._eventId).x, $gameMap.event(this._eventId).y).length != 1
Thank you! This is just what I needed. 😀
Inga problem 😉

Original thread: https://forums.rpgmakerweb.com/threads/can-eventa-check-if-it-occupies-the-same-tile-as-any-other-event.120354/