Hey everyone, i have searched google and these forums and cant seem to find what i am looking for. I also tried figuring it out on the SC2 editor.
I am trying to give units agility but also in an icon or text when you select a unit. Kind of like when you drag over the weapon box on a marine it says weapon damage speed etc. Also how to make agility effect a dodge percentage.
Thanks for your help.
You need attributes, a type of behaviour. You can set the icon and tooltip in UI - Icon and UI - Tooltip. For making evasion a factor of agility you will need a stackable buff with a damage response that reduces damage received to 0 with a fractional chance of the damage response occuring. You then need two buff behaviours which add and subtract the stackable evasion buffs using requirements to calculate the ratio of your attribute to evasion %. For visuals you could then use a textkicker like that of the automated refinery to say miss.