MZ SOLVED Help with setting up a timer based arena style combat system (Visustella Date/Time System)

Hello there, I've been wracking my brain over this for a bit, so I thought I would try asking other people for some insight.

I'm working on a project, where there's gladiatorial combat with a certain number of fights you can do in a certain amount of time, real world time. So, let's say you can do up to 15 fights before you need to wait and do other things for a bit before the timer resets your fights. If you only one fight, you still need to wait until the timer runs out before you get that fight back. I hope this is a comprehensive explanation.

I'm using Visustella's Date/Time system, set it to real world time, and I have variable set for all the relevant measures of time, so that if I do like, 3 fights and walk away from the game for an extended period, they would reset because at least an hour had passed.

The problem is that The Visustella date/time system measures the variables as YYYYMMDDHHMMSS, which means that if I finish all 15 of my fights at 11:59, then at 12:00 the fights will reset. I'm not sure how to overcome this? I know it's a limitation of the plugin because that's how it's set up, and I know I can't make it in game time, because it would be super annoying to leave the game on for however long you need to wait. I would be open to any suggestions to make it work, help much appreciated.

TL;DR: My real-world fight timer finishes because of the way the variables are set up, and I don't know how to fix it.

Thanks!
I'm not familiar with VisuStella's Date/Time plugin or how you may be using it, but...

I'd consider Control Variables -> Script: Date.now(). That gets the milliseconds since midnight 1970-01-01, based on the user's system clock:
I'd store the starting time plus reset interval (e.g. Date.now() + 3600000 for 1 hour). When interacting again, check to see if the variable is less than the current time: if so, reset.
That is so much easier.

Thank you so much, I had like 5 different variables to try and figure out how I was gonna make it work, and your answer was just the perfect thing. Thanks again. Works exactly as intended.
Nice, you're welcome! 👋

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-help-with-setting-up-a-timer-based-arena-style-combat-system-visustella-date-time-system.183605/