Galv Simple Crops water with rain

Hey guys, I've got a farming system set up with Galv's Simple Crops, but I'm having a bit of trouble figuring out how to set it to water all the plants when it rains.

The plugin has this script call which seems like the key:

upload_2019-7-23_0-15-40.png


I tried replacing the bottom line of this script (which is for manually watering individual crops with a watering can) and putting it in the relevant rainy part of my weather common event, but it didn't work:
upload_2019-7-23_0-17-51.png


Any tips on how I can get this work? Or examples that other people have done that I could get a look at and apply to my own?

Cheers!
Can you show a screenshot of your actual rain event?
Can you show a screenshot of your actual rain event?

upload_2019-7-24_16-17-16.png

(and so on, several more weather conditionals)

I was planning on putting the watering script under each rain event, and altering the daysVar (the amount of days a plot stays watered) depending on the strength of the rain. But that hasn't worked for me, not sure what I'm missing.
Does the "water single crop" thing work for you, or is it just the "water all crops" that's giving trouble?

I just downloaded Galv's Simple Crops demo and tried this in a Script call, seemed to work OK:
Code:
Galv.CROPS.waterAll();
I dont see where in that event you tried to implement the water part... We cant help you if we dont see what you did.
@Engr. Adiktuzmiko Sorry, I misunderstood what you were after. Here's where I'm at right now, still not working:

upload_2019-7-24_21-57-21.png


Thanks 🙂

@caethyril single watering works fine, it's just trying to get rain events to trigger watering all that is the issue. I'm still a bit green when it comes to scripting, so it's probably a dumb mistake.
@Hahasea, I think that extra branch you have there is messing things up: it checks whether the current event has a seed planted. Assuming this weather sequence is getting called from a parallel common event, that'll always be false. 😅

Instead, I would suggest putting this Script command immediately after the "Light rain" comment:
Code:
Galv.CROPS.waterAll(19);
If that works, you can do something similar for other rain intensities~ 🙏
@caethyril Ok, I tried that, and it seemed to work, but then I realised that any crop watered by the rain was staying at seed stage, and even if a crop managed to grow before a rain, the rain reverts it to seed stage. No idea why that's happening!

Tbh I'm a little unsure which variable I should be using. At the moment I have it on 19 which is the Seed: Crop ID variable, but I'm not sure if that's wrong? Also tried Seed: Plot ID but that did exactly the same thing.
Moved to: JavaScript/Plugin Support
The plugin help labels it as a "days" variable; I admit I don't quite understand, myself, but crop ID doesn't sound right regardless. Have you tried without anything in the brackets?
Code:
Galv.CROPS.waterAll();
@caethyril I swear that I did and it didn't work, but I tried it again to double check, and this time it worked! :LZSwink:

Thank you so much for all your advice, you've been really amazing!
You're welcome, happy RPG Making! 😂

Original thread: https://forums.rpgmakerweb.com/threads/galv-simple-crops-water-with-rain.111344/