MV How can I check if an AutoRun Event is running? [for ALOE_VirtualButtons]

Hi.
I'd like to hide ALOE_VirtualButtons when an event is running (examples: I talk to an npc and it walks or does any other non-message action /// I have an autorun event with the player walking, etc.).

I can make it hide during messages with the plugin's own parameter, but I can't make it hide during events. A player accessing the menu, or autosaving, or opening a game manual during an event, specially an autorun event, could maybe break the game.

I've tried adding "$gameMap.event()" to a conditional branch, but it doesn't seem to identify it. Adding "$gameMap.event().event()" causes a conditional branch script error. Adding "$gamemap.event(1)" makes the buttons disappear... forever, probably because it's simply recognizing that there is event 1 in the map or something (and I'd like it to apply to all maps).

I'd just like to hide the buttons during messages AND press/touch/autorun event actions. What code should I put in the conditional branch for that?
Thanks in advance! >.<
cant you just flag a variable (or maybe a switch) on or off before conversations and make your autorun do certain stuff based on the thing being on or off (putting an IF statement in the very beginning of the autorun code)?!
Hey,

You could try
$gameMap.isEventRunning()

Edit: A bit slow, Nukes solution works too of course.
cant you just flag a variable (or maybe a switch) on or off before conversations and make your autorun do certain stuff based on the thing being on or off (putting an IF statement in the very beginning of the autorun code)?!


that would definitely work, but I'd have to individually go through tons of events where there is any action other than messages, and at the current state of my project, that'd weeks. But I'll take the advice for future projects AND for the upcoming events, just in case. Thanks a lot!


Hey,

You could try
$gameMap.isEventRunning()

Edit: A bit slow, Nukes solution works too of course.
That seems to be working just fine! And it doesn't seem slow either. I'll do some further testing just to be sure, but it seems to have worked! 🙂
Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-check-if-an-autorun-event-is-running-for-aloe_virtualbuttons.133037/