Timed event

Hi I'm having trouble creating an event for my game. I'm making a quest where a mother ask the player to fetch some medicine. I want to make it where theirs a hidden timer where if you don't complete the quest in time you fail the quest. Is their a way to do this.
Hi I'm having trouble creating an event for my game. I'm making a quest where a mother ask the player to fetch some medicine. I want to make it where theirs a hidden timer where if you don't complete the quest in time you fail the quest. Is their a way to do this.

set play time variable at the start of quest, and run a parallel proc common event, if play time variable is more then that variable+(whatever time you want the time limit to be), turn on switch(whatever switch you have on the NPC event, that tells you, you fail).

This should do the trick.

Original thread: https://forums.rpgmakerweb.com/threads/timed-event.48022/