Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Cookie Cutter MZ - Farming System

A project template for RPG Maker MZ. Copy and paste it into your own project to utilize a custom evented farming system! · By Caz

Question about a rain system

A topic by Cune created Apr 26, 2024 Views: 76 Replies: 3
Viewing posts 1 to 3
(+1)

Hello :D

So theoretically i added in a switch that allows the crops to water themselves whenever the new day starts and if there's rain (it checks in the night self calculation event page). Now my question would be if there's a way to control the selfwatering switch if I only spawn in the crop while it is already raining but during the day since the other event page triggers depend on button triggers (Since like the newly spawned in event hasn't experienced the overnight rain check yet it stays unwatered). I am not sure if that's even possible and I looked into changing the events self switch from an external event that checks for rain (but I don't know if that can work because the event has been spawned in and I wouldn't know what to use for the events ID?).  I thought about adding in a page at the end with an automatic trigger and control it with another self switch but I am not sure how to put the page triggers for the desired outcome :( So I'm kind of stuck. Just curious if there's any ideas on what I could do. If not that's fine too of course they'll just get watered offscreen at the end of the day, but it would look prettier of course if they turn watered automatically xD

Thanks a lot in advance!

(3 edits) (+1)

Did you ever find a solution to this?

Hi! Sorry for the late reply since I was on vacation. Yet, I haven't figured out an answer yet unfortunately due to the way the crop system is evented. I was in general thinking of completely rehauling the system and learning js for that matter (i am getting quite a bit of lag with a big map with other events that check for the day rollover update). I know there's a function in visumz eventsmovecore that could eventually help (by changing self switch modified with js code) but unfortunately i dont really know how to do it yet. I know in that one mv system there was just a single script call that would water all events automatically (change the self switches of all events with a tag "crop"). Technically if one could make it work that the game checks each event (with a tag?) to change its specific rain self switch times by the amount of events that exist on the map (since theyre spawned in and you cant really manually keep track?) thatd be pretty cool. Hope that makes a little sense maybe I'll ask someone in the forums sometime soon who knows how to operate this properly if i can't figure it out

I actually had a way setup that allowed for this, but suddenly its not working properly at all and i'm not sure why lol. if you have a randomized weather system setup, make a switch for rain to be turned on and off with rain days, cazwolf said in another post at the end of page 9 of each crop event, check if rain switch is on, if it is turn self water back on. and i also had it setup so when you first plant a crop, if rain is on, jump to label on the watered seed page when planting, so it would skip the unwatered one if rain was on while planting. this worked for a while but idk what happened xD I had a problem occur with total minutes too, people told me to use it for NPC movements because hours wasn't precise enough for map " traveling " NPCs, and it didn't work at certain hours with the day/night common event because it divides total minutes at some point for calculations, it was around the same time my NPCs got messed up that the problems with crops started so i'm not sure what's going on, i ended up getting distracted and not sure what the problem is for the crops, pretty sure i had them working properly but now they're not counting on some of the rain days and switching over and changing to watered, and often times if i plant a crop and don't water it, then it rains the next day, they won't water at all.
very certain i had it working smoothly when i first asked if you figured it out,  but not anymore for whatever reason.

As for the lag, i'm having the same issue, FPS drops from 60 to 20 if you stand still on the map for more than a second and it doesn't go back to normal until you've been trying to move for a couple seconds after. I did ask about that a couple weeks ago but never got a reply back.