Me again. I saw back a while ago a thread about a commander having locust'd unit following him around and doing exactly what he did, so I decided to try it out on my own (I never knew what became of the thread and I can't find it :S). Basically what happens, a Hero learns an ability, a few units with the "locust" ability are spawned near him, (This is to keep it like a passive army near him at all times), and whenever the Hero is ordered something, let's say 'attack' for example, all the other little locust'd units will attack his target. But they will not attack unless he is ordered first.
I've tried triggers such as:
And
...but neither seem to work. The spawning is fine, and the following works perfectly, but they just wont do what the Hero does.
I've tried triggers such as:
Code:
Kobold Army1
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Kobold Army
Actions
Unit - Create ((Level of Kobold Army for (Triggering unit)) x 3) Kobold Soldier for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Set KoboldComm = (Learning Hero)
Set KoboldArmy = (Last created unit group)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(smart))
(Issued order) Equal to (Order(attack))
Then - Actions
Unit Group - Order KoboldArmy to Right-Click (Target unit of issued order)
Else - Actions
Unit Group - Order KoboldArmy to Follow KoboldComm
And
Code:
KoboldAttackTest
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Issued order) Equal to (Order(smart))
(Issued order) Equal to (Order(attack))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(smart))
Then - Actions
Unit Group - Order KoboldArmy to Right-Click (Target unit of issued order)
Else - Actions
Unit Group - Order KoboldArmy to Follow KoboldComm
...but neither seem to work. The spawning is fine, and the following works perfectly, but they just wont do what the Hero does.