@AcousticJamm Using Yanfly's Skills Core, you can put notetags in Skill noteboxes. In your case, you would probably want to initialize two variables. For the sake of this example, let's go with #0001 OldAttack and #0002 NowAttack. Of course, you've probably long since used variables 1 & 2, so just substitute IDs you can use. Set both variables to 0. In the Attack skill's Note box, type the following:
<Post-Damage Eval>
if(target.isEnemy()) {
$gameVariables.setValue(2, ($gameVariables.getValue(2)+1));
}
</Post-Damage Eval> See proper note in EDIT below.
This should add 1 to NowAttack if skill 1 (Attack) was specifically used this turn. At the
start end of each turn starting with turn
2, 1, you can compare NowAttack to OldAttack. If NowAttack > OldAttack, you know Attack was used, so you proceed with the block of code for that case, else...other block of code for Attack not used. Note: In the code block where Attack was used, be sure to include a line to add 1 to OldAttack so that NowAttack needs to add 1 again in order to be greater than OldAttack on the next turn.
I haven't tried this myself, so there may be something here needing tweaking, but based on my current understanding, if you try this, it should work. Give it a shot and report back, please. 🙂
EDIT: I set it up and had to make 2 adjustments...the note box should read:
<Pre-Damage Eval>
if(target.isEnemy()) {
$gameVariables.setValue(2, ($gameVariables.value(2)+1));
}
</Pre-Damage Eval>
Otherwise, this worked for me. Note: You have to set the tabs to run at end of turn 1, end of turn 2, etc. or nothing happens until after you select your next move (if you just set on turn 2, on turn 3, etc.), and because of this, I had to move up the Post-Damage Eval to a Pre-Damage Eval or it breaks.