MV How to Use Notetags with Parameters?

Personally I think I'd just put Resist State traits on the "higher" states though, e.g. for A -> B -> C:
  • B resists A
  • C resists B and A.

You mean, directly in the Database?

I'm not sure what you're asking here. If you want to allow adding the same state a limited number of times, you could track how many times the state has been added and use that to decide when to allow adding it?

The idea would be something like:

JavaScript:
if (currentStack < maxStack){
    apply the same state again;
}
// The final result I want to achieve is to increase the damage
// done with each stack using the Element Rate Trait
You mean, directly in the Database?
Yes.

The idea would be something like:

JavaScript:
if (currentStack < maxStack){
    apply the same state again;
}
// The final result I want to achieve is to increase the damage
// done with each stack using the Element Rate Trait
For a stack counter, consider looking at how the core scripts handle _stateTurns (rpg_objects.js): you could add a similar counter for stacks.

Traits are fetched from states through the traitObjects method of Game_BattlerBase. So maybe just add duplicate copies of each stacked state there?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-notetags-with-parameters.153216/