Trigger events when other events bump into walls

Howdy, I've been reading the forums for months and found plenty of fixes for almost all of my issues I've had thus far. I've finally hit an issue I cannot find a solution for.
I'm making a segment where you must guide a character through a map without having them hit anything.
To guide the character (we will call eventX), the player walks up to eventX and presses Z to interact and it brings up a choice menu where you can then tell eventX to change its rotation or stop dead in its tracks for a moment.
- the problem I have is that i cannot get eventX to properly detect if it has crashed into a wall or not. Because you need to interact with eventX to tell it to change its movement, I cannot use its regular event page to call a check for this. I also considered having a separate event call a constant parallel check to see if you have crashed, but this would not work either, as it would require me to put a check for the X and Y of every single block of every single wall in the map. That is a waste of time and likely very laggy.
I'm gonna keep looking for an answer to this issue.
Any suggestions would help, thanks a million
You could set the crashable walls as a single region and check if the event is in the "wall" region with a parallel, that would cut your "check for the X and Y of every single block of every single wall in the map" to a single check if done right.
You could set the crashable walls as a single region and check if the event is in the "wall" region with a parallel, that would cut your "check for the X and Y of every single block of every single wall in the map" to a single check if done right.
That sounds like a good idea! Can you check for a region with a parallel Conditional Branch or would you need something else? I'm still figuring out how I can check for Region ID specifically.
The Control Variables event command has options to retrieve an event's X/Y coordinates, and the Get Location Info event command has an option for Region ID.
The Control Variables event command has options to retrieve an event's X/Y coordinates, and the Get Location Info event command has an option for Region ID.
thanks for the help! It may be because i've been at my computer all day, but im having trouble finding where there are Region ID settings in Control variables. Although I could be missing something really obvious so i'm gonna come back to it in the morning. thanks again 🙂
You can use the editor command "Control Variables" to get the X and Y of the player (or an event). On the third tab of the editor commands there is "Get Location Info...". If you have the map ID, and the X and Y coordinates, you can the Terrain Tag, Event ID, Tile ID of the various layers, or Region ID.
im having trouble finding where there are Region ID settings in Control variables.
That's not what I said.

The Control Variables event command has options to retrieve an event's X/Y coordinates
1708346248160.png


and the Get Location Info event command has an option for Region ID.
1708346286354.png
Thanks so much! Everything is working perfectly 😮

Original thread: https://forums.rpgmakerweb.com/threads/trigger-events-when-other-events-bump-into-walls.165925/