| 08-09-2006, 03:04 AM | #1 |
I'm making a spell that is sort of like Purge and Earthquake put together. What supposed to happen is that every unit in the 300 AOE of Earthquake get hit by Purge. I have to trigger that, but since Dummy Units are the ones who are going to use Purge, how do I make it so that each unit in the AOE get the Purge buff? If I'm not descriptive enough, then please say so. Thanks in advance. |
| 08-09-2006, 03:17 AM | #2 |
| 08-09-2006, 03:25 AM | #4 |
Heh unit will not cast ANY spell... |
| 08-09-2006, 05:27 AM | #5 |
So, even if I turn the Purge's cooldown to 0, one Dummy unit will purge all of the ones in the AOE? That's kinda strange. I'll try it out. Thanks. |
| 08-09-2006, 08:18 AM | #7 |
That won't work, even with 0 cooldown there is a cast time for the spell. You will need to create a new dummy for each unit in the AoE and make it cast purge on that unit. |
| 08-09-2006, 12:53 PM | #8 |
Yes, blu is right. There is the cast animation time and such (also if you put cast animation to 0 seconds, it will take time to cast etc...). Another thing: it is not wise to use "Last Created Unit" in a trigger after a wait (it should be replaced with a local/global variable). |
| 08-09-2006, 01:54 PM | #9 |
Best way to use locals inside triggers like this. |
| 08-09-2006, 03:59 PM | #10 |
I'm confused. Even if I create a number of Dummy Units equal to the number of units in the AOE, how will I know whether if they each cast Purge on each unit in the AOE or cast Purge on just one person in the AOE? I don't quite understand how to use local variables. Someone mind telling or directing me someplace? |
| 08-09-2006, 04:13 PM | #11 |
| 08-09-2006, 05:23 PM | #12 |
Yep, Griff is right. Although it was written himself, it is right! |
| 08-09-2006, 07:04 PM | #13 |
Purge is instant cast. It is possible to make one dummy cast purge on multiple units in the same moment You only need a unit with cast backswing point and stuff like that set to 0. Just remember to move the unit to the position of the target and to reset cooldown and mana / have the spell cost 0 cooldown and mana. |
| 08-09-2006, 07:20 PM | #14 |
Is that a special attribute of purge? I'm fairly sure it isn't like that for all spells. |
| 08-09-2006, 07:22 PM | #15 |
Almost every spell is instant cast. So I see your "fairly sure" as "I did not try to change the fields of the dummy unit". In fact, this is the first reason I got to make the caster system. |
