| 12-10-2003, 05:47 AM | #1 |
Here's the problem. I have an ability in my map called Counterspell. It's based upon Abolish Magic, and can be set to autocast tol remove buff and stuff. It can also be manually cast on summons to deal damage. My problem comes with it's third feature: channeled spell interuption. I decided to solve this problem using a dummy unit with a no-damage, .01 second stun storm bolt. I was going into the triggering and came upon a problem. There are two ways I could find for the triggers to detect the spell: "issued order on object," and "casting an ability." I have issues with both of these. If I use the order one, the trigger will kick off immediatly. This isn't a problem when the target is within the Counterspell cast range, but the order is when you command a unit to do something, not when they actually get within range to do it. My hero could interupt a channeling spell from across the map. And I can't find a way for triggers to detect the target of a cast ability when using the other method. Edit: Another problem I'm having is triggering involving turning abilities off. For example, I have another hero who uses immolation. When he turns it on, a trigger tags him with a special effect. But how to I detect when he turns it off? For some reason the "issued order = (turn off order)" doesn't seem to be working. |
| 12-10-2003, 10:12 AM | #2 |
There are only 2 ways to get the "Target of spell being cast". 1. Use two triggers, the first triggers event is "Unit is issued order targeting point" event, and you make sure the order is your spell in your conditions. Then in the action set the target to a variable. And then in your "Unit finishes casting ability" event trigger, you call apon the variable set in the previous. 2. Get WEU. It has a fuction called "Get target of last command of unit" which can be used in conjuction with "Unit finishes casting ability" triggers. Unfortunatly, WEU has a B-net problem with its maps because of the imported blizzard.j (a problem which PitzerMike has already fixed for his next update of WEU, but he hasn't released it yet. He estimates a January release of his updated version, which he says will be able to fix maps made in the old WEU to work on B-net.) As for you second problem, have you tried a "Finishes casting ability" or "Stops casting ability" event, because turning it off would be finishing it... |
| 12-10-2003, 04:25 PM | #3 |
I'll try the first one. It looks workable for me. So deactivating Immolation/Divine Shield/Avatar/etc. counts as "Stops casting an ability?" I'll give it a shot. |
| 12-10-2003, 08:19 PM | #4 |
All right. Problems solved, both of them. Many thanks, Pain. |
| 12-10-2003, 09:32 PM | #5 |
Glad to be of assistance. :D |
