Making "all" attack that grow/decrease in power for each target hit?

Not sure if this requires plugin because it seems like it can be done with formulas that i dont know of.

For example, if theres 5 enemies, i want the damage to be 10 to the first enemy hit (the leftmost one in front-View), then 12 to the next one, then 14, 16, and finally 18 to the 5th enemy. I also wanted to do the other way round where the damage decreases for each hit. I think its a good way to diversify the multitarget skills.

Original thread: https://forums.rpgmakerweb.com/threads/making-all-attack-that-grow-decrease-in-power-for-each-target-hit.144072/