Is there a way to make an event occur then after an X amount of time another event happens?

I have been trying to do this for quite the while, let's say I hit a certain key on my keyboard (Using a plugin) and it activates a common event. In this common event I want the character to have 'THROUGH ON' and lets say after 5 or 10 seconds I want the character's through to go OFF. I have tried looking it up, most searches show Day & Night cycle, which I already use


Please help! (RPG MAKER MV)


SOLUTION: I did two common events, one common event that activates a switch by pressing a specific keyboard button


the second one is a parallel event with a conditional branch of the switch that I created (In the first common event) then it would turn on transparent on and there is a timer and transparent off.


The problem was once the second common event was alone (No switch) and it was parallel it would always turn on which means your 'through' will always be on or you wouldn't be able to move until the time ends. I hope this helped!
Unless, I'm missing something, why not have a Wait command?
My bad I forgot to mention this a wait command wouldn't allow you to move while waiting, I want the character to move while he is 'invisible'
Yes it would, if the common event is set to parallel process and you don't check the 'wait for completion' in your move route.


This is not a game mechanic design question.  It is a "how do I implement this ..." question, and belongs in the Support forum for the relevant engine.
Just do the Wait command as a regular command 🙂. Do not do it with the "Set move route" command because that affects the player.


zrVBEOb.png


That goes assuming that your common event is called by the button press and it's not an Autorun. If it is an Autorun, then set it to a Parallel Process and uncheck "wait for completion"
You could also assign a variable to the amount of steps the player has taken, lets say you want to plant a seed, be able to walk away and battle for a while, then come back and it has grown into a plant. I prefer the step method rather than just waiting around, but that's just me =]
I tried doing what you guys suggested which was using the normal 'wait' function I did that and It didnt work, the player would freeze for that amount of time then after that goes back to normal (Without parralel) but when it's set to parrallel the player is always 'invisible'
You could have the first event trigger a timer, and when that timer goes off have the second event start.
You could also assign a variable to the amount of steps the player has taken, lets say you want to plant a seed, be able to walk away and battle for a while, then come back and it has grown into a plant. I prefer the step method rather than just waiting around, but that's just me =]

How can I do the counting step method? (Sorry I am noobie here xD)
How does your plugin work?
It's not my plugin it's a YEP Button Common events
How can I do the counting step method? (Sorry I am noobie here xD)

I don't have the program handy, but you need to make a variable called Player Steps.


Have a parallel process event constantly set the Player Steps variable to equal the Steps Taken game data.
Then, you would have a conditional branch that checks  for  a value of Player Steps +500, if it's met, the event can activate.
I know this probably doesnt make much sense, but I can event it out for you sometime tomorrow if you like =]
  When you use the Wait Command method, is your Common Event Trigger set to "None"?
No parallel 
Try setting it to none.
I just did that, and the character just freezes for that duration..
Set it to parallel process, conditioned by a switch.  Make the button press turn on the switch.  At the end of the common event, turn the switch off.
I don't have the program handy, but you need to make a variable called Player Steps.


Have a parallel process event constantly set the Player Steps variable to equal the Steps Taken game data.
Then, you would have a conditional branch that checks  for  a value of Player Steps +500, if it's met, the event can activate.
I know this probably doesnt make much sense, but I can event it out for you sometime tomorrow if you like =]

This is really useful to do thank you! But you forgot something, I am trying to access my event on a press of a button not after a certain time. Doing your method wouldn't work always
Set it to parallel process, conditioned by a switch.  Make the button press turn on the switch.  At the end of the common event, turn the switch off.

It worked! Thank you so much!
Okay I downloaded the plugin. It doesn't work like simply calling a common event.


Here's what you do: You set your Common Event like this:

Spoiler
LkcOjd5.png


That way it will just activate the "through on without freezing you. The Switch will activate a **second** Common Event

Spoiler
5C3bnAX.png

That will be in a Parallel Process and it will countdown until it does the "through off" and then turns off the switch that keeps it active.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-make-an-event-occur-then-after-an-x-amount-of-time-another-event-happens.66125/