roll out-like skill

I want to create an ability that doubles the damage each turn in a row that a character uses it.
I tried using a variable, but it do everyone which use it increase the power and i just want that specific character to increase the move power.
How can i solve it?
You'd use Yanfly's Buffs and States Core, and Auto Passive States.

Put a passive state on the skill.

On the notetag for the state, put:
Code:
<Custom Initiate Effect>
if (this.isSkill() && this.item().id == 42)
{
    user.damStacks = user.damStacks || 0;
    user.damStacks++;
}
else
    user.damStacks = 0;
</Custom Initiate Effect>
Replace the number 42 with the ID of the skill.

And in the damage formula for the skill, use a.damStacks as a multiplier.
Do you only want the damage being multiplied each time it is used?
iirc, there is a second part to that skill, and it's that if you use a different skill or the skill misses, it resets the damage stacks.
Do you only want the damage being multiplied each time it is used?
iirc, there is a second part to that skill, and it's that if you use a different skill or the skill misses, it resets the damage stacks.
That's how I interpreted the OP - that's what the else branch in my code will do (well, the using a different skill part, it doesn't check for a miss).

If that's not what's desired, those two lines can be deleted.
Do you only want the damage being multiplied each time it is used?
iirc, there is a second part to that skill, and it's that if you use a different skill or the skill misses, it resets the damage stacks.
yeah it has to be used in consecutive turns or the power will reset

You'd use Yanfly's Buffs and States Core, and Auto Passive States.

Put a passive state on the skill.

On the notetag for the state, put:
Code:
<Custom Initiate Effect>
if (this.isSkill() && this.item().id == 42)
{
    user.damStacks = user.damStacks || 0;
    user.damStacks++;
}
else
    user.damStacks = 0;
</Custom Initiate Effect>
Replace the number 42 with the ID of the skill.

And in the damage formula for the skill, use a.damStacks as a multiplier.
it worked, Thankyou!

Original thread: https://forums.rpgmakerweb.com/threads/roll-out-like-skill.171784/