Is there a way to make a trigger apply to all units of one type? Say for example all zealots? Right now I have to to look for a catagory like Heroic but I don't want to depend on that if I can afford it.
The trigger I'm using is basically a critical strike trigger that says whenever a unit attacks to check a variable if it's within a set range then to do a random # bonus damage to target. But I want it to apply to only my custom unit of a certain type.
This sounds incredibly intesnive to check every time. What i would do is add a critical attack to your specific unit that only fires when a certain behavior is on the unit (validator). Make the region add the behavior to this unit when they enter the region and remove it when they leave. Probably want to add a condition that it be this type of unit so other units aren't running around with the dummy behavior on them but it's not a big deal either way.
Awsome thanks that worked. Now onto one of my other annoying triggers >.> I think this one is finally 100% done.
hehe i know the feeling :D I wonder what time it requires for majority to work with this new galaxy editor like with the editors from lets say warcraft :) So many people struggle with almsot every step atm. So good we have SC2Mapster Forums :D
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there a way to make a trigger apply to all units of one type? Say for example all zealots? Right now I have to to look for a catagory like Heroic but I don't want to depend on that if I can afford it.
what is the trigger supposed to do? i could make an example trigger, but its hard to use the right context w/o knowing
If you just want to do something for every unit of a type, use Pick Each Unit in Unit Group (Units in Region Matching Condition)
The trigger I'm using is basically a critical strike trigger that says whenever a unit attacks to check a variable if it's within a set range then to do a random # bonus damage to target. But I want it to apply to only my custom unit of a certain type.
@Reaperguyver: Go
This sounds incredibly intesnive to check every time. What i would do is add a critical attack to your specific unit that only fires when a certain behavior is on the unit (validator). Make the region add the behavior to this unit when they enter the region and remove it when they leave. Probably want to add a condition that it be this type of unit so other units aren't running around with the dummy behavior on them but it's not a big deal either way.
@torrasqu: Go
Awsome thanks that worked. Now onto one of my other annoying triggers >.> I think this one is finally 100% done.
hehe i know the feeling :D I wonder what time it requires for majority to work with this new galaxy editor like with the editors from lets say warcraft :) So many people struggle with almsot every step atm. So good we have SC2Mapster Forums :D