Player Idling triggers event

Hello everyone, 


I've been trying without success to figure out how to trigger an event while the player is idle for a certain amount of time.


So I would like to ask you: Does anyone know of a way to do this either with events or with a script? 


As always, Thank you for your time.
It's a bit of brain bench, but the actual event setup is pretty lightweight.
I added some comments within the event to explain what's going on.

Spoiler
Check_If_Idle_00.PNG
Thank you, Rinobi


Not sure if i did it right but I tried replicating this:

Spoiler
BA4NPFU.png






 
Not signed in






And then I tried running the common event from an event on map:

Spoiler
rgE7Kdd.png






 
Not signed in






but I wasn't successful  Any thoughts.
The common event is already a parallel process, it isn't designed to be called that way. Just have an event turn the 'time processing' switch on and it will continue to check if the player is idle until the switch is turned off again.

Original thread: https://forums.rpgmakerweb.com/threads/player-idling-triggers-event.66655/