| 02-25-2004, 03:01 AM | #1 |
While creating multiple special effects that don't automatically disappear (they are looping special effects), the "Destroy last created special effect" trigger only destroys one of the many special effects created using this Unit Group trigger: After selecting those units and creating special effects on them, I want them to go away but can't get more than one to disappear. :/ All help is appreciated. Thanks. |
| 02-25-2004, 03:09 AM | #2 |
first of all, you will want to make a more drawn out way to FX, fust pick them all, then run an integer A loop that takes one, adds the FX, then removes it from the unit group. Here, il write it out for you. VARABLES NEEDED FX(effects array, size = to at least 100 preferably) i(integer) Tempgroup(Unit group, no array needed) ok, now for the trigger TRIGGER 1 EVENTS blah CONDITIONS blah ACTIONS pick every unit within (whatever) of (whereever) and add them to Tempgroup For loop integer A 1 to the number of units in Tempgroup pick random 1 unit in tempgroup create FX (whatever) set cast created special effects to FX(i) set i to i +1 remove picked unit from Tempgroup ok, that will store the FX for us, now we need to destroy them TRIGGER 2 (SFX cleanup) EVENTS Every(whenever) seconds ACTIONS loops for integer A 1 to i destroy FX(integer A) (loops ends) set i to 0 Hope this helped! EDIT: ALSO! please note that even though other effects go away, they are still stored in memory and thus must be destroyed to prevent very massive memory leaks!! |
| 02-25-2004, 03:13 AM | #3 |
Is that Jass? I don't know Jass, really. :/ But I'll see what I can do, thanks for help. |
| 02-25-2004, 03:14 AM | #4 |
no... thats not JASS... its normal GUI... well, not normal, I just dont have WE open, but those are based off GUI actions, if you dont do them you can use the search feature in the trigger editior. |
| 02-25-2004, 04:04 AM | #5 |
Crap. Sorry, I'm just tired and didn't even look at those instructions properly. Thanks a bunch, man. =] Might this be right? It didn't play the Special Effect so I'm guessing not. :/ |
| 02-25-2004, 08:32 PM | #6 |
Hmm, I realized that last trigger was wrong a fixed it. However, the spell now only creates the SFX on two units and the one unit's SFX disappears quickly while the other's never goes away. I have both things that were instructed to be looped, as looped. But it still seems to be giving me trouble. :/ |
| 02-26-2004, 10:31 PM | #7 |
Anyone know why? :/ |
