Don't know how to create that Skill.

Hi !

It's the first time I post here, sorry for my English !

I would like to create a Skill, I try everything, but it's too difficult for me !

It would be something like :

Your first hit = 100 damage,
second turn if you attack the same target = 100 damage again
if you attack another target = 120 damage


And more you hit the same target, more you will hit stronger the other target.

For example, for 3 turns you hit 100 damage to the first target
On the 4th turn, you will do 240 damage if you change target.


Don't know if it's clear for you ! Hope someone can help me !

I've moved this thread to MV Support. Thank you.

This would be easy enough to make, but I need to know something first: What's supposed to happen to the damage counter when you hit the other target? After dealing bonus damage, does the counter reset?
This would be easy enough to make, but I need to know something first: What's supposed to happen to the damage counter when you hit the other target? After dealing bonus damage, does the counter reset?

Yes, the bonus damage reset every time you change target
So the second target will take 120 and then 100 and if you change again 120 ... ...
Okay, it's ugly but I think this might work. Goes in damage formula:

Code:
c = a._skillRampUp = a._skillRampUp || {}; if (c.last === b){ c.bonus = 0; c.counter++; } else { c.bonus = c.counter || 0; c.counter = 0; c.last = b; }; 100 + 20 * c.bonus;

The 100 is the base damage, and the 20 is the bonus damage (20 per additional hit dealt to the previous target) so change them around as you see fit.
Okay, it's ugly but I think this might work. Goes in damage formula:

Code:
c = a._skillRampUp = a._skillRampUp || {}; if (c.last === b){ c.bonus = 0; c.counter++; } else { c.bonus = c.counter || 0; c.counter = 0; c.last = b; }; 100 + 20 * c.bonus;

The 100 is the base damage, and the 20 is the bonus damage (20 per additional hit dealt to the previous target) so change them around as you see fit.


It's work well, but if i have 2 similar skills, like lvl 1 and lvl 2, if i use lvl 1 it up damage for the lvl 2 as well.

I use all the needed plugins if it's easier for you to do it.

Edit : Nvm, i fix that !

Edit 2 : If i can be annoying, i have another request
Don't know how do to it again, but something bit similare,

Do physical damage. (100% on target a)
Do physical damage on the initial target when the skill is launch on another target. (100% on target a and 100% on target b)
The damage when you change target are upgrade if you hit twice the initial target. (200% on target a and 100% on target b)
Reset the counter everytime you change target.
Bump.

I don't know how to do this :

Do physical damage. (100% on target a)
Do physical damage on the initial target when the skill is launch on another target. (100% on target a and 100% on target b)
The damage when you change target are upgrade if you hit twice the initial target. (200% on target a and 100% on target b)
Reset the counter everytime you change target.

Original thread: https://forums.rpgmakerweb.com/threads/dont-know-how-to-create-that-skill.120400/