[SOLVED] Is there a way to call an game event through javascript?

I'm sure the answer to this is yes, and my best guess is to use $gameIntrepreter or $gameTemp or something? It's more of a guess...
you need to give more of an explanation of what you're trying to achieve, and why you're trying to do it through script.  Otherwise we'll just be guessing too.
you need to give more of an explanation of what you're trying to achieve, and why you're trying to do it through script.  Otherwise we'll just be guessing too.



I want to do something like this: 


asdf.png



Of course, in this case "runEvent()" is not a real command, but I'm looking for the command that will do just that.


I'm understanding that every Game_Event has a ...hmm...like a .start()...function? I remember using the following code to start an event within itself: 


this.start()


But I'm not sure how to do that code for a specific event on a map (from outside of itself, rather than from within itself).
Double posting because this post has not moved at all. 


I've solved the problem in this way: 


$gameMap.event(75).start(); //75 is my events id on my map, which you can find on the lower right of rpg maker mvs editor.




One can run this in an event Script... command when eventing, or call it within a .js file/plugin.


I forgot that all of the objects on the map and their functions are accessible using $gameMap. I'm using Netbeans which made the whole ordeal easier. 


Thanks again, 


Astra Cat

Original thread: https://forums.rpgmakerweb.com/threads/solved-is-there-a-way-to-call-an-game-event-through-javascript.63481/