MZ Libra/Scan skill for MZ?

Hello,
I'm trying to make a skill that displays the max HP of an enemy. I tried to follow the Libra tips & tricks video by Yanfly, but unfortunately it didn't work in MZ.
Here is what I wrote in the notetag of the skill:
Code:
<Before Eval>
if (target.isEnemy()) {
  var id = target._enemyId;
  $gameSystem.addHpGaugeEnemy(id);
}
</Before Eval>
How do I make a skill that displays max HP? Or alternatively, is it possible to display max HP as a number using VisuStella plugins? Maybe I just missed it in settings.
Thanks for reading.
I think the JS note tags are different in visustella.
http://www.yanfly.moe/wiki/Battle_Core_VisuStella_MZ#JavaScript_Notetags:_Mechanics-Related

Check out the pre-apply information. Hopefully one of these may lead you in the direction you are looking to go.
I tried JS Pre-Damage and JS Pre-Apply, but it doesn't do anything either. There's no error message, and there's no effect.
Which Plugins are you using currently?
What are you using in the notebox?
What do you want the outcome to actually be?
Which Plugins are you using currently?
What are you using in the notebox?
What do you want the outcome to actually be?
My list of plugins is in the screenshots below.
I used

Code:
<JS Pre-Apply>
if (target.isEnemy()) {
  var id = target._enemyId;
  $gameSystem.addHpGaugeEnemy(id);
}
</JS Pre-Apply>

and
Code:
<JS Pre-Damage>
if (target.isEnemy()) {
  var id = target._enemyId;
  $gameSystem.addHpGaugeEnemy(id);
}
</JS Pre-Damage>

I'd like to make a skill that displays the enemy's HP as a number.
Ok, I may have a solution for you.
EndResult.png


Required Plugins:
Visustella
-VisuMZ_0_CoreEngine
-VisuMZ_1_BattleCore

Spoiler: Plugins
Plugins.png

Step 0: Open plugins
-Double-click VisuMZ_0_BattleCore
-Double-click "Action Sequence Settings"
Spoiler: BattleCore
BattleCore.png
-Set "Auto Notetag" to true.
Spoiler: Auto Notetag
ActSeqSet.png
-Click OK to accept this change.


Step 1: Create a Common Event; let's name it Libra.
Spoiler: Common Events
MenuCE.png
-Add new Event Command.
-Page 3, Script.
-Within Script add the following:
Code:
var target = BattleManager._target;
$gameVariables.setValue(1, target.mhp);
-This will set the target's Max HP to a Variable, in this example it is set to 1.
-Press OK.

Spoiler: Common Event
ComEv.png

You should end up with something like this.

Step 2: Add new Event Command.
-Page 3, Plugin Command.
-Select VisuMZ_1_BattleCore, press OK.
-From the Plugin Command, under Command Name(top-right drop down menu), select MECH: Variable Popup.
-Double-click Targets option and select "current target".
-Set Variable ID to whichever you decided(Example 1).
-Customize the other setting to whatever you like, for this example, leave at default.

Step 3: *This step is optional* Add new Event Command.
-Page 3, Plugin Command.
-Select VisuMZ_1_BattleCore, press OK.
-From the Plugin Command, under Command Name(top-right drop down menu), select MECH: Text Popup.
-Double-click Targets option and select "current target".
-Set Text to whatever you like, for this example, type "Maximum HP!".
-Customize the other setting to whatever you like, for this example, leave at default.

STEP 4: Create a new Skill; let's name it Libra.
Spoiler: Skills
MenuSK.png
-Change setting to your liking.
-Be sure to change Skill Type to match your character's capability.
-Be sure to change Scope to 1 Enemy.
-Be sure to change Occasion to Battle Screen.
-In the Note box, type this:
Code:
<Common Event: Libra>
-This will call the Common Event we created named "Libra".

Spoiler: Skill
Skill.png



Step 5: Add the skill Libra to your character class.
-Save project.
-Test with a variety of enemies.
-You can add more BattleCore Plugin Commands to Action Sequence the execution of this skill.

Step 6: Enjoy! 🙂

Hope this helps!
Moved to: Plugin Support
I can't seem to make it work. There's still no effect in battle. I checked that the common event was called by the skill and it is, but nothing happens. Did I miss something?
in the plugin command.. change target to "current target"
Help.png

Original thread: https://forums.rpgmakerweb.com/threads/libra-scan-skill-for-mz.140515/