gauge for certain scenes - script or event?

with a gauge like this


http://www.rpgmakervxace.net/topic/1090-gauge-graphics-for-kms-generic-gauge/#entry13313


I was planning on having an onscreen display of my player's important inventory item level when on a quest.


I have seen tutorials for eventing a system like this.


http://forums.rpgmakerweb.com/index.php?/topic/27390-on-screen-hud-meter-video-tutorial-health-hunger-thirst-morality-etc/


Anyone done something like this? Were you satisfied with it?


I just need a simple system. Suggestions?
Gauges are pretty easy to script, especially using draw_gauge in Window_Base.

All you need to do is set up an equation to determine the rate, which is pretty simple. It's usually just something like:

x = current valuemx = max possible valuemy_rate = x.to_f / mxFrom there you can use draw_gauge or your custom script's equivalent to draw it in a window (you can set transparent, so it's a cleaner UI element)
I've done simply HUDs for hp (displaying hearts), stamina (under the player sprite, moving with it) and gold. It gets a bit more tricky if you want the HUD to persist while switching scenes (Scene_Map > Scene_Menu and back) and still properly clean it up, but in general it's not overly hard to do.


It will be harder if you want to do circular gauges, since they have to be calculated using something like Bresenham's line algorithm, which is more complex behaviour (in general, Bresenham proved to be very useful for what i'm currently doing: http://deepnight.net/bresenham-magic-raycasting-line-of-sight-pathfinding/).

Original thread: https://forums.rpgmakerweb.com/threads/gauge-for-certain-scenes-script-or-event.40528/