Say for instance I have this ability called destroy. When activated, kills triggering unit, picks units around it and gives to the owners lets say 50% of the gold it normally would give if killed normally.
Is that possible? I know you can work with life, mana, point value etc. So, can I work with Gold bounty?
Point value, if you aren't using that, or via two variable arrays (one of unit type, and one of average bounty), and check against that (possibly more efficient actually if you can change the unit type into a string to use game cache for that, so you don't have to check against a loop, but I'm not sure if you can do that).