Variable rolls and events based on other variable changes?

I’m making a game where you trap and then care for animals. The time passes based on actions, since I’m having movement outside the kennel map be similar to a first person dungeon crawler, and movement between different areas have different effects on the “time” variable.
As the time variable increases, I need the needs of the animals to change based on time passed. Of course I could have the transfer events change the need variables whenever the time changed as well or make common events based on time but I still don’t know how to do the traps, and if I could figure out the traps, both problems could be solved.
When the time reaches a certain point, it resets back to 0 and the day variable increases. When you set a trap, the next day, the game will roll for whether or not the animal is trapped. So if you’re on day 3, the game would roll when the day variable is 4, and you could go back to the area where the trap was set to see if you caught anything.
How would I do this, or are there any other ways of doing this instead??
first thing you need to keep in mind is that maps don't exist when the layer is not on them. That means the events on them are not running at all.
what you should do is have the events on the map check when the player enters how many days have passed since the player was last there and make changes based on that.
And that part is just mathematics with control variable.

as for randomizing: use the randomizer of control variable and check its result with conditional branches.
first thing you need to keep in mind is that maps don't exist when the layer is not on them. That means the events on them are not running at all.
what you should do is have the events on the map check when the player enters how many days have passed since the player was last there and make changes based on that.
And that part is just mathematics with control variable.

as for randomizing: use the randomizer of control variable and check its result with conditional branches.
Thank you. I have the "day's end check" copied onto each map when the time variable hits a certain amount. I've made up some common events to be called whenever the day ends, and depending on whether a trap has been set or not. There's a switch for each area and bait, and depending on what bait/area etc. there's different rolls for the chances of capture.
Thank you for your help! The pages are going pretty long though since there's rolls for personality and it has to check on whether or not each kennel has an animal in it or not. Each kennel has it's own set of need and personality variables since the critters can't really exist as their own things. So basically I have to copy and paste a lot, at least thrice for everything I come up with.
But I do have it down though and I appreciate the help! I'll come back to this thread if I have more questions. The randomizing thing really does help!

Original thread: https://forums.rpgmakerweb.com/threads/variable-rolls-and-events-based-on-other-variable-changes.134468/