I want to run some function in Scene_Map from an event's script call, but the way I'm doing it now probably isn't the right way to do things.
Right now, I have the event set a global variable to true, and Scene_Map's constantly checking if this global variable is true. If it is, then it'll call some function.
Does this function need to belong to Scene_Map? Design-wise, it would be better to make it part of your plugin API and call that, instead of going the ugly way and directly accessing the scene (OO-wise, the event shouldn't know about the surrounding scene, though sometimes that's the best option).
So, it's an action battle system? Because, if it's a new scene, you should just use "SceneManager.push(sceneClass)". I haven't done an ABS so far, but i would probably hook into "Scene_Map.prototype.create", store a reference to "this" (the scene) and clear the reference during "Scene_Map.prototype.terminate". This way, you have the scene referenced from your plugin and can work in there, instead of adding functions to the scene itself.
If you need to add something to an existing class, make sure to prefix it with your own name to make it unique to avoid incompatibilities with other plugins. Also only do this with functions, that you want to be editable by other plugins. Private stuff should always be kept inside the plugin's anonymous function to support encapsulation.