Help with a stackable state system? (Common Events)

Hi there! I've used this forum before for my Vx Ace woes and you guys were a big help. Recently, i've been trying to implement a "stackable buffs" system into my game. I've done this by creating stat-up states and giving them tiers, such as "ATK UP I, ATK UP II, ATK UP III", etc. I then attempted to create a system based on these, utilizing common events, variables, and dummy states to have the buffs advance to the next tiers. Here's how it would be inserted into an item/skill's effects:
ATK up formula for item.PNG

Unique, dummy states would be applied for each party member, which would then follow into the common event itself, which utilized these. Here is the page for the first actor, Lenny.

ATK_Solution1.PNG

This created a system where each consecutive use of an ATK/stat booster would increase it to the next tier, swapping states until stopping at the highest. This worked well if it was just Lenny in the party, shown in this video:



However, the problem arises when I modified the common event for more than one member of the party, this being the 2nd actor, Bob. Here's the page i created for him:

Atk_Solution2 (BOB).PNG

As stated before, each party member would have unique dummy states to be used in the common event as not to overlap with eachother. Both Lenny and Bob have unique states and variables for the system. This didn't seem to work though, as if they both used ATK up boosters in battle, the effects would apply to the both of them eitherway, shown here:



It seems like there's things either overlapping or trying to execute at the same time. The dummy states failsafe seemed to have no effect. It's even more confusing when it affects both at the same time, even if the other hasn't used an item yet. If anyone may know of a way to fix this, an easier way, or of any scripts/techniques i could use, I would greatly appreciate it! Thank you for reading, have a good one!
Perhaps using this or this script would be better?
You're a lifesaver! Thank you so much, these should work fine. I'm not quite sure how I haven't found them already. 😅 Regardless, im glad I don't have to tangle with common events again, haha. Thanks a bunch, Ebanyle. This thread can be considered solved! This forum is the bomb! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-stackable-state-system-common-events.166640/