Float variables

How can I make the float variables to have a max of 100 instead of 1 ? I want to use it for health system but I`m tired of using 0.5 insted of 50.

It doesn`t work…
I made the value range 0-100 and binded the variable to a progress bar … if I put 20 for example the progress bar will be full

I’d start with not hard-coding things. The following works with a progress bar, no matter how big your health pool is:

value range [0-100]

then it is probably an issue of the progress bar, not the float variable. check that the progress bar is set to accept 0-100 range rather than 0-1.

to make sure your float variable works well, you can plug it into a “print string” node and activate that “print string” every tick (“event tick” node). try setting it to 20 and check if it is working

if you are using “set percentage” node on the progress bar - you should input the result of division by 100 (like 20/100) rather than just 20, because 20 is 2000%, not 20%. (1 is 100%)

Hey @Atomyc_Nick

I usually do something like having the value converted to the 1.0 - 0.0 convention by a function, thus I’m able to do whatever I need with the percentage value.
Its quick and easy (of course, this could be enhanced to a much more robust pure function).

Just a simulation of using it as you need