This script provides a simple “daily bonus” mechanic, allowing players to receive bonus rewards once a day. It assumes that you can get a bonus on a new day, but you can write your conditions to use different periods if you want.
It is intended for offline games and uses the player’s system time to reward bonuses and to determine whether rewards can be rewarded.
In order to provide developers with more control over the rewards, script calls are provided. It is up to the developer to determine how to set it up for their game.