MZ Using DK Time plugin for MZ and can't figure out time based events

I'm trying to test out creating events based on real time and I noticed that this plugin has a plug in command called "Time change plugin". I have no idea what that means but I was hoping is means you can turn a switch on or off based on how much time has passed by. But no matter how long I wait the switch never seems to turn on. I'm still an absolute noob at this so it could either be not actually what this command is intended to do or it is and I'm using it completely wrong.

I've also tried doing the same this using variables which kind of works except when the 1 suddenly changes to 60 and things get weird. I had no idea how to get around that issue so if there are any ideas on that, I would find them very useful as well.
Did you install the DKCore and DK Core Game Time plugins that are prerequisites for this one?
Did you install the DKCore and DK Core Game Time plugins that are prerequisites for this one?
I have DK Game Time but I thought the core plugin was for MV. I can't find anything about it in the updated website either. Would you mind dropping me a link?
Oh, sorry, it did say MV. I thought that was the MZ one.
Oh, sorry, it did say MV. I thought that was the MZ one.
Haha no worries, I find these plugins very difficult to navigate. There's often so little information about them.
Ah, there's a bug with the switch plugin command. The code sets the second parameter being sent to args.switchState, but the parameter itself is called switchValue. That's why that one doesn't work.

To fix it, go to line 2718 of the js and change args.switchState to args.switchValue.

@DK not sure if you've picked up on this one?
Ah, there's a bug with the switch plugin command. The code sets the second parameter being sent to args.switchState, but the parameter itself is called switchValue. That's why that one doesn't work.

To fix it, go to line 2718 of the js and change args.switchState to args.switchValue.

@DK not sure if you've picked up on this one?
Thanks so much that worked! Now the only problem now is that the timer keeps going after I press the action button again so I just have to find a way to stop and reset the timer so that it never turns the switch on as long as I keep pressing the button in time.
If you're just doing a thing where you have to press a button every 5 seconds, is there any reason you can't use a timer event command set to 5 seconds in your setup event, then have a parallel process that checks for the timer being 0 (meaning you failed) which does the failure stuff, and in the button event reset the timer to 5 seconds?
Eventually I want to do a thing where you get extra exp or items for doing something within 24 hours. I also want to do a set up where the player gets rewarded for using an item immediately after obtaining it but gets a better reward for waiting a week before using it.
That shouldn't be too hard. Set up the timer for the thing and then when the player does it turn the timer off.

Original thread: https://forums.rpgmakerweb.com/threads/using-dk-time-plugin-for-mz-and-cant-figure-out-time-based-events.134745/