Storing the last damage value done as a variable?

Is there any way to store the last damage amount done as a variable?


The goal of this would allow me to tally the total damage a player has done with a particular ability.
With Yanfly damage core, in the skill notetag in the damage eval :


value = yourDamageFormula;


$gameVariables.setValue(VariableID, value);

Original thread: https://forums.rpgmakerweb.com/threads/storing-the-last-damage-value-done-as-a-variable.66012/