XAS Hero Ace - Enemy HP condition

Sorry if I ask too many questions about this script, but I want to know if it's possible to make an HP condition for bosses that runs some events depending on their HP, like dialogues and pattern changes.
I've been looking for scripting help on this but I can't find anything, and unlike on my previous posts, I have no clue on how to achieve this. Thanks in advance.

Original thread: https://forums.rpgmakerweb.com/threads/xas-hero-ace-enemy-hp-condition.136616/