How to decrease stat on target hit?

● ARCHIVED · READ-ONLY
Started by Milennin 4 posts View original ↗
  1. Another day, another thread by me.


    This time, I'm looking for a way to decrease the stat of a target struck by a certain skill. This effect must be applied immediately and it must be able to stack indefinitely, so a simple debuff doesn't work (I think?)


    Example:


    During battle, Enemy uses his attack a total of 9 times:


    3x on Hero 1. This hero has its defence lowered by 6 points.


    4x on Hero 2. This hero has its defence lowered by 8 points.


    2x on Hero 3. This hero has its defence lowered by 4 points.
  2. if the effect is permanent, then you can simply add the command to reduce the stat on the damage line


    If it is to be reset after the battle, then you'll need a plugin. Because states and buffs don't work that way.
  3. Andar said:
    if the effect is permanent, then you can simply add the command to reduce the stat on the damage line


    If it is to be reset after the battle, then you'll need a plugin. Because states and buffs don't work that way.



    What's the text for doing so? I tried b.def - 2, but that didn't work.
  4. Driftwood Gaming made a tutorial on Stat-Based Damage maybe this can help you.