Consecutives Hits = Lower/Higher Damage

Hi!


I want4ed to make skills that when used consecutives times against the same target, it deals more or less damage, applying also to random multi-hit skills. Examples:





> A skill that deal 10 hits in random targets, but consecutives hits on the same target will deal 10% less damage, until a cap of 30%


>>> 1st hit: 100%


>>> 2nd hit: 90%


>>> 3rd hit: 80%


>>> 4th/5th/6h .. 10th hit: 70%


> A skill with a low damage, but when used consecutives times in different turns in the same target, will deals 20% more damage on it, until a cap of 40%


>>> 1st hit: 100%


>>> 2nd hit: 120%


>>> 3rd and following hits: 140%

Can anyone help me? I tried to use Yanfly scripts but I don't even know how to start @_@ 
You could use Mogunter's Chain Command plugin for this. You would set up the first skill to that will lead into the next skill and tweek the battle formula accordingly.
Just yesterday Yanfly posted a Tips & Tricks showing how to do such types of skills (Chain Lightning in the example he showed) with YEP.
You could use Mogunter's Chain Command plugin for this. You would set up the first skill to that will lead into the next skill and tweek the battle formula accordingly.



Oh! I'll try to use this plugin in my project! Thx!

Just yesterday Yanfly posted a Tips & Tricks showing how to do such types of skills (Chain Lightning in the example he showed) with YEP.



Yeah, but this script does not work with a skill being cast in different turns. I could use it somehow... I'll play with the code and try to make it it work. thankz!

Original thread: https://forums.rpgmakerweb.com/threads/consecutives-hits-lower-higher-damage.61418/