Farming event

I am trying to have the farm event tiles gradually "grow" only problem is the only ways I have found require the player to be on the map...
I have looked online but I get mostly stuff pulling up for MV, MZ, and occasionally VX Ace and I am using XP.
Also, I don't know Scripting! This seems to be a big problem, but it's seriously some alien language I cannot seem to comprehend. I just want the crops to grow not immediately and for the time as it were to pass while you are not on the map staring them down...
Connect them with variables, so thec ca "grow" outside the map, too. Just create variable for that crop and change it overtime, data in variables (and switches) are stored all the time. From your post I can tell you are beginner, so maybe read the program tutorial and watch tutorials on the Internet before you jump into anything. (not to be mean, just suggestion)
Yeah, the program tutorial is not helpful. I have variables and switches but they only seem to work when you watch them. I used them for forgeables and they suffer the exact same problem. As for these online tutorials... I have been using the Wayback Machine but am not finding what I am looking for XP. Now, If I was using MZ, MV or VX ACE there is a plethora of information. Yes, those pull up even with XP in quotations and it's infuriating.

Are there any intact tutorials on how exactly these variables work?
My Intro to RMXP tutorials cover the basics of variables, but I'm not sure (off the top of my head, at least) how to do what you're looking for short of resorting to something like a step counter that as long as the player is walking around, their crops will grow. That would end up with things like riding your bike back and forth to hatch eggs in Pokemon Emerald, I think XD
No, they work all the time. They are kept in database, and changing the map won't reset them. If you store crop stage in variable, they will be remember and it will return to its state if you visit this map again, provided of course that you build that crop event correctly.
Now, If I was using MZ, MV or VX ACE there is a plethora of information.
Variables are mathematics, and there is absolutely no difference between Variables in RMXP, VX, VXA, MV, MZ or dozens of other programs.

What you need to do is have a timesystem that increases the time variables no matter on which map you are (usually done by common event, but could also be done by one event per map).

And the values on your farm map then react to those time variables when entering the map.
@TeiRaven your tutorial is very well made! Thank you for sharing, this will help with other events.

@Andar Thanks, that is super helpful! I don't know anything about the other systems so I had no clue if they even overlapped or if the system had been completely overhauled! Since it's the same variable system I will look for some more tutorials now! 🙂

@fizzly I know they stay on or off and have successfully used them in tons of other events, even with counting and other things.
I have a problem with the timer feature for this one event though as it thoroughly gives me a headache! I have tried the steps but it's a one time use deal even when I think I've reset the variable to zero. And every step over the count causes the crops to "blink" and the 2nd crops just spring from seeds to crops as if there is no step count variable even. I have been working with them but am at my wits end with it.
Okay, so let's start from the beginning, so you want the crops to grow when player makes X amount of steps? There's no time, right?
Have you ever tried my KTimers XP script?
The best way I can think of is having a common event that waits for a few frames, then adds a value onto a "grow" variable. This will be then called to parallel processes on every map. On the crop events themselves, the event pages will change using the variable above ___ conditions.
@kyonides Yes, I have seen mentions your script and it is good; however I am uncertain if it will or will not become a commercial project in the future, as to this point I am avoiding everything that excludes commercial purposes.

@chisaikore The two step solution may be what I am looking for I will try that now! So far I implemented a night switch and that lead to insta-crop growth at night... Ironically I used both tools separately and did not think to combined them :oops:!

As for what I am trying to do it is to simply not have insta-crop growth, lock you on the map until they are grown, or require you to be on the map for them to grow. It's really a simple concept, with a not so simple implementation....

@fizzly sorry for the confusion. I had to step away from the problem and solve the far easier headache problem I was experiencing. My Idea is more of whatever works and by whatever means necessary to meet the 3 crop requirements. Next time I have a headache that bad; I will probably give myself a break sooner 😕 I hope...

1. No insta-crop growth
2. no locking player
3. player not required to stay on the map in question
The two step solution may be what I am looking for I will try that now! So far I implemented a night switch and that lead to insta-crop growth at night... Ironically I used both tools separately and did not think to combined them :oops:!
I think with the variable-based growth, you could also possibly add items that can boost growth. Check if an item is in the inventory, ask if the player wants to use it. When it's used, max out the growth variable, and now we have fertilizer!
Probably not a perfect solution, but I'm glad it helped!
I see... OK, from now on I'm allowing people to use my KTimers scripts in commercial games as well.
I am still working on it, I have tried to find more advanced tutorials, but so far advanced is the concept of using variables... Which I already tackled 3 events ago. Now I found something far more difficult and I am looking at possibly needing a separate variable for each crop square... Farming was supposed to be a small thing only 6 seeds in total and 2 two stage crops...
Very glad I am using a test bed project! I haven't even moved on to two different seeds at this point!

@kyonides okay, that may solve my problems, sorry for any inconvenience. As of right now I have avoided using scripts, I am hoping it's not too difficult.
Well. I've included screenshots for a reason. :awink:
This has been what I was using for stage 1 crops, variables for individual tiles will probably fix problems for 2 stage crops but I have not gotten that far just yet. It's a theory at this point. As far as the KT Timers script I am still learning that, I can use it for a forgeable thanks to the screenshots. It's probably going to take me some time to figure out the KT Timer scripts, so I am going to go into marathon mode for this problem and pace myself. Thank you for all ya'll's help! 🙂

The common event is just a "Wait 100 frames" command it's just a test bed after all.
This has been what I was using for stage 1 crops, variables for individual tiles will probably fix problems for 2 stage crops but I have not gotten that far just yet. It's a theory at this point. As far as the KT Timers script I am still learning that, I can use it for a forgeable thanks to the screenshots. It's probably going to take me some time to figure out the KT Timer scripts, so I am going to go into marathon mode for this problem and pace myself. Thank you for all ya'll's help! 🙂

The common event is just a "Wait 100 frames" command it's just a test bed after all.
Ah, just a quick thing. I don’t think I explained my solution very well, so here’s another way of explaining it. What you’ve done here is great, but can be simplified!

You will need 3 events, 1 variable. 1 common, 2 map. Let’s call the variable “grow”

Event 1: Common event. Wait for a few frames, then increase grow by some amount. Let’s say we wait 120 frames and increase grow by 5.

Event 2: Map event. Call the common event here, like you’ve done in your script. What you want to do is to keep one of this map event around every map so your player can still have crops grow, even if they’re in another map.

Event 3: Map event. This is the plant itself. It will need multiple event pages, starting from empty land to fully grown.
Let’s say it has 3 stages of growth. This means 4 event pages, as we include the empty land. For the sake of example, stage 0 will occur when grow >= 0, stage 1 when grow >= 10, stage 2 when grow >= 15, and stage three when grow >= 20.
Stage 0 has the option to grow a crop, stage 1 and 2 has the option to water, and stage 3 has the option to harvest. Harvesting should reset grow back to 0.

Imagine our player goes away and doesn’t return to the farm for 240 frames. When they do return, their crops should be stage 1. However, event page priority is a little fickle. if it doesn’t work let me know!

Original thread: https://forums.rpgmakerweb.com/threads/farming-event.167256/