I have my defence map. And in there i try to make "creeps spawning" for attackers with random armour type. I try to make this with root/uproot ability. I use these triggers:
Everything work good except that after ability that give to unit random armour type they lose movement capabilities.
sry for bad english
Code:
armourtypes
Events
Map initialization
Conditions
Actions
Set armour[1] = Unarmored armour
Set armour[2] = Small armour
Set armour[3] = Normal armour
Set armour[4] = Medium armour
Set armour[5] = Heavy armour
Set armour[6] = Fortified armour
Set armour[7] = Hero armour
Set armour[8] = Divine armour
Code:
addarmour
Events
Unit - A unit enters (Playable map area)
Conditions
(Owner of (Triggering unit)) Equal to attackers
Actions
Unit - Add armour[(Random integer number between 1 and 7)] to (Triggering unit)
Unit - Order (Triggering unit) to Night Elf Ancients - Uproot
Everything work good except that after ability that give to unit random armour type they lose movement capabilities.
sry for bad english