What I'm specifically trying to do is make it so that when displaying HP value for enemies, it doesn't display their actual health total, but instead a line of text depending on the health percentage of the target. For example, if their health is full (100%) then on the page it would display something along the lines of "They are completely unharmed"
And then of course, when their health is low (25% or so) then it would display something like, "They are about to collapse"
I could just make it display this kind of text with script by just measuring the exact health total of each individual enemy (I've done it before already), but if I could do the percentage thing in scripting, it would make it easier to make a universal script that I could just copy/paste rather than having to measure health totals for each individual enemy.
What I'm hoping I can do is something along the lines of "If HPVariable is < 50% of HPMaximum then etc."
In addition, I kind of had an idea to make health display similarly to old Resident Evil, like with Fine, Caution and Danger, all color-coded and what-not. Being able to measure a variable's percentage in scripting would help with doing this.