Some Script Call assistance

Hi,
As the title suggests I need some assistance with script calls. There's 2 I'm hoping to achieve.
I'm using these as conditions to trigger objects in SRD's HUDMaker plugin.

1. I'm looking for a script call that checks if both a party member's HP is less than or equal to a certain percentage (let's say 10% I haven't decided what the best value would be yet).

2. Not sure if this is a thing or not, but I'm also looking for a script call that checks if the party is currently selecting skills, attacks, items, etc, and by extension if there is a way to check if a certain party member is selecting there skills (not super important if not possible but would be useful).

Thanks,
Spak
1. actor.hpRate() returns the percentage of health as a decimal.

2. This is a little more complex, you would check what the current scene or window is. The best way to do it depends a bit on what you're trying to do.
1. actor.hpRate() returns the percentage of health as a decimal.

2. This is a little more complex, you would check what the current scene or window is. The best way to do it depends a bit on what you're trying to do.
What is the script call for number 2 in this case? I found one online for scenes that is:

Code:
SceneManager._scene instanceof Scene_Menu

In my case, I assume I would change the Scene_Menu part to Window_ActorCommand, but I don't know what to change the rest of the code to.
Assuming you aren't using a Plugin that has changed the default methods, BattleManager.isInputting() will return true if you're in the process of selecting menu commands.

If you aren't on the fight/escape menu and an actor is active, you should also be able to use BattleManager.actor() to get the current actor. You could then use something like BattleManager.actor()._actorId or BattleManager.actor()._name.

Original thread: https://forums.rpgmakerweb.com/threads/some-script-call-assistance.136308/