What is it you're trying to reset exactly?
You can use <Custom Turn End Effect> from Yanfly's Buffs & States to execute at the end of a turn.
But, like Trihan said, we'd need to know what more specifically you're trying to do and, more importantly, a screenshot of your existing code to help any more precisely than that.
Problem solved
I used the Yanfly Combo attack (which itself requires Yanfly SkillCore and Yanfly Buff&StatesCore)
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 "Tower 0 +1*xX" with Scope:Tower, whose event is "Add fixed entire group to ComboSystem state"
I created an Event2 "End of turn" AND "Tower0+1xX" with Scope:Tower", 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 etc.
ADVANTAGE: Once the goal has been reached, each character can use MultiHits skills which increase their damage according to the hits they land.
DISADVANTAGE: You will have to have the patience to create the 2 events for each group of enemies in the game (time to see if there is not a simpler solution ^^)
I had forgotten this plug-in xD
Thank you for reminding me, it's true that it takes 3 seconds and that it is perfect for my use, thank you very much ^^