Hello,
I've been trying many solutions found on forums to build a farming system based on time without success and I'm running out of ideas on how to do it.
I'm using Galv's Event Spawner and Hakuen studio Self Variable.
A common event is running and adding +1 to Variable Grow every minute.
I have 1 Tomatoe, 1 Potatoe... event on a map, called by Galv's plugin. The player can put any number of crops he wants at any time and any type of seed on the same location.
I plan to have many vegetables available as my game is based on farming so I would need a system that can be replicated for every vegetable event.
Here's what I would like to do :
To be ready to harvest : the tomato will take 10 min, the potato 20 min...
If the player plants Tomato A on min 1 and next Tomato B on min 5, I would like the Tomato A to be ready at 11min and Tomato B to be ready at 15min.
But as the different tomatoes all come from the same event, I don't know how to do it. I tried with the Self Variable without success.
The best solution would allow me to keep one event per vegetable, called by the seed (item) used by the player.
I would greatly appreciate any help, thank you very much !
I've been trying many solutions found on forums to build a farming system based on time without success and I'm running out of ideas on how to do it.
I'm using Galv's Event Spawner and Hakuen studio Self Variable.
A common event is running and adding +1 to Variable Grow every minute.
I have 1 Tomatoe, 1 Potatoe... event on a map, called by Galv's plugin. The player can put any number of crops he wants at any time and any type of seed on the same location.
I plan to have many vegetables available as my game is based on farming so I would need a system that can be replicated for every vegetable event.
Here's what I would like to do :
To be ready to harvest : the tomato will take 10 min, the potato 20 min...
If the player plants Tomato A on min 1 and next Tomato B on min 5, I would like the Tomato A to be ready at 11min and Tomato B to be ready at 15min.
But as the different tomatoes all come from the same event, I don't know how to do it. I tried with the Self Variable without success.
The best solution would allow me to keep one event per vegetable, called by the seed (item) used by the player.
I would greatly appreciate any help, thank you very much !