MZ A skill that puts all EXISTING buffs to a given number

Say, for instance, a skill that puts to 10 all existing buffs of a character, but does not add a buff per se. Is this possible?
Say, for instance, a skill that puts to 10 all existing buffs of a character, but does not add a buff per se. Is this possible?
if youre using Turan's Eval Tags or visustella's battle core then you'd be able to do something like this in the notebox with the appropriate tags

Code:
for (var i = 0; 1 < 8; i++)
  if (a.buff(i) > 0)
    a._buffs[i] = 10;

otherwise you could try and put it in the damage formula.

Original thread: https://forums.rpgmakerweb.com/threads/a-skill-that-puts-all-existing-buffs-to-a-given-number.180911/