I'm trying to make a blink ability which can be granted to any unit. I think I know how to do that in general, but this time I wanted to make the distance of the Blink effect to (8-unit's supply cost). Using switch effect and making the Validator+Blink effect for every supply cost possible in melee would do that, but then I remembered that there's a thing called "Accumulator".
Now, I never used accumulators before, so I have no idea of how to use it or how does it work at all. I looked into those in War3 Melee AI System but I couldn't understand it as I'm not familiar with XML. I also searched for an answer on google and here in Mapster, but I couldn't find one.
So, my question is: Is it possible to use accumulators to change the range of an ability/effect according to unit's supply cost? If possible, how can I do that?