Player Idling triggers event

Discussion in 'RPG Maker MV' started by pelvichan, Aug 11, 2016.

  1. pelvichan

    pelvichan Pixelsmith Veteran

    Messages:
    45
    Likes Received:
    23
    Location:
    Puerto Rico
    First Language:
    Spanish
    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.
     
    #1
  2. Rinobi

    Rinobi Veteran Veteran

    Messages:
    569
    Likes Received:
    212
    First Language:
    English
    Primarily Uses:
    RMVXA
    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.

    Check_If_Idle_00.PNG
     
    #2
  3. pelvichan

    pelvichan Pixelsmith Veteran

    Messages:
    45
    Likes Received:
    23
    Location:
    Puerto Rico
    First Language:
    Spanish
    Thank you, Rinobi


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

    [​IMG]





     
    Not signed in






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

    [​IMG]





     
    Not signed in






    but I wasn't successful  Any thoughts.
     
    #3
  4. Rinobi

    Rinobi Veteran Veteran

    Messages:
    569
    Likes Received:
    212
    First Language:
    English
    Primarily Uses:
    RMVXA
    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.
     
    #4

Share This Page