| 04-25-2007, 05:11 PM | #1 |
I need to add a periodical mana cost to defend... just like the immolation thing... any suggestions? this is how it looks like: And it's not working Trigger: Defend Cast
Trigger: |
| 04-25-2007, 05:14 PM | #2 |
Add units to an array when they cast defend, remove them when they cancel it. Then remove mana from every unit in the array, periodically. Or if you don't have too many units on the map, you could create a new trigger for every unit that is casting defend in JASS, and destroy it once the unit dies/cancels defend. |
| 04-25-2007, 05:18 PM | #3 |
The Trigger atill isn't detecting that the unit activated defend... |
| 04-25-2007, 05:28 PM | #4 |
If that helps ok, but I have tried your trigger and the event seems not to catch defend. If I change it to Trigger: Unit - A unit Issued OrderTrigger: Conditions![]() (Issued order) Equal to (Order(defend)) |
| 04-25-2007, 05:31 PM | #5 |
Thx a lot dude! |
| 04-26-2007, 04:16 AM | #6 |
You can also detect when it stops defending by replacing "defend" in the above condition with "undefend". |
| 04-26-2007, 08:44 AM | #7 |
Trigger: If unit's mana is not zero they'll cancel the skill ? ![]() |
