Does anyone know a way to get at the
Some more context: I have some code that shows the name of the current event, and also some code that would like to access self switches of the current event. I'm currently using
If all else fails I could probably alias some method (probably
Also, as a side note: what if I want to get the ID and name of the currently-executing common event? I don't think it's relevant for my case here though, since common events don't have self switches.
(But speaking of self switches, does anyone know what happens if you try to use them in a troop event?)
Game_Interpreter that is [i]currently running[/i]? I mean the one that is actually in the middle of executing a command at this exact moment, in other words, its [icode]executeCommand function is below the current function on the stack.Some more context: I have some code that shows the name of the current event, and also some code that would like to access self switches of the current event. I'm currently using
$gameMap._interpreter.eventId() for this purpose, but I'd like to make it work in parallel events as well. But parallel events don't use the main map interpreter at all, so I have no idea how to find the ID of the currently-running event.If all else fails I could probably alias some method (probably
executeCommand) to store the information somewhere accessible and delete it when it exits. I'd like to know if a means already exists first, though.Also, as a side note: what if I want to get the ID and name of the currently-executing common event? I don't think it's relevant for my case here though, since common events don't have self switches.
(But speaking of self switches, does anyone know what happens if you try to use them in a troop event?)