MZ Questions for setting up timers for food buffs

Hello all,
I use RMMZ with various VisuStella plugins.
I'm trying to find the path of least resistance for setting up this food buff system.
Just like many other games, if you use an item (food for instance) on an actor, that actor gets a "buff" (state) for a certain amount of time. "Time" is the issue I'm having. I haven't found a way with the current plugins that I have to achieve multiple timers as well as alter the display of the timers and tie them with main party actors only.

I've currently setup food items that give a state that buffs a certain stat and to run a common event to make sure that only 1 "buff" can be active at a time per actor. I've set the timer to make the "buff" disappear after 10 mins. However the default timer is only 1 timer.

The actors use the "food item" only on the main menu screen.

What I want to do:
1) Display the "buff" timer where I want on the main screen/battle screen showing the time remaining/actor who has the buff/which buff it is (icons with a numerical value for time remaining).
2) Capability to have multiple timers going because I'll have multiple actors in a party and each actor needs to have their own "buff" timer. When their timer runs out, that actor loses that "buff."
3) For the displayed timers, I only want the main party actors buff timers to display and only show when they have the "food buff."

If anyone has any experience or knowledge on how I could achieve this with default RMMZ or with plugins I'd be very thankful!

Thank you!

NovA
I don't think RMMZ has any native funcitonality to display timers as you're describing (with icons, or for states). I know VisuStella's states plugin can aid you in showing them in battle, but I don't know about on the field. You'd probably need a HUD for that or something. In fact, I think a HUD would probably oversee much of the details you're looking for. Except for the restriction on how many "buffs" (states) can be applied at once. I also think with some clever javascript wizardry, you can probably also use VisuStella's plugin to remove other food buffs when you apply one. Probably should go look at their plugins to see if thats what you wanted, though.
I'm about 90% through with implementing this with the VS cores, give me 10 minutes.

Okay, so I have the food timer added as an actor property, and made a common event which sets it when you eat food, and decrements it every frame. And I've added a display in the main menu which shows the frame count as minutes and seconds. Only problem is the status window doesn't update every frame, so currently the countdown only refreshes when the menu is opened. I'll take another look at it tomorrow.

Update: still haven't gotten there with the menu but I did do this with Visual Text Windows.
1622078501184.png
I don't think RMMZ has any native funcitonality to display timers as you're describing (with icons, or for states). I know VisuStella's states plugin can aid you in showing them in battle, but I don't know about on the field. You'd probably need a HUD for that or something. In fact, I think a HUD would probably oversee much of the details you're looking for. Except for the restriction on how many "buffs" (states) can be applied at once. I also think with some clever javascript wizardry, you can probably also use VisuStella's plugin to remove other food buffs when you apply one. Probably should go look at their plugins to see if thats what you wanted, though.
Yeah I think SRDude's HUD might be able to help me out, I know it can display variables and I know there's a way to make a timer from a variable. I'm just worried that if I have too many parallel processes that it will bog the game down but I'm not too experienced in that department yet. I did already set up the common events to remove the other food buffs when applying a new buff though!
Thanks!

I'm about 90% through with implementing this with the VS cores, give me 10 minutes.

Okay, so I have the food timer added as an actor property, and made a common event which sets it when you eat food, and decrements it every frame. And I've added a display in the main menu which shows the frame count as minutes and seconds. Only problem is the status window doesn't update every frame, so currently the countdown only refreshes when the menu is opened. I'll take another look at it tomorrow.

Update: still haven't gotten there with the menu but I did do this with Visual Text Windows.View attachment 190365
Wow very cool man!
Thanks for taking time to help out I really appreciate it!
Moved to: Plugin Requests
Oh wait you said "main" screen not menu screen. You want this to be on the map and not the main menu, right?
Oh wait you said "main" screen not menu screen. You want this to be on the map and not the main menu, right?
Yes, sorry about the confusion! I would only like the buff timer to appear on the map screen.
Oh, in that case I have it working. I'll tell you how to do it in the morning, need to head to bed now.

Original thread: https://forums.rpgmakerweb.com/threads/questions-for-setting-up-timers-for-food-buffs.136867/