How could I make a daily reward feature in Blueprints?

Hello,

I am currently developing a mobile game. How do I create a daily reward system in blueprints?

As in;

A player logs in once a day and is able to claim a reward.
It does not let them claim a reward if they have not waited 24hours.
Thank you.

Hi!

You could store in your player savegame the date, when the user lastly claimed his daily reward. You can compare these stored value + 1 with now. If its greater, the user waited at least 24h.
The formula would be something like this:

(PlayerSavegameDate + 1Day) < Now. If that is true, than you can reward your player again and set PlayerSavegameDate to now.

I hope I could point you to the direction! Good luck with your project :slight_smile:

Thank you Factorice. How do I create player save game date or is that already implemented?

You have to make a blueprint which inherits from “Savegame” (or something like this). Than you can add variables (in your case of type Date) like in any other blueprint. You can then load and save this object with the “Load Game From Slot” or “Save Game To Slot” nodes. Look for further information here