Hello everyone,
For my game I am trying to create a system that count gameplay time and if the player plays more than lets say 4 hours then negative buffs will be applied until he rests.
Resting time will be valid only if the player in not playing. So for example if i set 8 hours until full rest, the game needs to know that if the player comes back after 8 hours, the negative buffs will be removed.
In case its helps, the idea behind all this is to create some kind of anti-addiction system in games.The game will be offline only.
It would be greatly appreciated if someone could explain or point to a direction on how to be able to count the time between the game sessions so i know the player actually did not play for at least 8 hours.