I need that when a character with this state kills an enemy in battle (with an attack or skill, but not with an item), 1 is added to the counter of this state.
I tried to do something, but it didn't work out.
I use YEP plugins (BuffsStatesCore; AutoPassiveStates)
I tried to do something, but it didn't work out.
Code:
<Custom Conclude Effect>
if (!this.isItem && target.isActor() !== user.isActor() && target.isDead()) {
target.addStateCounter(stateId, 1);
target.clampStateCounter(stateId,0,100);
}
</Custom Conclude Effect>
I use YEP plugins (BuffsStatesCore; AutoPassiveStates)