| 09-28-2004, 11:03 PM | #1 |
How can I destroy multiple lightning effects from a trigger? Or how can I add the lightning effects from the trigger into an array? I am making an ability that uses these lightning effects, but I want to be able to have the lightning effects to be destroyed. :\ |
| 09-28-2004, 11:46 PM | #2 |
idk if those count as a special effect but if so make a variable called lightning effects and set it to special effects then do set lightning effects = last created effects then when you want do destroy lightning effects (the variable) |
| 09-29-2004, 12:07 AM | #3 |
That doesn't work. I have about 16 lightning effects created in a row for a channeling spell, and I need to know how I can destroy those when the unit stops channeling the spell or if the unit is interupted. When you set the variable, the only choice is to set the variable to last created lightning effect. So I don't see a way at the moment to do this. :( |
| 09-29-2004, 06:15 AM | #4 |
After each lightning you need the actions; Set SpecialEffectsVar[Integer] = Last created special effect Set Integer = Integer + 1 Then when you want to remove the special effects; Loop Integer A 1 to *How many lightning effects you have* Destroy special effect SpecialEffectsVar[IntegerA] After the loop ended you should also reset the integer var, Set Integer = 0 Like so. Regards Dead-Inside (SpecialEffectsVar is a Special Effects Variable Array, Integer is a simple integer variable) |
| 09-30-2004, 02:11 AM | #5 |
Thanks for the triggers! There's just one thing: At first it didn't work, and then I realized that lightning effects are not classified as special effects. Go figure. So I had to change the special effects var array to lightning array and the destroy special effects to destroy lightning. Why couldn't they just have made these as special effects? I spent forever trying to figure this out.... I might also note that the Integer var needs to be 1 as default, or else the first lightning effect won't be destroyed. Course you probably knew this, but I'm somewhat new to triggering. :\ |
| 09-30-2004, 05:39 AM | #6 |
Oh, sorry, I didn't know that myself :). |
