I'm trying to get a boomerang weapon working, which hits all foes, but I don't know how to go about making the attack do less damage to each subsequent enemy struck after the first one. Need some assistance on this.
EDIT: Should probably note what my damage formula is, eh?
a.atk *3/2 - (b.agi/2 + b.def *2)
If you have Yanfly's action sequence packs, you can do something like this:
<Whole Action>
eval: user._boomerangModifier = 1;
perform action
</Whole Action>
<Target Action>
action animation: target
wait: 15
action effect: target
eval: user._boomerangModifier *= 0.9;
</Target Action>
<Follow Action>
wait for animation
eval: delete user._boomerangModifier;
death break
perform finish
</Follow Action>
Then, modify your damage formula as follows:
(a.atk *3/2 - (b.agi/2 + b.def *2)) * (a._boomerangModifier || 1)
Now, when used, it'll hit the first enemy for full damage, then that damage will decrease by 10% with each additional foe struck. If you want the decrease to be more drastic, change the 0.9 to something else, like 0.8 for 20%, 0.7 for 30%, etc.