Help me please(about condition)

Hi guys, I would like to know if is there any script to check if any event is running.
Automatic or parallel.
technically it's the Interpreter that "runs" the commands, if the trigger and conditions are true. So the Event command might first transfer the game to another map, then follow through with other commands. In a sense it's "running", but at the same time, it doesn't exist on this other map.

I often use a simple script command
console.log(window)
Which shows you pretty much everything in the debug console. So you can explore the game data and object properties that way. Expand $gameMap._events or _commonevents array, and look at events and their properties, if they're erased:true or false. And lots of things.
In Conditional Branch -> Script:

this.isRunning()
It should be true if any non-Parallel event is running. [Edit: this needs to be run in a non-Parallel event to work correctly, which I now realise is kind of pointless. For a more general solution, see follow up posts.]

To check all Parallel events:

$gameMap.events().some(ev => ev._interpreter?.isRunning())
I think that should be true if any Parallel event is running.
In Conditional Branch -> Script:

this.isRunning()

It should be true if any non-Parallel event is running.

To check all Parallel events:

$gameMap.events().some(ev => ev._interpreter?.isRunning())

I think that should be true if any Parallel event is running.
Worked! thanks!
And about automatic?
There's nothing labeled automatic, do you mean Autorun? That would be covered by the first command she gave you, "any non-Parallel event"
There's nothing labeled automatic, do you mean Autorun? That would be covered by the first command she gave you, "any non-Parallel event"
Yes i mean autorun
In Conditional Branch -> Script:

this.isRunning()

It should be true if any non-Parallel event is running.

To check all Parallel events:

$gameMap.events().some(ev => ev._interpreter?.isRunning())

I think that should be true if any Parallel event is running.
The first is not working with autorun
The first is not working with autorun
I guess you tried using it in a Parallel event. I should have mentioned that it needs to be run in a non-Parallel event. If run in a Parallel event, it just checks "is this event running", which is pointless. And if it is run in a non-Parallel event then the check is pointless too... 😴

To check the map's main interpreter remotely, try this instead:

$gameMap._interpreter.isRunning()
Note that this checks for any non-Parallel event, not just Autorun.
I guess you tried using it in a Parallel event. I should have mentioned that it needs to be run in a non-Parallel event. If run in a Parallel event, it just checks "is this event running", which is pointless. And if it is run in a non-Parallel event then the check is pointless too... 😴

To check the map's main interpreter remotely, try this instead:

$gameMap._interpreter.isRunning()

Note that this checks for any non-Parallel event, not just Autorun.
Worked amazing!!! you are a hero!!
Just one more question: do you know how to check if a player is acessing menu?
Because my game is online and i want to show something if a hero is acessing menu.
I want to desactive a swich if some player is acessing menu.
sorry my english and thanks so much.
You could check the scene directly, e.g.

SceneManager._scene instanceof Scene_Menu
Scene_Menu is the pause menu.

Alternatively, I've used this condition in one of my plugins (Cae_AutoSwitchVars):

SceneManager._scene instanceof Scene_MenuBase
This is true if the current scene is any menu scene, including Scene_Menu (main pause menu) or a sub-menu like Scene_Item or Scene_Status.

I don't know how your setup might work (multiplayer?) but hopefully that helps~ 👋

Original thread: https://forums.rpgmakerweb.com/threads/help-me-please-about-condition.142196/