Translating a script from Ace to MV

$gameTroop.members()[1].hp() < $gameVariables[3]


Where 1 is the number of the enemy in the troop and 3 is the variable where you stored the hp.


I want to store enemy health hp into a variable so later I can activate an event that will only happen if the enemy has not taken damage.



Credits to the Script: Shiggy
That line of script is not storing anything.  It's comparing enemy health to see if it's less than a variable.


Why can't you just use Control Variables > Game Data > Enemy #'s > HP?
Is it possible to create a conditional branch to detect if  this control variable


Control Variables > Game Data > Enemy #'s > HP


is lower than the Max HP of an enemy. 




Thank you for taking the time to answer my question Shaz
I did this in my game by setting an action in the patterns of the enemy to only run when the enemy has 100% HP. Then, in the action set it to run anything you need to run (if you need dialogue, set it to run a common event in the action).
Thanks bgillisp that did it for me

Original thread: https://forums.rpgmakerweb.com/threads/translating-a-script-from-ace-to-mv.63523/