- Joined
- Oct 1, 2018
- Messages
- 63
Lets make it as short as possible...
I am currently trying to make an Orcish-Roulette.
In the end it should be for 12 players.
Therefore I want to have 13 units standing in a circle. The first one is the "bank"-unit, wich is the zero.
This is not about "how to make a roulette", i can handle the deeper stuff myself. The problem i have is to make a circle of those units.
For an example i tried the Frost-Nova special-effect animation trigger from the map ExtremeCandyWar2004. You can find that map ingame under:
FrothenThrone\Scenario
When you select the Mage, wich is in Team 1 the Troll-Priest, you can choose the Frost-Nova spell as hero ability. This spell creates 13 special-effects, that doesnt show up in a real circle, as i notices by playing.
The trigger for the Spell uses following function to crate its special effects:
-For each integet A from 0-12 (1-13?)
-Create specialeffect at Pont with polar offset
The offset is 500, wich doesnt really matter for me. (Im just guessing at this point) The degrees used for this function are 28 x player[integer A]. (This is easy to understand for me)
The spell didnt create a real circle, it was near to it, but did not work for Blizzard eather.
So i put out my calculator and asked it, what is 360÷13?
It's answer was = 27,6923....
So i got 27,69. (Becouse real variables only allow 2 spaces behind the [ , ])
I have rebuild this function using Units instead of special-effects. I was unable to make a real circle. The units are flying, have an collision of -1 and in the trigger, just after they are createt, they'r collision is turned off.
So this seems to be more an mathematic problem. My math is pritty bad, specialy my geometry! ^^
I am currently trying to make an Orcish-Roulette.
In the end it should be for 12 players.
Therefore I want to have 13 units standing in a circle. The first one is the "bank"-unit, wich is the zero.
This is not about "how to make a roulette", i can handle the deeper stuff myself. The problem i have is to make a circle of those units.
For an example i tried the Frost-Nova special-effect animation trigger from the map ExtremeCandyWar2004. You can find that map ingame under:
FrothenThrone\Scenario
When you select the Mage, wich is in Team 1 the Troll-Priest, you can choose the Frost-Nova spell as hero ability. This spell creates 13 special-effects, that doesnt show up in a real circle, as i notices by playing.
The trigger for the Spell uses following function to crate its special effects:
-For each integet A from 0-12 (1-13?)
-Create specialeffect at Pont with polar offset
The offset is 500, wich doesnt really matter for me. (Im just guessing at this point) The degrees used for this function are 28 x player[integer A]. (This is easy to understand for me)
The spell didnt create a real circle, it was near to it, but did not work for Blizzard eather.
So i put out my calculator and asked it, what is 360÷13?
It's answer was = 27,6923....
So i got 27,69. (Becouse real variables only allow 2 spaces behind the [ , ])
I have rebuild this function using Units instead of special-effects. I was unable to make a real circle. The units are flying, have an collision of -1 and in the trigger, just after they are createt, they'r collision is turned off.
So this seems to be more an mathematic problem. My math is pritty bad, specialy my geometry! ^^
Last edited: