Help converting a line

So I'm transferring my current project from VX Ace to MV, I've got just about everything transferred and ready.
However, I'm having issues with a line of custom code. I don't exactly know how to convert it into a format that MV can read. For abit of context, this line of code is used in the Ace build to determine what face image to use in the status menu depending on the percentage of HP that character has remaining. Here's the line:
Code:
$game_actors[004].hp_rate > 0.75
The equivalent code in MV would be:
JavaScript:
$gameActors.actor(4).hpRate() > 0.75
This would access the HP rate of actor 4 in the database. Of course, you'd also need to plug that code into an MV plugin that accepts the same paramters as your VXA plugin.
The equivalent code in MV would be:
JavaScript:
$gameActors.actor(4).hpRate() > 0.75
This would access the HP rate of actor 4 in the database. Of course, you'd also need to plug that code into an MV plugin that accepts the same paramters as your VXA plugin.
Thank you! And there's actually no plugin It's a custom script. it was easier than looking for a plugin

Original thread: https://forums.rpgmakerweb.com/threads/help-converting-a-line.124291/