| 08-12-2003, 03:05 AM | #1 |
I'm using the TFT spell editor, and trying to make a trigger-assisted spell. There is a function for "Event Response - Casting Unit", but not any for "Event Response - Unit being cast upon". How can I access the unit being cast upon? I tried another method, that didn't work, with Event being Unit is issued an order targetting an object, and condition being issued order is equal to spellorder string. Any help is appreciated -Enfo |
| 08-12-2003, 03:17 AM | #2 |
You have to do it with the "Unit is Issued an Order" method. Just make sure you're specifying the right orderstring in the condition (you have to use the orderstring of the ability that your custom ability is based on) |
| 08-12-2003, 03:33 AM | #3 |
Great thanks! It works. Turns out you can't use custom order strings. How weird. |
| 08-12-2003, 04:43 AM | #4 |
The problem with using "Is Issued an Order" can be that the order is actually issued before any of the costs (mana, gold, cast time) resolve or the cooldown is set. A work around is to use two triggers: 1 - A unit is issued an order targeting an object. Check the order type and the unit type, save the target in a variable. 2 - A unit begins casting an ability. Check the unit type and ability type, use the variable saved in Trigger 1. |
