Performing Map Transfers Via PluginCommand

This is what I want to do:
1) Load a set of parameters selected based on the arguments provided to the plugin command.
2) Start a new object extended from Scene_Map and load it as the active scene.
3) Transfer to a new Map indicated as part of the parameters loaded in 1.

While I have Step 1 worked out, Step 3 (and how it relates to Step 2) still makes very little sense to me.
Is there a method attached to $gameMap that needs to be called?
Would a new Scene_Map-based object be created before or after calling such a method?

An example of the code required would be enormously helpful.
You need to explain more about what you're trying to achieve, rather than how.

Why won't a regular transfer event work for you? Why do you need to do it THIS way? And why do you think the way you've described is the best way to achieve your goal?
I'm trying to build a TBS engine similar to the ones used in the various Romance of the Three Kingdoms games (think Final Fantasy Tactics, but where individual entities represent thousands of soldiers).
The actual interface for the engine can be made from Scene_Map, simply by turning off clipping on the player character and replacing their in-game sprite with a cursor, along with a different set of menus and logic governing their contents.
Given this, I have to choose between either creating an object extended from Scene_Map, or tacking the new functionality onto Scene_Map itself (along with a means of switching behavior). Since the latter option introduces a number of compatibility concerns and increases the risk of accidentally breaking something, extending Scene_Map seems the much more sensible option.

A regular transfer (IE using the in-engine Transfer function and then attempting to switch a scene afterward) hasn't worked because attempting to start up the scene after the transfer has resulted in character movement being locked (background animations are still playing). I've spent enough hours trying and failing to get it to work that I've opted to try a different approach instead.
attempting to start up the scene after the transfer has resulted in character movement being locked

Wouldn't it be easier to try and troubleshoot this issue first? Have you posted about it? Asked for help with it? Are you using any kind of plugin to achieve this, and did you write it yourself, have it written, or use an already-available one?
Wouldn't it be easier to try and troubleshoot this issue first? Have you posted about it? Asked for help with it?
Yes on all three counts; the thread is probably still on the front pageof. That was about a month ago, now. Initially I thought I had resolved the problem but the code broke again shortly thereafter.
I posted because, after several hours of troubleshooting with no results, I thought I had reached the point where taking a different approach would be easier.

Are you using any kind of plugin to achieve this, and did you write it yourself, have it written, or use an already-available one?
I'm writing a plugin from scratch to perform all of this.To further clarify:
I'm using PluginCommand to start a new scene; I tried to have the plugin command auto-run on map load (after a standard transfer event from the starting), but the result locks the controls.
Because of this I want to side-step the issue by running the plugin command from the starting map and have said plugin command handle the transfer.

Is the process of using Javascript to queue a new Scene_Map and perform a map transfer excessively complicated? Because if it is, I'd want to see it in hopes of figuring out where I messed up, and if it isn't it seems like it would make a lot more sense than spending another 5-10 hours trying to work out why my current code isn't working.

EDIT: I would also like to make the plugin as self-contained as possible;
Yes on all three counts; the thread is probably still on the front pageof. That was about a month ago, now. Initially I thought I had resolved the problem but the code broke again shortly thereafter.

Then bump that thread and ask for further help. Make sure you provide plenty of info about the error messages / console log.

If nobody has replied, it may be that they think what you're doing is "too hard" and don't have time to help you work through it.

If you're writing your own scene and the controls are being locked as soon as that scene is activated, then it's likely that you haven't got the correct sequence of updating input, graphics, etc that every other scene has. This is particularly likely if you've added any of your own update loops rather than letting the Scene_Base take care of it.
If you're writing your own scene and the controls are being locked as soon as that scene is activated, then it's likely that you haven't got the correct sequence of updating input, graphics, etc that every other scene has. This is particularly likely if you've added any of your own update loops rather than letting the Scene_Base take care of it.
This occurred to me during the process of troubleshooting.
After stripping out all of the unique functionality (I'm not even touching the update() and start() methods anymore) and still getting the same problem, I concluded that Scene_Map had to be started alongside some outside method(s) to start properly.
Since apparently a new Scene_Map is started either during or just before/after a Player Transfer, this seemed like the obvious place to start looking.
Is the code used to transfer player position between Scene_Maps found within a specific JS object or objects, or do I have completely the wrong idea of how it works?
There is only one Scene_Map. It's not a new one each time a map is loaded. When you go to a new map, the map data is loaded, and the Game_Map.start function is called, which sets up all the events.

This is where you will have difficulty loading a map in advance - there IS only one.
I wound up rewriting my code to work via changing behavior based on whether the player was entering the 'standard' version of Scene_Map or the one specifically used for large-scale battles; given that Scene_Map runs off of one continuous instance this solution makes a lot more sense. Everything is so far working as intended.

Original thread: https://forums.rpgmakerweb.com/threads/performing-map-transfers-via-plugincommand.85011/