| 06-10-2006, 12:58 PM | #2 |
Have you tried the other events, the "Begins Casting" and "Finishes Casting"? Edit: Hmm silly me, of course it only creates the illusions of the casting unit. You'd have to make the spell target an area or something. Or create a dummy caster for each picked unit. Something like "For each (picked unit) do actions (Create Dummy Hero) (Order last created unit to use X on picked unit)" I guess. |
| 06-10-2006, 01:24 PM | #3 |
It's because if you order the same unit to copy fx. 6 different units, it will only take the last one, since it takes a bit of time for it to do the order. Instead you should make a unit ability of the item ability. Create a caster for each unit which you then order to cast it on the picked unit. I have used this like hundred times, so I'm pretty sure at this. :) - Soultaker |
| 06-10-2006, 01:33 PM | #4 |
there is the little problem with item illusions not having an orderstring and requiring an order id instead so he would need JASS. bad: Unit - Create 1 Dummy Hero for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing (270.0) degreesgood: Unit - Create 1 Dummy Hero for (Owner of (Casting unit)) at (Position of (Picked Unit)) facing Default building facing (270.0) degreesNot really *good* though because it has memory leaks |
| 06-10-2006, 03:27 PM | #5 | |
Quote:
I think "Sway of Illusion" (his ability) is not based on Item Illusion, so that won't be a problem. That is if I'm getting you right.. You are right about the orderID, you would have to either use JASS, Custom Script or WEU. But it's so little, so it shouldn't be a problem. - Soultaker |
| 06-10-2006, 03:37 PM | #6 |
The dummy ability is based of - item - illusion. (Not one hero initially casts). I made an item with this ability. Then gave item to dummy hero, ordered him to use it. |
| 06-10-2006, 05:31 PM | #8 |
Next time when you create a simmilar spell, convert it to jass and use rawcodes for the abilites. |
| 06-10-2006, 05:55 PM | #9 |
You only ever have one unit in that temporary group at a time, so it 'randomly' picks that unit every time. |
