• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

ring of special effects

Status
Not open for further replies.
Level 10
Joined
Jul 2, 2004
Messages
690
how do you make special effects which makes into a ring/circle? (360 degrees around the caster)
 
Level 13
Joined
Dec 29, 2004
Messages
597
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:
 
Level 13
Joined
Dec 29, 2004
Messages
597
qwerty said:
im 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.
 
Status
Not open for further replies.
Top