Traits akin to Auto Chess/Teamfight Tactics

So you guys know how recently DotA and LoL made Autobattlers? You know how they gave certain characters specific traits with a bonus for having a certain number of said trait? Is there some kind of script that lets you label certain characters in your game as having certain traits and giving them bonuses depending on said traits?

EDIT: Something more specific since post below this requested as such.

Say there's a Trait called "Demon", whose effect is (In terms of RPGMaker): "A Demon that uses the Attack Command converts a percentage of damage dealt to foes into MP", with the Trait applying only if you have a certain number of Demons.

Say there's another Trait called "Knight" who has the effect: "The Entire Party gains a percentage of DEF". Same rules apply. You need a certain number of Knights.

Now lets say the Demon Trait buff is 2 for 1%, 3 for 2% and 4 for 3%, while the Knight Trait gives +50% DEF for 2, +75% DEF for 3 and +100% for 4.

Assuming you're limited to a party of four, and you have someone in your party with just the Demon Trait, another with just the Knight trait, another with both the Demon and Knight Trait and the last one has neither trait, then every party member will gain the +50% DEF Buff while the Demons will be able to drain 1% of the damage they deal to an enemy into MP.
It's a cool idea (I personally do play TFT), but I recommend either linking a video or offering a much more detailed explanation of how it works, in order to give yourself the best chance of finding someone who can program this. Additionally, you may want to specify what kinds of bonuses you're going to want to enter, or whether you'd be satisfied with adding States (which you can use to add Skills, change Stats, and so on) as the bonus.
Okay then. I'll post that in my first post.
I feel really bad about bumping this. But I honestly want to know if something like this would be possible to script and/or is available.

@Anthem , please do not bump your topic unless it has been 24 hours later since your last post. You can review our forum rules here. Thank you.

Holy . I thought the limit was shorter than that. Sorry. :S
But I honestly want to know if something like this would be possible to script and/or is available.
If it's about the possibility, it is highly possible.
If it's about availability, that's idk.

Personally, I like stat manipulation. A request like this is stat manipulation. I can give you or anyone a headstart. First, the number of trait in active battler.
Code:
class Game_Party
  def num_of_trait(trait)
    battle_members.select {|m| m.actor.note.include?(trait)}.size
  end
end
This will be a universal note tag checker.
If you tag your actor (and specifically actor note tag, not class) with <bishop> and you have two of them in the active battle member, and you use a script call $game_party.num_of_trait("<bishop>") to assign it to a variable. The variable value will be 2.

How can this be useful?
This can be used to manipulate standard parameters. For example, Bishop will multiply your magic attack by 10% if you have 2 and +10% more per additional bishop
Code:
class Game_Battler
  alias chessboard_param_rate param_rate
  def param_rate(param_id)
    val = chessboard_param_rate(param_id)
    return val unless actor?
    case param_id
    when 4 # 4 is the ID for the magic attack
      val *= 1.0 + (($game_party.num_of_trait("<bishop>") - 1) * 0.1 )
    end
    return val
  end
end
It probably could be more friendly if the script is made with ease of use in mind. But if you're down to learn how to write your own script, you can add your own twist there that the public script usually doesn't have to offer.
I would like to learn some bit of scripting in the near future, but for right now I'm okay with one that's made with ease of use. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/traits-akin-to-auto-chess-teamfight-tactics.121360/