Events adding to variable after touching region

Hello, how would one command events to add to a variable after touching a region?

I'm using a "path_find(x, y)" custom script to help the event navigate the map, and I want the event to add to a variable after the event is on the appropriate region.

[IMG]http://i.imgur.com/1oMkzbX.png[/IMG]

[IMG]http://i.imgur.com/b3FQBCo.png[/IMG]

The events move to the region, and "tables" would eventually go up to 5 activating the 'magicakl faire's' 2nd event page which would led to more event stuff. 

How would someone have the event recognize the fact that the event is on a region, if any region for that matter?
you can use the get location info command (3rd page) to read the region ID, and then check it with a conditional branch.


Most probably you'll need a series of commands to get the position of the event, then the region info on that position, and then the check.
Thank you for helping with this.  🙂

Here's what I've learned:

Get Location Info can put a Region ID on to a variable depending on other variables, most likely an event's X and Y.

A video of what I did (so that I may reflect upon it later)

https://www.youtube.com/watch?v=GHIyre0pk5Y

Original thread: https://forums.rpgmakerweb.com/threads/events-adding-to-variable-after-touching-region.38379/