MogHunter's Chrono Engine ABS Enemy HP Conditions [SOLVED]

Hello there! I've been having fun learning to use the ABS in Moghunter's Chrono Engine plugin, but have come across the lack of being able to keep track of enemy HP. I want to create a boss battle where once the enemy HP reaches a certain percentage it switches to a new page/pattern in its attacks. I was wondering if it was possible somehow to create a plugin, or edit the main code to get this to work. I'm just looking for something similar to the way the plugin keeps track of if the enemy is defeated or not and turns on a switch, but in this case, keeps the HP value in a specified variable to make it easy to track.

If anyone knows how to do this and can help me out(I have no idea how to edit the code as I have little coding experience), it would be most appreciated! 👋
Hello there! I've been having fun learning to use the ABS in Moghunter's Chrono Engine plugin, but have come across the lack of being able to keep track of enemy HP. I want to create a boss battle where once the enemy HP reaches a certain percentage it switches to a new page/pattern in its attacks. I was wondering if it was possible somehow to create a plugin, or edit the main code to get this to work. I'm just looking for something similar to the way the plugin keeps track of if the enemy is defeated or not and turns on a switch, but in this case, keeps the HP value in a specified variable to make it easy to track.

If anyone knows how to do this and can help me out(I have no idea how to edit the code as I have little coding experience), it would be most appreciated! 👋

You can track enemy HP with script: $gameMap.event(x)._user.battler._hp
replace x with enemy's event's id
Thank you, this works great! 😀
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/moghunters-chrono-engine-abs-enemy-hp-conditions-solved.93010/