MV Auto Passive State

I need help for something

I used http://www.yanfly.moe/wiki/Combo_Attack_(MV_Plugin_Tips_&_Tricks) to create a Combo State.
But the goal is not to use a skill who give the state

My goal is to give to my character this Combo stat each turn and the combo state must reset to 0 each end turn.

I tried with http://www.yanfly.moe/wiki/Auto_Passive_States_(YEP) , but the combo state dont reset each turn.

How can i add to my character my combostate eact start of turn, and end (or reset) each end of turn ?

thx a lot
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 ^^)
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 ^^)
Yanfly's Base Troop Events plugin. Also, even without that, you can simply copy and paste entire event pages at a time, so it only takes a few seconds...that's not a high threshold for required patience 😛
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 ^^

Original thread: https://forums.rpgmakerweb.com/threads/auto-passive-state.152657/