How to use regions?

I want to make a minecart that follows a rail.

If region_id = 1 move player (cart) up or down
If region_id = 2 move player down or right (on a curve)
if region_id = 3 move player left or right
if region_id = 4 move player left or down (on a curve)
if region_id = 5 move player up or right (on a curve)
if region_id = 6 move player up or left (on a curve)

Stations (Player image change to cart or normal)
if region_id = 7 get on/off the cart (on the left side)
if region_id = 8 get on/off the cart (on the right side)
if region_id = 9 get on/off the cart (bottom)
if region_id = 10 get on/off the cart (top)

How do I specify a region ID to do this?
Are you using a plugin or events?

You can use Get Location Info to put the region id at the player's current location into a variable, then use a series of conditional branches to check the value of the variable and perform whatever action is necessary.
This is the best i can get. Download or try online

Is there a way to choose which side you get off a vehicle?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-regions.126105/