Help with "timed event"

Hey,

i'm new to RPG Maker (i have MV). I want to create a "timed" event. Not sure if you would actually call it like that in english so i'll explain what i mean.
I have an NPC in a house, who gives you the task to find something. What i want to happen is you leave, do other stuff, look for it, can't find it and when you go back and talk with him, he will say he already found it and give you some gold.

I came up with solutions how to do this, but none which whom i'm really happy.

1.) You put an event outside the House, if player steps on it, an variable/switch changes and when you talk with him again, dialog changes. Problem is, if the player knows that, he can just leave and go in again and kinda "cheese" the quest.

2.) Make variable, that if you talk with enough other npcs, his dialog changes. Problem, then if the player meets other npc first, it kind of has the same problem as the first.


Couldn't find a thread about it, but i wasn't sure how to search on english for it either.
Anyone got an idea how to solve this?
Hope you can help me and thanks in advance!
Moved to: MV Support

Let's say you want the NPC to have found the item 10 minutes after asking the player to search for it.

On event page 1, the NPC will give the player the quest. Use Control Variables to set a variable to the current game time (that's in Game Data > Other > Play Time). Turn on self switch A (or a regular switch, if you want other things to change their behaviour when the player has the quest).

On event page 2, set self switch A as the condition. Use Control Variables to set a different variable to the current game time. Then use Control Variables again to subtract the first variable from the second. The result will be how many seconds have elapsed since the quest was given.
Then do a Conditional Branch saying if the second variable is 600 or more (60 seconds * 10 = 10 minutes), you can do the "I found it myself" stuff.
@Shaz
Ok, thats like a perfect solution, thanks!

Where exactly do i find Game Data>Other?
Or do i need a plugin?
I found something called Databse, but there is no other.


Nevermind, found it.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-timed-event.156232/