Afk Time Collector

Ryu_AfkTimeCollector
RPG Maker MZ plugin
Ryuuji/Artille

​
Introduction :
Compensate your players when they return to the game.

Spoiler: image
screenshot.png
​

Features :
Compensate player for having their game out of focus or minimized for too long.
As of v1.02 you can compensate your players for coming back to the game.

UPDATES :
v1.01 :
- Adds the possibility to control said AFK time by linking it to a variable.
v1.02 :
- Allows to use this functionality throughout player disconnect/closing game.

How to use :
- Copy the "Ryu_AfkTimeCollector.js" file into your project's /js/plugins/ folder
- Activate plugin using the 'Plugin Manager'
- Read the 'HELP' documentation (also found in plugin manager).


Credits :
Thanks for crediting Ryuuji/Artille in your game if you end up using this plugin.
Though it is not a necessity. 😊

Terms :
Free to use


Note :
This is my very first plugin, feel free to comment on it if you have suggestions.
That's great, 🙂
Iroincally, this is better for online game because players could just save and close the game
Iroincally, this is better for online game because players could just save and close the game

This was actually the reason I made this plugin. 🙂
They can save, close the game and come back later.

Through eventing, you can decide what the maximum AFK time is and compensate for X hours or X days, depending on what you see fit. 🙂
I still question how does the variable save the information even after the game closed
I still question how does the variable save the information even after the game closed
Their plugin uses Date() and getTime(). When you boot the game up it finds the difference.

You can learn more about it;
here: https://www.w3schools.com/js/js_date_methods.asp
and here: https://www.tutorialspoint.com/javascript/date_gettime.htm

I know coding can feel like magic, because it is, I hope this helps.
As simplistic as the concept is, this plugin is super-unique! I don't recall anything like this for MV or Ace.

Looking forward to your next plugin!

Original thread: https://forums.rpgmakerweb.com/threads/afk-time-collector.137458/