MV [Solved] Independant Gauge Bars for NPC/Event on map

Hi Everyone!!!
for RMMV
I am looking for a plugin that shows a gauge over an event/npc head

I built behaviors for when the npc "sees" the players, bu i would like to have a gauge appear then rise when the event/npc "sees" the player and the gauge will fall then disappear when they no longer see the player...

I've been searching for a bit and cant seem to find a generic gauge bar like this for each event/npc.

I have solved for the "Seeing" of the player and capturing a counter for the rise and fall of the "seeing" values but I would like to have a gauge bar appear over the head of each event/npc (there may be multiple) that sees the player

I have attached a sample gif of the behavior, I would just like to add a gauge bar over the guards head to show the status of detecting the player, if that makes sense
This will do?

Nevermind - I've just noticed u use MZ not MV, so that plugin won't work
Ehh that may have been my fault for miss-tagging the post. It should be RMMV
Hmm this one is pretty close but I need it for events/npcs and on a script value I choose not on the player tied to the player hp

https://atelierrgss.wordpress.com/rmv-s-hud/
Ok a little bit of an update... I kinda have it working but its on the player not the event that "sees" me (see gif) I'm trying to get the same behavior but over the guard event not my player... I am open to ideas while I hack away at the other authors plugin
Another update... Almost there... I was able to get the effect I wanted with a text plugin but I am still looking for a graphic plugin that lets you do a progress (regress?) bar over an NPC. If anyone has any additional ideas I am super open to them as I hack my way through this
Update:
Holy cow! I almost have it... just need to fix the z-index issue (seen in gif) and test it with multiple NPCs as well as test for performance and mem usage then I think i'll share the code... I borrowed code from other people and tweaked it though so I can't take all the credit
...I almost have it... just need to fix the z-index issue (seen in gif)...
Depending on how you're handling these bars you might run into issues fixing the z-Index. It's been a while since I played around with PIXI's z-Index but if the sight bar is a child of the guard then I don't know how possible it will be to get it to render above everything else. I would suggest instead having some sort of script that spawns in these bars as a child in the main container/scene like the guards or props and then the z-index should function correctly. Only issue is that then you'll need to keep track of these bars some way (it's probably enough to just assign the instance to a variable before passing it to the main scene and then refrencing that variable) and you'll need to clean them all up so you don't have multiple unused sight bars just hanging out in the scene and potentially causing a memory leak.
YESSSSSSSS!!!!!! I did it!!!!!
I borrowed code from a couple of plugin makers to understand the flow and shifted to sprites instead of windows and I was able to get the z-index under control and tailor the gauge more to my liking on a per character/player bases when needed in a script....
Special thanks to a few folks

MOG_S_Hud
https://atelierrgss.wordpress.com/rmv-s-hud/

The HealthBar.js from here @mrcopra
https://forums.rpgmakerweb.com/index.php?threads/health-bar-on-map.65217/

The Nasty_Text_Pop_Events.js
https://github.com/Nelderson/NASTY_RPGMakerMV_Scripts/blob/master/Nasty_Text_Pop_Events.js

And by watching some of the tutorials from Poryg the RPG Maker
https://www.youtube.com/channel/UCOUwC0sn8jb83Gn3mos5lEg/featured

I have not documented or pushed to github yet but I will attach a sample.

I am using the QSight and QMovement plugins in this sample if anyone wanted to test
https://quxios.github.io/plugins

It is not a completed plugin by far but good enough to work for my purposes

Original thread: https://forums.rpgmakerweb.com/threads/solved-independant-gauge-bars-for-npc-event-on-map.133191/