MV Passive Combo-State shared by team

Hi 🙂

I'm currently using the Yanfly Comboattack plugin ( http://www.yanfly.moe/wiki/Combo_Attack_(MV_Plugin_Tips_&_Tricks) ) , combined with the Yanfly AutoPassive-State Plugin ( http://www.yanfly.moe/wiki/Auto_Passive_States_(YEP) ), to allow each character to passively generate a combo chain every time they use multi-hit skills, and the combo counter resets each end of the team's turn.

=======
I created a State "ComboSystem"
note:
<Custom Apply Effect>
user._comboStacks = user._comboStacks || 0;
var stacks = user._comboStacks. clamp(0, 1000);
user.setStateCounter(stateId, 'x' + stacks);
</Custom Apply Effect>

<Custom Remove Effect>
user._comboStacks = 0;
var stacks = user._comboStacks. clamp(1, 1);
user.setStateCounter(stateId, 'x' + stacks);
</Custom Remove Effect>

<Custom Confirm Effect>
if (this.isPhysical() && value > 0 && !this.item().name.match('Combo')) {
user._comboStacks = user._comboStacks || 0;
var stacks = user._comboStacks. clamp(0, 1000);
var rate = 1.00 + stacks * 0.01;
value = Math. ceil(value * rate);
stacks += 1;
stacks = stacks. clamp(0, 1000);
user.setStateCounter(stateId, 'x' + stacks);
user._comboStacks = stacks;
}
</Custom Confirm Effect>

With this combo system, I can make a combo chain of up to 1000 hits, each successful hit increasing its damage by 1% compared to the previous hit.


Then I was in the Troops, I took my test group.
I have created an Event1 "Turn 0 +1*xX" with Scope:Turn, whose event is "Add fixed entire group to ComboSystem state"
I created an Event2 "End of turn" AND "Turn0+1xX" with Scope:Turn", whose event is "Remove fixed entire group from ComboSystem state"

Thus, at the start of each round, each member of the group passively gains the possibility of raising a chain of combos in the use of multi-hit skills. And at the end of each turn, the state is removed (which is the same as resetting the combo counter). Then the loop starts again T2, T3, T4, etc etc

========

My problem is that, precisely, this combo chain is independent and linked to each character.
I would rather move towards a combo chain such as Final Fantasy Brave Exvius has: Each character raises a combo chain common/shared to the whole team.
In doing so, this makes it possible to diversify the roles, some characters being able to use weak attacks but with many hits (to move up the common/shared chain) and others using attacks with a single hit but inflicting enormous damage (to finish).


SO
I'm looking for someone who could help me figure out how to make the combo chain common/shared to the whole team.


ATTACH FILES (to big for being attached with tool):
Exemple of FinalFantasyBraveExvius "shared"-Chaining Mechanics: https://cdn.discordapp.com/attachme...46bcf097bf67050453a2d7979ef7d652a59aa81abea2&

Exemple of what currently my chain-system is doing in RPG Maker MV: https://cdn.discordapp.com/attachme...5bf0f1f2b1bf8101f3047f668e7ef439a7e93b3ce84d&
up
Well, right now you're modifying the damage value based on user._comboStacks

Does it work if you just let's say throw the combo counter into your party leader's variable?

So replace all of the 'user' with $gameParty.members()[0]

Except where it says the 'user.setStateCounter'. There you can leave the 'user', so that it will show the same value with all your battlers.
(EDIT: Or actually with that set.StateCounter you'd have to modify it to change the counters for all the battlers...but I guess you could also just show a combo variable somewhere on the screen)

Original thread: https://forums.rpgmakerweb.com/threads/passive-combo-state-shared-by-team.164459/