X-maul
AKA: Demtrod
- Reaction score
- 201
here it is
the dummy unit is a unit with locust and invulnerable and the model of Animate Dead (Special)
it just make like 3 dummy units, and then the ability stops, and it should stay for like 15 seconds...
Code:
Damned Cirkle
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Damned Cirkle (Dreadful Shaman)
Actions
Game - Display to (All players) the text: it works
Set BC_RadiusCounter = 200
Set PlayerGroup = (All allies of (Owner of (Triggering unit)))
Player Group - Pick every player in PlayerGroup and do (Actions)
Loop - Actions
Set BloodCirkle_Player = (Picked player)
Custom script: call DestroyForce(udg_PlayerGroup)
Game - Display to (All players) the text: it works
For each (Integer A) from 1 to 150, do (Actions)
Loop - Actions
Wait 0.01 seconds
Game - Display to (All players) the text: it works
Set Temp_Point = (Position of (Triggering unit))
Set TempPoint = (Temp_Point offset by (Real(BC_RadiusCounter)) towards (Real(((Integer A) x 40))) degrees)
Unit - Create 1 DC Dummy for (Owner of (Triggering unit)) at (Temp_Point offset by (Real(BC_RadiusCounter)) towards (Real(((Integer A) x 40))) degrees) facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Set BC_dummys[(Integer A)] = (Last created unit)
Set Temp_Point = (Position of BC_dummys[(Integer A)])
Set TempGroup = (Units within 100.00 of Temp_Point matching ((Owner of (Picked unit)) Not equal to BloodCirkle_Player))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Owner of (Picked unit)) Not equal to BloodCirkle_Player
((Picked unit) is A structure) Not equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Damned Cirkle (Dreadful Shaman) for (Triggering unit)) Equal to 1
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Picked unit)) is an ally of (Owner of (Triggering unit))) Not equal to True
Then - Actions
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 80.00 damage of attack type Spells and damage type Normal
Game - Display to (All players) the text: it works
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Damned Cirkle (Dreadful Shaman) for (Triggering unit)) Equal to 2
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Picked unit)) is an ally of (Owner of (Triggering unit))) Not equal to True
Then - Actions
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 150.00 damage of attack type Spells and damage type Normal
Game - Display to (All players) the text: it works
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Damned Cirkle (Dreadful Shaman) for (Triggering unit)) Equal to 3
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Picked unit)) is an ally of (Owner of (Triggering unit))) Not equal to True
Then - Actions
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 280.00 damage of attack type Spells and damage type Normal
Game - Display to (All players) the text: it works
Else - Actions
Else - Actions
Else - Actions
Custom script: call RemoveLocation(udg_TempPoint)
Custom script: call RemoveLocation(udg_Temp_Point)
Custom script: call DestroyGroup(udg_TempGroup)
it just make like 3 dummy units, and then the ability stops, and it should stay for like 15 seconds...