Porting favorate VXace script calls to MV

Here is a list of script calls I liked using in RPG Maker VXace, I'd like to learn their MV equivalents.


Change an event's self switch externally with a different event. DOES NOT WORK IN MV, reference error.
$game_self_switches[[mapID, eventID, 'letter']] = true/false
EXAMPLE
$game_self_switches[[2, 15, 'B']] = true


Move player character instantly. DOES NOT WORK IN MV, reference error.
Probably no needed anyway due to how transfers now.
$game_player.moveto(x, y)


Region as conditional branch. DOES NOT WORK IN MV, reference error.
$game_player.region_id == 0


Use a busy message box as a conditional branch. DOES NOT WORK IN MV, syntax error.
$game_message.busy?


Please note that I looked through the files in the JS folder to find the JavaScript equivalents of these RUBY terms. For instance, MV changes $game_self_switches to $gameSelfSwitches, but renaming these terms doesn't get them to work, it just keeps the game from showing reference errors.


By the way, I never learned how to do this in VXace, but wanted to, for both VXace and MV. What script call would I have to use pick out which frame out of a sprite sheet I wanted an event to turn into. I've just been using a page for each frame and an assigned variable controlled by a parallel process to achieve this effect. But this is time consuming and cumbersome.
It's not just the change of the terms from $game_player to $gamePlayer - it goes further.


I'm pretty sure these have already been posted in a pinned thread, but anyway ...


$gameSelfSwitches.setValue([mapID, eventID, 'letter'], true/false)


$gamePlayer.locate(x, y)


$gamePlayer.regionID() === 0 (note, that's 3 ===, not 2)


$gameMessage.isBusy()


All of these can be found in the rpg_objects.js file - most of them in the Game_Interpreter class (since most of them can be done using event commands - just search for the exact text that appears on the event command button).


To set the sprite sheet frame, you would need to alter the character's direction (row) and pattern (column).  However, I know doing this was not sufficient in Ace - there had to be a few other steps.  If you can find Galv's Move Route Extras script, that did it properly, and you can see how he did it.  The commands would be similar in MV, but with a slightly different syntax.

Original thread: https://forums.rpgmakerweb.com/threads/porting-favorate-vxace-script-calls-to-mv.60738/