How do I make a common event that triggers when an Actor takes damage? (MV)

The Auto Passive States plugin is auto-applying a state to an actor. The state has a respond effect from buffs and states core.
<Custom Respond Effect>
code
code
</Custom Respond Effect>
This effect will run when the battler is selected as a target. This will
occur only if the action connects and will occur after damage execution.
This effect will run after damage calculation occurs. The 'value' variable
is equal to the damage dealt to the battler.
This is the first effect to
run after damage execution has taken place.
So the actor who has that state, which is auto-applied, receives damage with a value>0, the code between the tags will run.
If I wanted to make this happen to the group leader, would it be like this?
try

Code:
//not use "var actorId = 1;"
var actor = $gameParty.members()[0]

or This Plugin
try

Code:
//not use "var actorId = 1;"
var actor = $gameParty.members()[0]

or This Plugin
IT WORKED! IT FINALLY WORKED. Thank you so much for going out of your way for this. Obrigado amigo!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-common-event-that-triggers-when-an-actor-takes-damage-mv.170914/