| 12-09-2008, 10:43 PM | #1 |
It does not affect critically the spell I'm making, but I just found that creating a dummy, giving it an ability and telling it to cast it takes time, even if the ability has zero casting time. So, as is, I have to call a TriggerSleepAction before removing the unit, or add an expiration timer to it, oherwise the spell isn't cast. Just out of curiosity, is there a way to have the spell cast instantly? |
| 12-09-2008, 11:02 PM | #2 |
removing the ability 'amov' and then setting the dummy caster's turn speed with triggers to any value will allow the caster to cast instantly. Aka, you can make a private unit within the spell scope and have it cast all the abilities you need for every instance of the spell. If its an instant cast, you can use 1 for all players, otherwise I would just use 1 for each player and make it an array. Now you don't have to worry about removing the caster ever. |
| 12-09-2008, 11:25 PM | #3 |
Cool, man. I didn't even think of using a scope, was doing it the old non-vJass way. What do I do with the unit in the meanwhile? Maybe nothing, if it has the elevator-thingie-invisible skin and locust, right? Yes, it is instacast. My hero casts a modified Banish (with increased mana and no movespeed penalty), the dummy casts modified Rejuvenation (with negative life and mana, and 3 levels to suit duration to the levels of Banish). If i set the Buff on the Rejuvenation to none, the unit gets the green art from Rejuvenation. So do I give it a dummy buff with art model: NONE, or... what? Then it will show a second buff icon, right (since Banish has one of its own)? ...or if I give it the same buff as the Banish, will it show only once? I'm conjecturing because I don't have W3 with me now, and no internet at home at the moment :( I'm toying around the idea of an ethereal race. Very hard, Heroes especially are very very unbalanced (for both good and bad). So far been fun, tho. |
