Check Region of Event

So this is more of a quick question. I need to know the script call that will let me check if an event is on a specific region id so that I can use it in a conditional branch. I remember the call for vx ace but I see that its different for MV. I searched the script calls list but couldn't find it, so please if someone could help me out here.

Thanks in advance ^_^
No need for a script call - just use get location info to load the region ID into a variable, and then check the variable
You can do it this way with events:

Code:
Control Variables [001: X] = Game Data > Event's (choose event) > Map X
Control Variables [002: Y] = Game Data > Event's (choose event) > Map Y
Get Location Info [003: Region] = Region ID of [001: X], [002: Y]
Conditional Branch [003: Region] == 15
  do stuff
Branch End

or if you REALLY want to use the script box in the Conditional Branch and not have to worry about the 3 extra commands, it would be this:

Code:
Conditional Branch: Script: $gameMap.event(id).regionId() === 15

replacing id with your event id (so 3 for EV003), and 15 with whatever region code you're interested in.
I know this is old but, is this syntax right?
I get EV003 is not defined.
Did you type “EV003” or “3”? The latter is what you should use.
Necro-post notice: @woeterman_94

Original thread: https://forums.rpgmakerweb.com/threads/check-region-of-event.50189/