I'm using VisuStella Variable Gauges plugin. Basically you choose a game variable and this plugins fills and depletes the gauge dynamically when that variable is updated. Sweet!
However, when creating a gauge, you need to assign its MAX VALUE manually, which by default is set to a number, 100 :
The documentation says I can use JS to set that value instead, but I can't get it to work. Guess I should be using the "Insert calculations here" section... but the best I can think of is simply this :
I'm getting an error message at launch saying the value is "not finite", even if my game variable (in this example #256) is definitely set to a number.
Basically I'm trying to create a HP gauge for my Actor with current HP value as the gauge plugin variable, and use variable 256 as the current HP Max of my Actor to set the gauge's MAX VALUE with JS.
However, when creating a gauge, you need to assign its MAX VALUE manually, which by default is set to a number, 100 :
The documentation says I can use JS to set that value instead, but I can't get it to work. Guess I should be using the "Insert calculations here" section... but the best I can think of is simply this :
I'm getting an error message at launch saying the value is "not finite", even if my game variable (in this example #256) is definitely set to a number.
Basically I'm trying to create a HP gauge for my Actor with current HP value as the gauge plugin variable, and use variable 256 as the current HP Max of my Actor to set the gauge's MAX VALUE with JS.