Eventing a renewable resource (crops, for example)?

Hello, all--


I'm wondering if there are any elegant techniques for implementing a resource that automatically refreshes itself at intervals. For example, a fruit bush that would give the party a piece of fruit when clicked on, that would then be empty for a while, and that would eventually be clickable for another piece of fruit. Rise and repeat.


Off the top of my head, I realize I could set the fruit bush event up with a whole series of switches resetting it in response to external factors like, say, major points in the game story. So the party could get a piece of fruit, and then after STORY TRIGGER 1 goes off come back for another, and then another after STORY TRIGGER 2 goes off, and so on. This could at least provide a reasonable semblance of "random" regrowth, especially since the players would of course receive no direct information that the fruit bush had reset itself.


But if there's a way to do this without setting up events with god-knows-how-many-pages to pull it off, it's currently outside my knowledge base.


Any hints would be much appreciated.


Thanks! 
Made for exactly this type of thing.  This will allow the timer to keep running even when you're on other maps.





The event requires 2 pages.  One that gives the fruit, turns on a self switch and does a plugin call to start a timer for however long you want, and turns the self switch off at the end of the countdown.  The second page is conditioned by the self switch and does what you want when there's no fruit to harvest.
Thank you! That looks extremely promising.

Original thread: https://forums.rpgmakerweb.com/threads/eventing-a-renewable-resource-crops-for-example.71348/