No 'Check Location' Region ID Script Calls?

Recently downloaded MV and had some trouble with script calls, but thankfully Archeia posted the new list of script calls for MV.

Link

However, there are a couple of script calls present from in VXA (reference VXA script call collection here) that are not present in MV.

$game_player.region_id == n
$game_map.events[event_id].region_id == n


I am essentially working on a Sokoban-esque puzzle game where I'm using Region IDs over switches, so IF Player 1 or 2 is over Region ID 'A', THEN activate switch 'A'. I'm having trouble eventing this, especially if and when I'm using one of the "Players" as an event instead of a second controllable player.

Any possible solution would be great, I'd hate to hear that MV has a reduced amount of features. 

Thanks!  BD
You can use $gameMap.regionId($gamePlayer.x, $gamePlayer.y) === n to check if the player is on region n. Don't know how to get the event x,y but you could save the event x,y in variables via the change variable command and then check $gameMap.regionId($gameVariables.value(x), $gameVariables.value(y)) === n (I'm sure there's a better way to get the x and y of an event that's the only way I got it to work so far).

Edit:

For Events use

$gameMap.regionId($gameMap.event(m).x, $gameMap.event(m).y) === n

N = Region ID

M = Event ID (if you are looking for the x, y of another event) or this._eventId (for the current event)
You can use $gameMap.regionId($gamePlayer.x, $gamePlayer.y) === n to check if the player is on region n. Don't know how to get the event x,y but you could save the event x,y in variables via the change variable command and then check $gameMap.regionId($gameVariables.value(x), $gameVariables.value(y)) === n (I'm sure there's a better way to get the x and y of an event that's the only way I got it to work so far).
That works wonders! Thank you so much Baka-chan, I'll mark this thread as solved.
That works wonders! Thank you so much Baka-chan, I'll mark this thread as solved.
I hope that someone could add the code to check for the location of an event without having to use the change variable command.

Solved look see http://forums.rpgmakerweb.com/index.php?/topic/46841-no-check-location-region-id-script-calls/#entry469325

Original thread: https://forums.rpgmakerweb.com/threads/no-check-location-region-id-script-calls.46841/