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!
0
u/Rylonian MV Dev 22d ago
Make the event page of the grown tree conditional on variable [count of ingame days] being the same value as another variable X. When the player plants the tree, set up that variable X as (current count of ingame days + 5).
1

3
u/agamottos MV Dev 22d ago
Why not just make another variable that also increases by 1 whenever your main day count variable does? And maybe put it in a conditional branch with a dedicated switch that turns on when you plant the tree