Thank you both for your fast replies!
I woke up 8 hours later feeling rested and reading your answers 😀
Now, I'm thinking, if I have an Innkeeper event, but instead of fix 8 hours sleep, I want players always to wake up at 7 in the morning (I have a time system common event that counts the hours/time).
But what happens, if the players goes to sleep at midnight? Or at 9 in the evening? Then maybe they sleep more or less than 8 hours.
What complicated math shenanigans can I do to count that?
How would I go about removing the timer aspect from this and simply reset the nodes by manually calling the common event? I'm using a day/night system and would simply like all nodes to respawn at the start of each day.
That's what I was thinking, but JS still intimidates me pretty hard at this point.
Thank you for the help ♥
Edit:
Alright, no idea what I did wrong, but it seems to only be resetting half of the nodes at a time.
Edit 2:
Okay, so I just removed the "remove()" part of the code and that seemed to get them all to reset instead of half. I figure that's there to stop the array from being flooded by duplicate entries though, so I manually reset my variable back to it's initial array state.
Hello, good day.It was very helpful and works very well. I'm a beginner and I'm learning to make simple plugins (MZ), I'll try to turn it into a plugin.