Managing HUD? - If players Hp = do x

So I am having a bit of a problem with eventing..
Uploaded a screenshot of the code.

If the player is hurt/has a specified hp percentage, it should change the characters face/reaction from NPCs.
If anybody might have a solution, please tell me, getting desperate here:|.

Note: I am using an ABS, but that should change little.


View attachment 107242
What exactly are you trying to achieve?

Problems that I see:
  1. The event runs on parallel. Do you know what that means? It means it runs every frame, so it runs 60x per second
  2. If HP is 90% it will satisfy all 4 conditions the way you have written it
There is probably a better way of doing this. Are you using a plugin for your HUD? If so what plugin?

However, as Aloe Guvner said, your conditions are not specific and it's possible for all 4 to be true, a human might be able to understand what you're doing, but the program will do exactly what you tell it to. You can solve this by nesting your conditional branches like so:

Spoiler
upload_2019-1-16_11-29-30.png

Alternatively:

Spoiler
upload_2019-1-16_11-32-47.png

Original thread: https://forums.rpgmakerweb.com/threads/managing-hud-if-players-hp-do-x.104486/