Need help making a growth cycle timer for my farming game

So I'm looking to make a farming game and I need help setting up individual timers so that each crop can have its own growth cycle. Players can purchase additional farm slots which only start growing once theyve been harvested and thats where I'm running into problems since the Timer is shared.

1719457954505.png

This is
1719457978147.png


This is the current setup I have going, basically player activates the crop to harvest it and then the player gets the item, timer starts counting and they cant harvest it till the timer is up.

Any help would be appreciated.
I'm just giving you some ideas.
You can use route, you can change image of the crop there, or use self switches.
The only con for that is you need to use a script to change self-switches.

wait 600
change image...
wait 600
change image...
wait 600
change image...
wait 600
change image...
wait 600
Script: $gameSelfSwitches([$gameMap.mapId(), this.eventId(), 'A'],true)
You may find this useful.

As you realised yourself,
the Timer is shared
you CANNOT use the single default timer for this.

You can either event your own timer (which is only doable for simple farming plots) or you'll need a plugin to install event timers (unlimited scripted timers bound to the events)

For MV, the most commonly used (if I remember correctly) is Shaz' Event timer
You can try to use variables which are not shared. For tile #1, you may allocate Variable 1 to store the plant's age while variable 2 stores the type of plant occupying that tile, and variable 3 to store the 'stage' that each tile is at. You may use a common event parallel process to update every tile's age.

RPGmaker wasn't designed around farming games and was instead designed so every event is hand-crafted and not mass copy-pasted. The method I can suggest is going to be very laborious and you may consider trying another engine if you're really, really set on doing a farming game.
I got something cool for you, making unique timers for each event, which keep running even when you're not on the map.

It is a simple piece of code, which I wrote myself, but it is on my PC and I am not at home.

It basically records the play time when the crop is planted, and then after it would check if the desired amount of time has passed.

It can even be used so crops keep growing when the game is closed.

You can add as many stages to this as you like. And it can even repeat the cycle as soon as the crop is harvested.

I made this specially for farming games, but can't be used for any event using a cool down, or time limit. I also use it for fishing, respawning enemies and respawning lootable objects.

When I get home, I'll share the code and how to use it, if any of the other solutions have not solved your issue first. I haven't shared or showed this to anyone just yet and the plugin is not yet complete, but everything you asked for, is already completed and tested. You'd be the first to see and try it.
I got something cool for you, making unique timers for each event, which keep running even when you're not on the map.

It is a simple piece of code, which I wrote myself, but it is on my PC and I am not at home.

It basically records the play time when the crop is planted, and then after it would check if the desired amount of time has passed.

It can even be used so crops keep growing when the game is closed.

You can add as many stages to this as you like. And it can even repeat the cycle as soon as the crop is harvested.

I made this specially for farming games, but can't be used for any event using a cool down, or time limit. I also use it for fishing, respawning enemies and respawning lootable objects.

When I get home, I'll share the code and how to use it, if any of the other solutions have not solved your issue first. I haven't shared or showed this to anyone just yet and the plugin is not yet complete, but everything you asked for, is already completed and tested. You'd be the first to see and try it.
I'd love to give a look if you don't mind I havent been able to find a solution that doesnt have coding and im awful at that.
I havent been able to find a solution that doesnt have coding and im awful at that.
There isn't one, but you use a plugin or tutorial that has stuff you can copy.

Did you read the link I gave you to Trihan's tutorial? You literally copy and paste the code as instructed.
I'd love to give a look if you don't mind I havent been able to find a solution that doesnt have coding and im awful at that.
When I wrote that reply, I forgot about one thing... to make that whole system, I did use a few yanfly plugins.

Just the timer, that I can do without any plugin. To make it more advanced, like the ability to plant anything anywhere, that needs a couple plugins. Also a self-var plugin would be nice if you have much timers running at once.

Without plugins, I get quite far, but if you happen to have the yanfly plugins, we get a whole lot further.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-making-a-growth-cycle-timer-for-my-farming-game.169830/