MZ HELP!! Trying to use the the note tags from Visustella Battle Core...

Hi all!! Im quite xperienced with MV but super new at MZ. So im trying to use the noteags:

Code:
<JS Post-Start Action>
console.log(user.hp)
console.log(target.hp)
</JS Post-Start Action>

As you can see im only trying to log the current hp of the user and the target during a skill. BUT it appears MZ (VS plugin) is treating the user AND the target as the same battler. In the logs appear the same number even thou the user(actor) and the enemy(target) have different hp.

I have tried different notetags and it also treats user and target as the same battler, its like target doesnt exist anymore. How can i get information of a target?

Thank you!
This is by design. In post-start action, which if you read the documentation is aimed at BattleManager.startAction(), the target hasn't been determined yet.
I see, where or when is the target determined? Where Is safe/correct to get target details?

Thank you four your help =)


EDIT: it is in PRE APPLY the fastest I can use get target info?
Correct, pre-apply is the earliest notetag where you can use the target reference.
Hmm...So, for example, I want to know if my skill will kill the target at the beggining of my sequencing, there is no way I can access the target hp at the beginning of my skill?
How will you know whether it will kill the target at the beginning if the damage hasn't been calculated yet?
Moved to: Plugin Support
Im trying to mimic my skills from MV to MZ. At the start of the action sequencing, I used to calculate the damage using the formula, let say "damage = a.atk -b.def". Then I compare if "damage >= b.hp"..that way I can check if the target will day before applying the damage.

But I cant reference the target from he beginning so I cant predict the damage from the beginning =(
Try user.opponentsUnit().members()[user._lastTargetIndex].hp
It works!! thank you so much, it was driving me crazy.

Appreciate it =) =)
BUT! with user.opponentsUnit().members()[user._lastTargetIndex].hp and more than 1 enemy, it will pick up the hp of the other enemy if i switch targets between turns, no? I mena,. its a huge progress....but it is still flawed..
What do you mean by switch targets between turns? Any time the battler selects a new target, _lastTargetIndex is updated.

Original thread: https://forums.rpgmakerweb.com/threads/help-trying-to-use-the-the-note-tags-from-visustella-battle-core.137936/