Prevent event spawn?

Hi! So before I explain my problem, there's an explanation required of what where how and why.

In the game I'm creating, there's a world map. On it, there's a parallel process with a timer (not exactly but sort of) which will spawn one of X number of events. Those events will take the player on a new map , and upon exiting it, it will place a new event on the world map based on the player's X and Y previous position, and that event would take the player to the map previously randomly found. (I hope it makes sense!)

Now there's an issue I'm seeing here. If there's more than one of those random event, even if it's unlikely, there's a SMALL chance that the player could block another event on the world map (if events on the map aren't set to "through"), or they could stack together if the event is set to through - which would remove the problem of event blocking each other.

I've been thinking about it for quite a while and I can't find any solution. Anyone creative enough to help me figure this one out? Thanks!
It would help to know how you spawn the events, but basically there should no problem for you just checking the place where you spawn before placing that spawn.

And you can check if there is another event, or you can use region codes to select places where it can spawn and where not or you can rewrite the spawning logic...

There are a lot of options how to solve it, but to know which one is best for you we would need more details on how you spawn those events.
Hey Andar. My events are events without graphic that I use "Move event", combined with a script that remember the event location. When not discovered they're in an area inaccessible by the player, and upon discovery the event is placed where the player is and is given a graphic.
then where is the problem with using get location info and the position data itself to check if the target position is allowed or not?
That would be me not knowing what "get location info" does.
In that case the problem is even one more step back, because "get location info" is only a tool to help and not the entire solution.

Before you move the tranfer event, you have to check if the intended position blocks anything.

For that, you need to identify that position as coordinates, check if there is anything there that can be blocked and if yes, change the coordinates of where to move the event.

That is basically a long logic check structure using the control variable commands to get and change the target coordinates and conditional branches to check if a move there is allowed or not.

Get Location Info allows you to load some information of the targeted coordinate into a variable - for example if there is an event at that position, you get the event's ID loaded. Or you can read tile IDs or region IDs to check the map position there.

Using that info requires some mathematics and some planning ahead, but that way you can have a conditional branch decide if the event should be moved there or not.
Thanks!
Hey there, can anyone of you tell me how you would spawn a new event onto a map and give it a default name using script commands?

Nevermind. Thanks Shaz, sorry.
HollowMonty, please don't hijack someone else's topic with your own question. If you've done a search and haven't found the answer, make a new thread to ask your question. A hint - you will need to post in RGSS3 Script Requests because it can't be done with eventing (at least, not easily).

Original thread: https://forums.rpgmakerweb.com/threads/prevent-event-spawn.40698/