Can someone help me with changing Yanfly's Combo Stacks?

Alright so like a year ago in a Tips and Tricks video (shown below), Yanfly produced a bit of Notetag magic that takes physical attacks and adds each hit to a state with granted a buff that grows with the amount of stacks on the buff. The Stacks can then be used as a skill cost where the skills that use the stacks don't increase the stack count.

Spoiler: The Code used in the video
The State code
<Custom Apply Effect>
// Defaults user's combo stacks to 0.
user._comboStacks = user._comboStacks || 0;
// Get the current number of stacks. Min 0, Max 10.
var stacks = user._comboStacks.clamp(0, 10);
// Set the combo counter for the state.
user.setStateCounter(stateId, 'x' + stacks);
</Custom Apply Effect>

<Custom Remove Effect>
// Reset combo stacks to 0.
user._comboStacks = 0;
// Get the current number of stacks. Min 0, Max 10.
var stacks = user._comboStacks.clamp(0, 10);
// Set the combo counter for the state.
user.setStateCounter(stateId, 'x' + stacks);
</Custom Remove Effect>

<Custom Confirm Effect>
// Check if the user is delivering physical damage and the action does not have "Combo" in its name.
if (this.isPhysical() && value > 0 && !this.item().name.match('Combo')) {
// Defaults user's combo stacks to 0.
user._comboStacks = user._comboStacks || 0;
// Get the current number of stacks. Min 0, Max 10.
var stacks = user._comboStacks.clamp(0, 10);
// Calculate the extra damage rate from Combo stacks.
var rate = 1.00 + stacks * 0.10;
// Round the damage upward.
value = Math.ceil(value * rate);
// Increase stack count.
stacks += 1;
// Set stack count min to 0, max to 10.
stacks = stacks.clamp(0, 10);
// Set the combo counter for the state.
user.setStateCounter(stateId, 'x' + stacks);
// Apply stack count to user's combo count.
user._comboStacks = stacks;
}
</Custom Confirm Effect>

The Skill Code

<Custom Requirement>
// Defaults user's combo stacks to 0.
user._comboStacks = user._comboStacks || 0;
// Set condition to whether or not the combo stacks are above 2.
value = user._comboStacks >= 2;
</Custom Requirement>

<Custom Execution>
// Defaults user's combo stacks to 0.
user._comboStacks = user._comboStacks || 0;
// Get user's combo stacks.
var stacks = user._comboStacks;
// Reduce user's combo stacks.
stacks -= 2;
// Set stack count min to 0, max to 10.
stacks = stacks.clamp(0, 10);
// Get Combo Attack state ID.
var comboStateId = 136;
// Set the combo counter for the state.
user.setStateCounter(comboStateId, 'x' + stacks);
// Apply stack counter to user's combo count.
user._comboStacks = stacks;
</Custom Execution>
There are two things i want to do. First I want to have the state stack only when i use specific skills and secondly if possible change the it from increasing the damage to a different buff like mp regen.
Thank you in advance for you assistance.

Original thread: https://forums.rpgmakerweb.com/threads/can-someone-help-me-with-changing-yanflys-combo-stacks.87973/