So I have a day night cycle that goes through 24 hours, 60 minutes, and 60 seconds. Each one has its own variable assigned. . What I've ran into now is that I want to make buffs in the game run off of this time. This has posed a problem to me that I just can't wrap my head about how to accomplish. For everything hypothetical let's call this buff....Buff. And it will last 6 hours. I have absolutely no idea how to use my time system to be used for this buff timer. Everything I've ever done like this in the game I've always used the wait command and have it equal to a variable. This wouldn't work here though because even being somewhat imprecise and using the hour and the minute as variables, I'd still need to wait for 2 variables? How would that even work.
In addition, since these variables repeat, say I cast the buff at 23:00 and was just using hours for buff times. Since it flips back to 0 at 24 hours how could it be used to count? I'm just so lost on how to do this, I literally have 0 clue. Any ideas?
In addition, since these variables repeat, say I cast the buff at 23:00 and was just using hours for buff times. Since it flips back to 0 at 24 hours how could it be used to count? I'm just so lost on how to do this, I literally have 0 clue. Any ideas?