HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

removing spell effects from certain region

12-24-2002, 03:31 PM#1
blindead
ok i made a trigger to make various spell effects in a region (all the lightning effects u can think of)

but the problem is, after the casting, the effects won't go away... i seriously need help on this thing
12-24-2002, 04:00 PM#2
Quilamar Frost
you have to use the special effect end trigger, I think thats what its called. end special effect, its one of the three triggers under Special Effect
12-24-2002, 04:07 PM#3
fr0ggE
I'm somewhat of a noob, but I've dealt with this sort of thing, so here goes.

So, I assume when you say "spell effects" you mean "special effects", right?

A way (and there might be a better one) to go about doing this is via "destroy special effect". If you want to get rid of the last one you made, then just do "destroy (last created) special effect"

If you make a bunch and then sometime later want to get rid of them, then you could have a variable for each special effect (or an array of special effect variables if I understand arrays correctly). Whenever you create a new special effect then right after that do the action: "set variable", and then set the corresponding special effect variable to equal the last created special effect. Then when you want to destroy your special effects you can refer to them by their variables that you set them equal to.

i.e. "Destroy special effect X"

that make sense?

fr0ggE
12-25-2002, 05:50 AM#4
blindead
Ummm i know that, that is easy, but i created them a LOT by using a trigger something like

for each integer a from _ to _

and with this, i don't really know how to destroy the effects that were made using that certain trigger
12-25-2002, 07:08 AM#5
Sytadel
You'll need to put your special effects in a Special Effect Array Variable. Call it 'SEA[1]', where obviously 1 changes depending on the effect. Say your creation trigger which spawns the bolts would be like this:

Create 1 Lightning bolt at LB1
Set SEA[1] as (Last created Special effect)
Create 1 Lightning bolt at LB2
Set SEA[2] as (Last created Special effect)
Create 1 Lightning bolt at LB3
Set SEA[3] as (Last created Special effect)
etc...

Anyway, then to remove them, you have
Action: For each integer A
'For each integer A from 1 to 10, do action'
- Where the underlined action would be -
Destroy Special Effect: Destroy Special effect SEA[Integer A]

Also, replace 10 with whatever the highest number of special effects you create is. Gl hf!