I've created an extensive Hunger,Thirst,Fatigue system using Status Effects and formulas. I did research, I read tutorials and forum. So far I am successful in making status effects for different levels of sleepiness that use a status value called Rest that decreased over time. (When rest is <90%, slightly drowsy effect is applied which lowers certain status values.)
I'm stuck at this part: (When rest <60%, you have a 1% chance of falling asleep per hour) the status effect handles the having rest<60% and would then activate another status effect of being asleep which restores rest.
I can't find how to make the formula wait 60 seconds before checking chance.
Depending on how complex you want to go, you could e.g. use global events or even status effects (which can also periodically use game events) for these kinds of system.
E.g. via status effect, you can set up a falling asleep chance effect via the status effect's Game Events settings (they work pretty much like the status conditions, just use events instead of change status values). The event can do the chance check and apply the actual sleep status effect.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!