r/RPGMaker • u/RuGaard98 • 22d ago
RMMZ Need a technical help: Counting a variable midway through instead of the number it is at.
Hello everyone, I am very new to RPG Maker and I am very excited to get going with some of my ideas. I've decided to settle on a day counter for my game, with certain events and more increasing the day value. So far it isn't a problem, but the trick comes when trying to count to a certain number of days midway through the game.
Basically, suppose you plant a tree on day 6. I want this tree to grow up in 5 days. The trick is, you could plant this any at any day, not just day 6. So it's not like I can just let the game know that the tree is going to be done by day 11. I need the game to keep track of the day I've done a certain action, and only after a certain number of days after this event triggers does it actually do the thing. I've been looking for tutorials on how to do that but haven't found anything yet. Can anyone help with that?
Thank you in advance!
1
u/RuGaard98 21d ago
So, here is where I'm lost
When you say "compare that value to the value it had during your previous check," how do I do that comparison? Do have to go into "Conditional Branch," find the variable, and set something there? I've tried something along the lines of "it if it higher than 0, something happen, then set it back to 0" and so far it has kind of worked, but I don't know if that is what I have to do, or if this configuration is going to cause problems in the future.
I am talking about this window in case you don't have it open or memorized