MV Mad Milk State

Hi, I'm using Yanfly's Buffs and States Core,
and I want to make a status effect from Team Fortress 2.

Mad Milk
Any damage done to enemies covered in milk restores 60% of the damage dealt to the attacking player's health.

The problem is that I don't know how to use the plugin's complicated JS side!

Plz help.

Thank.
You could try something like this (untested):
JavaScript:
<Custom Respond Effect>
// Calculate heal amount
var heal = Math.floor(value * 0.6);
// Apply heal to attacker
attacker.gainHp(heal);
</Custom Respond Effect>
This tag should go in the "Mad Milk" state's notebox. Respond Effect should trigger after the damage is dealt. The lines starting with // are just comments to help you keep track of what's going on~
You could try something like this (untested):
JavaScript:
<Custom Respond Effect>
// Calculate heal amount
var heal = Math.floor(value * 0.6);
// Apply heal to attacker
attacker.gainHp(heal);
</Custom Respond Effect>
This tag should go in the "Mad Milk" state's notebox. Respond Effect should trigger after the damage is dealt. The lines starting with // are just comments to help you keep track of what's going on~
It works perfectly!
Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/mad-milk-state.137136/