i have made a requirement before where a trainability gets disabled if a certain player posses more than 2 units of the same unit type . Now i have a unit and want an ability to disable when there are more than 2 of the same unit types on the entire map not just owned by a player, is this possible with a requirement?
I don't believe requirements can be used to reference units beyond those owned by the ability's unit's owner. What you could do is give the unit type a stackable global aura and have the ability requirement check that the aura stack upon the unit is no greater than 2.
Hi,
i have made a requirement before where a trainability gets disabled if a certain player posses more than 2 units of the same unit type . Now i have a unit and want an ability to disable when there are more than 2 of the same unit types on the entire map not just owned by a player, is this possible with a requirement?
thx
@Rice87: Go
I don't believe requirements can be used to reference units beyond those owned by the ability's unit's owner. What you could do is give the unit type a stackable global aura and have the ability requirement check that the aura stack upon the unit is no greater than 2.
In short Buff that is disabled by a Enumerate Area validator which uses a Unit Type validator.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
That's actually the inverse of what I was saying, but that would work just as well too.
@Khalanil1: Go
ah great idea man, it works :]