Original Post
hey, my friend and i are designing a web based rpg (who isn't these days lol). what i'm trying to do is set up a standard user profile with the basic hp, mp, etc. what i want is for the hp and mp to regenerate automatically whether the user is logged in or not. lets say 1 hp every 5 minutes, but only if their hp is below their max hp limit. how would something like this be automated for a database of users, considering different users may have different timers or even upgrades that would reduce the amount of time needed to regenerate? thanks.