Kill Count as a Resource

Greetings,

I was wondering if someone could point me in the right direction or give me an idea on how I can make this work. I have a "Grim Reaper" type of a character and I would really like her to be able to build up resources from her fights. (I know Yanfly has the Battle Statistic plugin, which may or may not help for this part of it) I would like for her to build a "Stack" of "Souls" every time she lands the killing blow on an enemy. These souls then can be used as a resource for her other abilities.

I tried looking for a solution on my own, but I couldn't seem to figure it out. Hopefully, someone can point me in the right direction. ^^
Do you want like a variable or an item or something to increase whenever she kills an enemy? Does this apply to all of her attacks or only when she uses a certain skill(s)?

If your'e using the Yanfly plugins you could try this in the skill's note box:

<Post-Damage Eval>
if (target.hp <= 0) {
b.addState(176); "Add your stuff here"
$gameTemp.reserveCommonEvent(210); "Add your stuff here"
}
</Post-Damage Eval>

You can put a common event or whatever to run only when the target is defeated. I'm not sure the exact way you want this mechanic to work, though.
Thank you for your advice! With some help from some of the members of the Lunatic Discord we were able to get it to work. We used Yanfly's Buffs and States Core and the Auto Passive Plugins to get them to work. ^^

Though, to explain it, Every time, she kills an enemy. She collects a soul. Those souls remain even after the battle. She can use those souls to pay for her special abilities. For instance one of her skills could be called "Shear" and it would take 1 of the souls she collected to use.

But thanks again!~

Original thread: https://forums.rpgmakerweb.com/threads/kill-count-as-a-resource.105628/