Allright so im making a tower defense. One of the towers buff other ones with a +atkspd% buff. The ability-fire is done in the data editor and the rest with triggers.
I've gotten the auto-cast to work but once i have 2 of the buff-towers they may buff the same target (basically wasting one of the buffs, as the effect doesnt stack - and is not meant to).
Basically i want to prevent an auto-cast of the buff on the target if its already affected by that particular buff.
I have not found a vaildator that helps me yet but i guess there has to be one that would help me? Is there perhaps another way to solve the problem?
I didn't realize there were validator templates that werent already completed validators to use. I used the template for 'unit compare behavior count', works like a charm. I also used a template for "unit firing weapon" to make it only buff towers 'in action'.
Allright so im making a tower defense. One of the towers buff other ones with a +atkspd% buff. The ability-fire is done in the data editor and the rest with triggers. I've gotten the auto-cast to work but once i have 2 of the buff-towers they may buff the same target (basically wasting one of the buffs, as the effect doesnt stack - and is not meant to). Basically i want to prevent an auto-cast of the buff on the target if its already affected by that particular buff. I have not found a vaildator that helps me yet but i guess there has to be one that would help me? Is there perhaps another way to solve the problem?
Thank you.
Try the Unit Compare Behavior Count validator
I didn't realize there were validator templates that werent already completed validators to use. I used the template for 'unit compare behavior count', works like a charm. I also used a template for "unit firing weapon" to make it only buff towers 'in action'.
Thank you for this.
A Target Sort that looks for units without the buff might also work.
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