Real Time Energy System

Modern mobile games make use of an Energy System: The player can play and as they do activities, their energy is decreased. Each activity will cost the player Energy, and if the player is out of Energy or their Energy is too low, they cant complete the task. The only thing to bring the Energy back is real time. So as the player ia idle or away, real life time will add Energy points back.


So firstly,


Is it possible for RPG maker mv to create a plugin that updates Energy when the player is not even on the game.


And Secondly,


If its not possible, would it be possible to create a mock version of this, where Energy is replenish when the player is playing.


I plan to implement this into your traditional RPG, but having the quest and Healing take Energy 
Sorry I can't really help for the technical part, but from a design point of view, energy mechanics are sort of restrictive and usually a tool of free to play game to make you spend money for extra energy.


are you working on a micro transaction game?


Otherwise maybe usage of variable and game time check functions could do. Maybe post in MV support thread too.
It would be nice to change the TP system into an energy system!
I believe there is JS code to check the date and time, maybe you could use a check on how much time passed that way since last save? This also assumes you got something like this in game too already else they will not get any energy until they save either.

Original thread: https://forums.rpgmakerweb.com/threads/real-time-energy-system.73265/