MV Gauges that correspond to custom variables

Good day to you all. I want to know how to go about creating a custom, variable-based gauge when creating custom windows. I already know how to create custom windows, it's just the custom gauges I'm stumped on. This is how I want the gauges to work:

Below is a video to demonstrate what I'm going to do with these gauges:
Dragon Bones Cleaning System Prototype

I want to create two gauges (one for each set of points: Success and Failure) that will be placed at the bottom left of the screen. When a part of the fossil inside of the rock is revealed, a blue gauge will increase by 2 for every inch of the hidden fossil revealed. Although incomplete, I plan to place a red-violet circle on every place where the fossil could potentially be damaged, and by every 1 points of damage, a red gauge will increase to represent failure. If the blue gauge is full, that means it is cleaned successfully but if the red one is full, it is a failure. Finally, if the success bar isn't a full 100 points and the timer on the screen runs out or if the red bar is a total of 50 points or more, then it is an automatic failure.

If it is a success, however, then the success points are subtracted by the failure points to determine the total score.
I would be a big help if I can be pointed in the right direction. Thank you, in advance.
one way a lot of people do gauges is by having two pictures change positions. One picture would be the color of the filled gauge, and one the frame of the gauge.
then the pictures would be placed at different coordinates depending on how much of the gauge is supposed to be filled. if only 10% of the gauge is supposed to be visible then the coordinates would place most of the gauge picture behind the cover picture, if 100% is to be filled the gauge would be fully visible.

there are other ways to do this, but this method is one of the few that works both for scripts and for events (there are no event commands to draw, so you'll have to use this trick there)
I'm worried how the action starts jumpy, and then it becomes straight up stop-motion.
you're already using pictures.... and they're creating lag.
and you want to add to that?
Good day to you all. I want to know how to go about creating a custom, variable-based gauge when creating custom windows. I already know how to create custom windows, it's just the custom gauges I'm stumped on. This is how I want the gauges to work:

Below is a video to demonstrate what I'm going to do with these gauges:
Dragon Bones Cleaning System Prototype

I want to create two gauges (one for each set of points: Success and Failure) that will be placed at the bottom left of the screen. When a part of the fossil inside of the rock is revealed, a blue gauge will increase by 2 for every inch of the hidden fossil revealed. Although incomplete, I plan to place a red-violet circle on every place where the fossil could potentially be damaged, and by every 1 points of damage, a red gauge will increase to represent failure. If the blue gauge is full, that means it is cleaned successfully but if the red one is full, it is a failure. Finally, if the success bar isn't a full 100 points and the timer on the screen runs out or if the red bar is a total of 50 points or more, then it is an automatic failure.

If it is a success, however, then the success points are subtracted by the failure points to determine the total score.
I would be a big help if I can be pointed in the right direction. Thank you, in advance.
Check out this plugin by Galv.

Original thread: https://forums.rpgmakerweb.com/threads/gauges-that-correspond-to-custom-variables.138481/