Set time for something

Hi Guys

Is there a command or code that similar to "wait" but don't freeze the players?

For example, once the player talks to NPC. After talking 5 (or 10) sec, another function/command starts running

I used wait command but it froze players

Thanks
You can use wait for commands, but it has to be in a parallel event.
If your wait command is in the same event that you are talking to(activated by Action Button or Player touch event), the wait will "freeze" the player. But you can set a switch on that play a parallel event to control the wait time.
thanks will try

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/set-time-for-something.119897/