[CGMZ] Daily Rewards (Patreon)
Downloads
Content
This plugin creates a daily reward system which can keep your players coming back daily to collect an in-game reward.
! SEE BOTTOM OF POST FOR UPDATES !
Hi all,
Today's plugin is a daily rewards plugin, which creates a scene where the player can collect a reward once per day. Collecting a reward will allow the player to collect the next reward after a day has passed, while missing a day will reset the reward back to the first day's reward. Once all of the rewards are collected, the player will be able to start collecting rewards from the first day onwards again. The system is based on the user's local system time.
I have also provided the treasure chest images used in the screenshots, but you can also make your own.
Future plans for this plugin include toast manager integration, a way to set a daily reset time, and more customization options for the daily reward scene. As always, leave any suggestions you may have for further improvements and I will work to get them implemented as well.
Alpha Update March 30, 2023: Added plugin commands to check if the player can collect their daily reward and to actually collect the daily reward (if possible). This will allow you to fully event the daily reward system if you do not wish to force the player to use the daily reward scene to collect their rewards. With this update, toast manager integration was added to support showing a toast window when a reward is collected.
This update adds some window customization options, including the ability to change the windowskin, window padding, back opacity, and tone. You can also now change the padding between daily reward boxes.
This update is mostly a modernization update of some core features. Colors were changed to windowskin colors which support built-in color picker UI in the plugin manager. You can still use custom colors via [CGMZ] Infinite Color integration. Toast parameters were also standardized, and the scene background image parameter now supports images from any folder. When updating, you will most likely need to set up these parameters again.
This update now allows you to set a reset time for your daily rewards. Previously, reset time would be exactly 1 day after rewards were collected. Now, you can set a reset time where daily rewards will reset no matter when they were collected within the previous 24 hour period.
This update also added an option to automatically try and collect the daily reward upon loading a saved game. This makes it so your players do not need to worry about traveling to some event in game to try and collect the daily reward.
Integrations with [CGMZ] Scene Backgrounds and [CGMZ] Controls Window were added to the daily reward collect scene.
This version adds a new window to the scene that counts down to when the next reward will be available to collect. It displays hours, minutes, and seconds. Supporting options have been added, such as text, window position, and window width. See below gif for how it can look.
This update also fixes a bug with the collection window not refreshing if the next reward becomes collectible while the player has the scene open.
This version adds common events to the possible daily rewards you can give the player. This will queue a common event to run when the daily reward is collected. It also comes with its own reward text, so you can communicate to the player what the common event will give them.
This version also worked on integrations with other [CGMZ] Plugins. The window background for timer and reward windows can now be changed with [CGMZ] Window Backgrounds, and window appearance settings can now be set via [CGMZ] Window Settings.
The [CGMZ] Toast Manager integration has been improved, and now uses the toast preset id system. You can still use %rewards to show the rewards of the toast. You can also now have a reward-specific toast, for example if you want a certain long-streak reward to have a special toast that stands out more. Plugin order with [CGMZ] Toast Manager is no longer important.
This version adds an integration with [CGMZ] Currency System. Since you may now award multiple currencies for a daily reward, the currency rewards have been redesigned as a list of currencies and their respective ids and amounts you want to award. You will need to set up your currency rewards again as a result.
I also added a string format for your currencies, so you can now choose where the unit and amount go. This replaced the Pre and Post currency text parameters. Each currency can have a different string format.