Calling on regions in conditional branch

So I'm setting up some common events that are triggered by a menu item, and depend on which region the player is standing in when triggered. For some reason the conditional branch is not working correctly - it keeps triggering the first common event, even when the player sprite is located in different regions.

I have it set up like follows, can anyone think of a reason this might not be working? I'm tearing my hair out.
Spoiler: Common event setup
Screen Shot 2020-04-01 at 12.11.48 am.png
a condition in a script needs to return true or false. that happens only if you compare values, and you have no comparison in your script lines (needs to be something like scriptcode === number).

Is there a specific reason why you're using script code here, especially since you're looking as if that is new for you? You could do the same with pure event code, although that will require several commands: two control variables to get the player position, then one get location info to get the region ID on that position and then compare the region ID variable to the numbers.
a condition in a script needs to return true or false. that happens only if you compare values, and you have no comparison in your script lines (needs to be something like scriptcode === number).

Is there a specific reason why you're using script code here, especially since you're looking as if that is new for you? You could do the same with pure event code, although that will require several commands: two control variables to get the player position, then one get location info to get the region ID on that position and then compare the region ID variable to the numbers.
Ah thanks, ok that makes sense.

Could you explain this bit in more detail: '..then one get location info to get the region ID on that position..'

The reason I used script is that I couldn't see a way to call on the region ID though eventing. How exactly do you get the region ID through the player position variables?
get location info is an event command on page 3 of the event commands, under map.
it needs one variable as the target, where it will store the info type (in your case region ID)
then it needs two variables with XY coordinates from where to get the info, that is where you place the variables that contain the current player position (you need to get that with two control variable commands before the get location info)
get location info is an event command on page 3 of the event commands, under map.
it needs one variable as the target, where it will store the info type (in your case region ID)
then it needs two variables with XY coordinates from where to get the info, that is where you place the variables that contain the current player position (you need to get that with two control variable commands before the get location info)
Ah sorry, that's not the bit I meant, I know how to set up the variables to contain player x,y, I'm just not sure how to get the region ID from there?
I'm just not sure how to get the region ID from there?
That is what I described in the first two sentences.
"Get Location Info" is the name of the event command you have to use for that, it's on the third page of event commands, right side, the last command under the "map" grouping
That is what I described in the first two sentences.
"Get Location Info" is the name of the event command you have to use for that, it's on the third page of event commands, right side, the last command under the "map" grouping
Ah, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/calling-on-regions-in-conditional-branch.119657/