MZ Help with SRD HUD maker

Hi

I'm using SRD's HUD Maker, and I'm wondering if it's possible to create a gauge to show the progress between two specific values.

For example, say I wanted a gauge to show the value of Variable 25 between 50 and 150, with the gauge showing as empty at 50 and full at 150. Is there a way to do that?

Doesn't it work if you make it show value code:
$gameVariables.value(25) - 50
And gauge max value 100
Doesn't it work if you make it show value code:
$gameVariables.value(25) - 50
And gauge max value 100
Thanks, I'll give it a whirl when I get home.
Doesn't it work if you make it show value code:
$gameVariables.value(25) - 50
And gauge max value 100
No good, unfortunately.
In Gauge Value, under Code, I tried both

return 0;$gameVariables.value(25) - 50

and

$gameVariables.value(25) - 50

and in Gauge Maximum, I put a plain number of 100.

When I tested it ingame, it just showed the gauge as empty, even when I tried setting Variable 25 to 60.
Your first line says:
return 0;$gameVariables.value(25) - 50
so it returns 0.

Try
return $gameVariables.value(25) - 50
Your first line says:
return 0;$gameVariables.value(25) - 50
so it returns 0.

Try
return $gameVariables.value(25) - 50
That did it. Thanks.
Your first line says:
return 0;$gameVariables.value(25) - 50
so it returns 0.

Try
return $gameVariables.value(25) - 50
Oh, one more thing. How would it work if I wanted it to be an enemy's HP/MP between two values?
Is it then just value
return $gameTroop.members()[0].hp - 50
max
$gameTroop.members()[0].mhp - 50

EDIT: replace 0 with enemy index, starts at 0
Is it then just value
return $gameTroop.members()[0].hp - 50
max
$gameTroop.members()[0].mhp - 50

EDIT: replace 0 with enemy index, starts at 0
Thanks, I'll test it out and see what sorts of things I can do.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-srd-hud-maker.183120/