| 08-10-2006, 04:06 AM | #1 |
I need a dummy ability to react as a single click as fast as possible reaction button with no target. Basically a button that acts the same way as Stop except I'll be able to detect it with triggers. Two questions: 1) What base ability will be the fastest/best for this purpose and won't have any of that "pause" that you get when you use an ability. 2) What is better used to detect the click, "Finishes Casting an Ability" or "Issued an Order with No Point" as the unit generic event. 3) If I end up using the Issued an Order event, is it faster and is it even possible for me to cancel the order so it's as if nothing happened except a quick button press. |
| 08-10-2006, 04:41 AM | #2 |
The ability would be either berserk or windwalk. The event, "Begins casting an ability" if the button doesn't have mana cost/cooldown, otherwise "Starts the effect of an ability" If you want to stop casting of a spell just use "Begins casting an ability" pause the unit, order it to stop and unpause the unit. |
| 08-11-2006, 12:10 AM | #3 |
Vex, it seems that the Begins casting an ability event triggers on all abilities with the same base code, therefore I can't make two separate abilities trigger differently if they're both based on berserk/windwalk. Is there any way for me to have more than one ability that works this way? |
| 08-11-2006, 12:33 AM | #4 |
You can use the events that he said. But you need a condition that checks if the Ability being cast is Equal to "your ability". Or otherwise every ability would run the trigger. |
| 08-11-2006, 12:43 AM | #5 |
Hmm... strange, I'm doing an abilityID comparison and for some reason both my abilities are triggering. |
| 08-11-2006, 12:51 AM | #6 |
Weird, no 2 abilities can have the same rawcode. |
| 08-11-2006, 02:56 AM | #7 | |
Quote:
|
| 08-11-2006, 02:33 PM | #8 |
Even if I set orderid to none in the abilities editor and even though the actual comparison is an integer comparison of GetAbilityID() and 'A00A'? ...or did you mean that because they have the same order ID, when you click one it automatically clicks the other as well? |
| 08-11-2006, 03:02 PM | #9 |
The latter. If they have the same order ID, it will try to cast them both, but only one can be cast at a time. (Unless it's berserk/windwalk, in which case both will cast) |
| 08-11-2006, 03:36 PM | #10 |
You can not change order ids by just typing another one in the "order"-field. I guess that was missleading. |
| 08-11-2006, 04:42 PM | #11 |
only for channel and spellbook |
