Friend of the woods the closer he is to a tree, the lesser visible he is.
set transparency = (ability_range - distance)/ability_range in %
set level of evade = round(transparency*10) (9% chance to be missed per level, 10 levels -> 90% on max - you may allways get hit by a stray arrow...)
Natures guidance the more 'natural' the ground is, the faster is the troll
order all terrains in your map into an array
pick the current ground the troll is on
set his movementspeed according
<Leader>/<Beloved> of the tribe The troll calls for the rest of his ribe, asking them to aid him in battle.
for Integer A = 1 to <max number of trolls>
- get position of closest tree
- create troll at (getted position)
- add expiration timer to (last created unit)
- order (last created unit) rightclick <our troll>
so thats all i have in mind right now - hope you get some ideas ^^