Is there any limit for how many abilities can be added to one unit via trigger?

Level 3
Joined
Mar 26, 2019
Messages
55
In short: My map has a lot of "multi-level summoning abilities" where the summoned units have increased stats according to ability level. Pretty common, right?
The problem is that I'm lazy and don't want to make 10 units for every ability. So I intend to shortcut it by a simple "HP+50" ability that would be added multiple times to any unit summoned into the field. But at a high level, summoned units can have more than a hundred "HP+50", plus whatever abilities that don't support multi-level (yes, max HP+ doesn't support it)
So, I wish to ask: Are there any limits to the number of hidden abilities like "HP+X" or "damage+Y" a unit can have? Should I stack hundreds of "HP+50" or write a function to divide the bonus HP into a sum of 10s, 100s, and 1000s? No need to worry about "What if you have to remove the bonus" since it only applies to summoned units and would be gone if the unit die.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
I don't think there's a limit. You probably would've hit it by now if there was one.

Anyway, if you're on version 1.31+ then you have access to much better alternatives to the approach you're using now:

1) A lot of Actions have been added to modify unit stats directly:
  • Actions
    • Unit - Set Max HP of unit to (Max HP of unit + 50)
2) You have Actions to modify the data fields of abilities which is extremely powerful:
  • Actions
    • Set AbilLevel = ((Level of Chain Lightning for (Casting unit)) - 1)
    • Set AbilDamage = (Real((Intelligence of (Casting unit) (Include bonuses))))
    • Ability - Set Ability: (Unit: (Casting unit)'s Ability with Ability Code: Chain Lightning )'s Real Level Field: Damage per Target ('Ocl1') of Level: AbilLevel to AbilDamage
^ This applies to the unit's specific copy of the ability. There are also Actions to modify an Ability universally as well if need be.

3) You have the above Ability Field actions integrated into a powerful system that will handle ALL of your stat needs:
^ I highly recommend using this throughout all of your triggers rather than stacking Abilities.
 
Last edited:
Top