Need help for my machine gun YEP.56 – Limited Skill Uses.

Hello!

I have an idea of rpg game in a modern world setting and I am trying to make a machine gun skills.

Machine gun has 100-round clip.

Skill 1 fires 10 times and have 10 limited uses.

Skill 2 fires 30 times and have 3 limited uses.

What I need to write in a notetag of a 2-nd skill so that whenever player uses 2-nd skill first skill decreases at 3?

For example:


Turn 1
Skill 1 limited uses 10/10;
Skill 1 limited uses 3/3;
uses skill 2

Turn 2:
Skill 1 limited uses 7/10;
Skill 1 limited uses 2/3;

YEP.56 – Limited Skill Uses gives this notetag - <Skill x Limited Uses: -y>
But the problem here is that my skill targets enemy unit. Is it possible for a skill to target enemy but at the same time to limit skill uses of an actor?
At neighboting thread I found this notetag by Trihan for target push:

<custom target eval>
targets.push(targetUnit.smoothTarget(this._targetIndex));
for (var i = 0; i < $gameParty.aliveMembers().length; i++)
{
var member = $gameParty.aliveMembers();
targets.push(member);
}
</custom target eval>

and also this notetag by LB096

<Pre-Damage Eval>

if (this.isHpEffect() && value > 0){

if (target.isActor()){

value = Math.round(-value * 0.25);

}

}

</Pre-Damage Eval>

I don't know anything about Java. Is it possible to chose 1 enemy via its standard scope in the database then push actor as viable target by above - mentioned custom arget eval notetag and then make that no damage animation is played on actor? This way I can make an extended skills for a pistol. http://sumrndm.site/skill-extender/

It is like I have general skill gun fire and extended skills that target enemy head, torso, arms and legs. When player fires enemy at the head all other gun skills must decrease at -1. Do anyone has an advice how to make it happened?

Original thread: https://forums.rpgmakerweb.com/threads/need-help-for-my-machine-gun-yep-56-limited-skill-uses.106876/