deleted

deleted
Hmmm, can't you just make the stages need a higher and higher value of the self variable (to change the event page) and then your sleep event increases the value of all the self variables in the events that have been planted? The plugin page gives your the scripts:
getSelfVariableValue(mapID, eventID, variableID);
setSelfVariableValue(mapID, eventID, variableID, value);

So to increase it, I think it's:
setSelfVariableValue(mapID, eventID, variableID, getSelfVariableValue(mapID, eventID, variableID)+X);

When you harvest it, set the self variable to 0.

EDIT:
If you have a range of events (let's say 10-20, map 1), you can loop (let's say self switch A on means they've been planted), I think it's (for self variable 100):

for (let i = 10; i < 21; i++) {
if ($gameSelfSwitches.value([1, i, 'A'])) {
setSelfVariableValue(1, i, 100, getSelfVariableValue(1, i, 100)+X);
}
}
deleted
So, it looks to me like you're using the wrong flag in your sleep mechanic.

<Self> CarrotSeeds should be <Self> Carrots Planted. I hope it's something this simple!

Edit: disregard, I misread this.

However, I feel like you should have a separate variable for the growth of the carrots than the seeds themselves. Looking at my own system with multiple crops (that I'm still learning how it works, I got the farming system template to learn from from a dev on itch called CazWolf or Caz), I have a separate variable for when crops grow. But mine looks a bit more complex than yours.

But I'm going to leave it to those who know a bit more than I do, because I already flubbed up.
There's several problems, I think.

You don't need self-switches B, C and D. You can put pages 3,4, and 5 to action button instead of parallel (remove their contents too). Also, do you really need to go with self-switch A from an empty pot page to another empty pot page? I suggested to use self-switch A when you plant the seeds.

Your scripts are also wrong. Read carefully what each spot should contain. And replace the +X in my example with +1
If you want to set the value back to 0, you don't need the get-script in that case inside it (you seem to have made your own modifications with '=' in some spots).

Your sleep-event seems to control it's own self variable. You need to control the self variables of the crop events (I gave you an example of the loop in the post above).

EDIT: Also, inside the event you can just use the control variables to affect the self variables, instead of the scripts.
deleted
Hmmm, I tested the loop script and it seems to be working for me.
Are the crops in map id 1? That's what you're affecting right now in your scripts.
deleted
Ok, if you're using some spawner plugin, I don't know how they interact with them. But VS Events and Move has their own spawner, I assume they would work with that.

Anyway, if you're spawning them to Map 2, you should try affecting them there right?
deleted
It seems to work for me. Are you targeting the ids of your spawned events?
Like when you spawn an event you can get it's id with: $gameMap.lastSpawnedEventID()
Store those and loop through them to target the spawned events.

You can test it without the loop. Just use that setSelfVariable stuff and replace the event id with the above script.
deleted
When you start the game you can make some variable X an array, script []

Then when you spawn an event on the map, you add to the end of the event that controls the spawning:
$gameVariables.value(X).push($gameMap.lastSpawnedEventID());

Then in your sleep event you affect the stored values there:

$gameVariables.value(X).forEach(function(crop) {
if ($gameSelfSwitches.value([2, crop, 'A'])){
setSelfVariableValue(2, crop, 9, getSelfVariableValue(2, crop, 9)+1);
}
});

I didn't test the code, I think it works that way, but anyway the idea is there.
EDIT: Tested the code, seems to work. Remember to replace X in all spots with the variable number you choose.
EDIT2: Changed map ids in the example script from 1 to 2.
EDIT3: PS. The VisuStella spawn command lets you check spawn success with a switch. So put that 'push' script line inside a conditional that the spawn success switch is ON. Otherwise if the spawn fails and the script runs, it adds a copy of the previous event number in there and messes your system.
deleted
Cool. Like I said it seemed to work for me. In the future it'd be best to just show screenshots of all the events when you make some changes.

I think unless the plugin has a command like "manually increase every planted growth cycle", you'd still need some way of targeting the ones you want. But maybe it has that. Good luck!

Original thread: https://forums.rpgmakerweb.com/threads/deleted.176792/