Counting Buffs

Hey guys, I'm new to this forum and RPG maker in general.


I was just wondering if there was any way (with or without the use of a script) to count the number of buffs that are on a character and then use that number in a damage formula.


Example: Eric has two buffs on him, an attack buff and a defense buff. He uses a skill that counts the number of buffs that are currently on him (2) and does damage accordingly.


In other words, standard attack * number of buffs or in this case, Eric's attack power * 2.

Original thread: https://forums.rpgmakerweb.com/threads/counting-buffs.56115/