Sjach, The Reader

Member Since

8/21/2018

Last Activity

6/11/2020 6:29 AM

EXP Points

29

Post Count

3

Storygame Count

0

Duel Stats

0 wins / 0 losses

Order

Warden

Commendations

0

No Profile Entered

Recent Posts

Using Percentages in Scripting on 5/23/2019 11:46:34 AM

I could just do math (it's how I had it set up before), but that's mostly why I was asking, to try and avoid having to set it up for each individual enemy what with their varying healthpools. And on top of that, the bigger issue would be of setting the condition monitor for the reader, since their exact health could be different depending on certain stats. In the end though, it's not like it's necessary at all, just an idea I had and I wanted to know if it would be possible.


Using Percentages in Scripting on 5/23/2019 11:41:59 AM

Thanks for the help, that works for what I was wanting.


Using Percentages in Scripting on 5/21/2019 10:25:38 AM

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.