Warcraft III resources & community, 2003–2006 · archived

ring of special effects

5 posts
#1

ring of special effects

how do you make special effects which makes into a ring/circle? (360 degrees around the caster)
#2
create dummy unit with flame model for example, give locust ability, then:

create that unit on <center point> with <radius> polar offset, <degree> angle

let says,
create that unit on [caster position] with 500 polar offset, 0 degree angle.
create that unit on [caster position] with 500 polar offset, 5 degree angle.
create that unit on [caster position] with 500 polar offset, 10 degree angle.
....
....
....
create that unit on [caster position] with 500 polar offset, 360 degree angle.

Of course you must do it with loop. :wink:
#3
im not exactly pretty well with the loop.. mind helping a little more?
#4
qwertyim not exactly pretty well with the loop.. mind helping a little more?


Ok, i don't know the exact syntax, but it like this

for integerA=1 to 10 do
damage unit X with 50 damage
loop

so, it will do

damage unit X with 50 damage
damage unit X with 50 damage
damage unit X with 50 damage
damage unit X with 50 damage
...
...
damage unit X with 50 damage

repeated until ten times, so X will get 50 repeatedly damage = 500 damage total
-----------------------------------------------------
Now, back to the problem,

you must do:
create that unit on [caster position] with 500 polar offset, 5 degree angle.
create that unit on [caster position] with 500 polar offset, 10 degree angle.
create that unit on [caster position] with 500 polar offset, 15 degree angle.
....
....
....
create that unit on [caster position] with 500 polar offset, 360 degree angle.

those require (360/5)=72 times operation.
So, use loop here,

for integerA=1 to 72 do
create that unit on [caster position] with 500 polar offset, (5*IntegerA) degree angle.
loop

hope you understand that.
#5
i think ive got it. thanks