bananaHUNT
You can change this now in User CP
- Reaction score
- 55
Hiya, I've been trying to make an ability based on the Defend ability (from footmen). However I can't make it detect when defend is on/off.
I tried 'A unit starts the effect of an ability' first, but that didn't work at all. Then I searched some and a guy said to do this; but it still doesn't work..
The saddest thing is that he had made a testmap for it, but it's back from 2007 and no longer available.
What I have now:
ps; everything with the dummy unit and ability is fine, i checked it with a different ability. just the defend detection is flawed.
thanks for your help!
I tried 'A unit starts the effect of an ability' first, but that didn't work at all. Then I searched some and a guy said to do this; but it still doesn't work..
The saddest thing is that he had made a testmap for it, but it's back from 2007 and no longer available.
What I have now:
Code:
Essence
Events
Unit - A unit Is issued an order with no target
Conditions
Or - Any (Conditions) are true
Conditions
(Issued order) Equal to (Order(defend))
(Issued order) Equal to (Order(undefend))
Actions
Set EssenceCaster = (Casting unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(defend))
Then - Actions
Unit - Create 1 Dummy for (Owner of EssenceCaster) at (Position of EssenceCaster) facing (Facing of EssenceCaster) degrees
Unit - Order (Last created unit) to Human Priest - Inner Fire EssenceCaster
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Else - Actions
Unit - Remove Essence buff from EssenceCaster
thanks for your help!