- Joined
- May 28, 2015
- Messages
- 382
I need help of this ability of mine... Basically what I want for the ability to do is apply a damage per second buff to an enemy. If the enemy dies while under this effect, the effect spreads into nearby enemies to the location of where the killed unit died but its seems its not working.
[trigger=]
Conflagration
Events
Unit - A unit dies
Conditions
(Dying unit) has buff Conflagration equal to True
Actions
Set Temp_DyingLoc = Position of (Dying Unit)
Set Temp_UnitGroup = Pick every unit within 250 of Temp_DyingLoc
Unit Group - Pick every unit within Temp_UnitGroup
If - Conditions
Level of Conflagration for (Triggering unit) is equal to 1
Then - Actions
Unit - Create 1 dummy for Owner of (Triggering unit) at Temp_DyingLoc facing Default building facing degrees
Unit - Add conflagration dummy to Last Created unit
Unit - Set level of conflagration ability to 1
Unit - Order Last created unit to Acid Bomb Picked unit
Unit - Add a 10 second Generic timer to Last created unit
Custom script: call RemoveLocation(udg_Temp_TargetLoc)
Else - Actions
Custom script: call DestroyGroup(udg_Temp_UnitGroup)[/trigger]
[trigger=]
Conflagration
Events
Unit - A unit dies
Conditions
(Dying unit) has buff Conflagration equal to True
Actions
Set Temp_DyingLoc = Position of (Dying Unit)
Set Temp_UnitGroup = Pick every unit within 250 of Temp_DyingLoc
Unit Group - Pick every unit within Temp_UnitGroup
If - Conditions
Level of Conflagration for (Triggering unit) is equal to 1
Then - Actions
Unit - Create 1 dummy for Owner of (Triggering unit) at Temp_DyingLoc facing Default building facing degrees
Unit - Add conflagration dummy to Last Created unit
Unit - Set level of conflagration ability to 1
Unit - Order Last created unit to Acid Bomb Picked unit
Unit - Add a 10 second Generic timer to Last created unit
Custom script: call RemoveLocation(udg_Temp_TargetLoc)
Else - Actions
Custom script: call DestroyGroup(udg_Temp_UnitGroup)[/trigger]