Hello everyone.
I'm here asking for help, for I finish of do the Maledict skill.
I already do I think similar the damage part (not bonus): Enemies lose 5, 10, 15, 20 hp / sec.
But now I wish to do the bonus damage part, which every 100 HP lost adds 10/20/30/40 damage. Problem is that I do not know the logic of making the Editor count with buff, when enemies taken more than 100 damage, etc for add this new damage.
Maledict that I'm doing will not be exactly of Dota. The ability will work with non hero units, and will leave an effect buff.
I'm here asking for help, for I finish of do the Maledict skill.
I already do I think similar the damage part (not bonus): Enemies lose 5, 10, 15, 20 hp / sec.
-
[Events
-
Time - Every 1.00 seconds of game time
-
Conditions
-
Actions
-
Unit Group - Pick every unit in Maledict_Enemies_Units[1] and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Maledict_Skill for unit_maledict) Equal to 1
-
((Picked unit) has buff Maledict ) Equal to True
-
-
Then - Actions
-
Unit - Cause unit_maledict to damage (Picked unit), dealing 5.00 damage of attack type Chaos and damage type Normal
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Maledict_Skill for unit_maledict) Equal to 2
-
((Picked unit) has buff Maledict ) Equal to True
-
-
Then - Actions
-
Unit - Cause unit_maledict to damage (Picked unit), dealing 10.00 damage of attack type Chaos and damage type Normal
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Maledict_Skill for unit_maledict) Equal to 3
-
((Picked unit) has buff Maledict ) Equal to True
-
-
Then - Actions
-
Unit - Cause unit_maledict to damage (Picked unit), dealing 15.00 damage of attack type Chaos and damage type Normal
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Maledict_Skill for unit_maledict) Equal to 4
-
((Picked unit) has buff Maledict ) Equal to True
-
-
Then - Actions
-
Unit - Cause unit_maledict to damage (Picked unit), dealing 20.00 damage of attack type Chaos and damage type Normal
-
-
Else - Actions
-
-
-
But now I wish to do the bonus damage part, which every 100 HP lost adds 10/20/30/40 damage. Problem is that I do not know the logic of making the Editor count with buff, when enemies taken more than 100 damage, etc for add this new damage.
Maledict that I'm doing will not be exactly of Dota. The ability will work with non hero units, and will leave an effect buff.
-
Events
-
Unit - A unit Learns a skill
-
-
Conditions
-
(Learned Hero Skill) Equal to Maledic
-
-
Actions
-
Set Maledict_Skill = Maledict
-
Unit - Create 1 Maledict Dummy for (Owner of (Learning Hero)) at (Random point in (Playable map area)) facing Default building facing degrees
-
Set Maledict_Dummy[1] = (Last created unit)
-
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Maledict_Skill
-
-
Actions
-
Unit - Move Maledict_Dummy[1] instantly to (Target point of ability being cast)
-
Unit Group - Pick every unit in (Units within 150.00 of (Position of Maledict_Dummy[1]) matching (((Owner of (Matching unit)) is an enemy of (Owner of Maledict_Dummy[1])) Equal to True)) and do (Actions)
-
Loop - Actions
-
Set Maledict_Taken_Cast = (Picked unit)
-
Unit Group - Add Maledict_Taken_Cast to Maledict_Enemies_Units[1]
-
-
-
Wait 12.00 seconds
-
Unit Group - Remove Maledict_Taken_Cast from Maledict_Enemies_Units[1]
-
-
Events
-
Unit - A unit enters (Playable map area)
-
-
Conditions
-
(Unit-type of (Entering unit)) Equal to Witch Doctor
-
-
Actions
-
Set unit_maledict = (Entering unit)
-