| 12-07-2002, 06:50 PM | #1 |
What i basicly want to do is create a special effect around a unit, which goes all the way around the building at a distance of 500, is there any way to do this in only 1 trigger? |
| 12-07-2002, 07:31 PM | #2 |
for each (integer a) from 1 to 10, create a special effect at (position of building) offset by 500 towards (36 * real(Integer A)) using [a special effect.mdx] If you never need to destroy these effects, that trigger alone is sufficient (that's using polar coordinates, btw if you didn't catch that). If the building will be destryed though, you need to store each created special effect in an array, as well, so you can remove them later. Since you can't do 2 actions in a single for loop without custom text, you have two options.First, you can convert to custom text. Problem solved. Second, you can have the loop here, but instead of creating the special effect here, do that in a second trigger: for each (integer a) from 1 to 10, run trigger 2 trigger 2: create a special effect at (position of building) offset by 500 towards (36 * real(Integer A)) using [a special effect.mdx] store last created special effect in an effect array hope that helps |
| 12-07-2002, 07:35 PM | #3 |
Thank you very much, it worked perfectly!:D Btw: I got the idea of making this from your war3 tactics map, nice work with it.:D |
