HI
I wanna make a skill: drains 5% of life every 3 sec from target and give it the caster (lasts 20 seconds)
I wanna make a skill: drains 5% of life every 3 sec from target and give it the caster (lasts 20 seconds)
-
Leech Seed 1
-
Ereignisse
- Einheit - A unit Casts an Ability
-
Bedingungen
- (Ability being cast) Gleich Leech Seed
-
Aktionen
- Set Egelsamen_Einheit = (Load 1 of (Key (Target unit of ability being cast)) in Hashtabelle)
- Set Egelsamen_Einheit = (Casting unit)
- Hashtabelle - Save Handle OfEgelsamen_Einheit as 1 of (Key (Target unit of ability being cast)) in Hashtabelle
- Einheitengruppe - Add (Target unit of ability being cast) to Egelsamen_Einheitengruppe[1]
-
Ereignisse
-
Leech Seed 2
-
Ereignisse
- Zeit - Every 2.50 seconds of game time
- Bedingungen
-
Aktionen
-
Einheitengruppe - Pick every unit in Egelsamen_Einheitengruppe[1] and do (Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- ((Picked unit) has buff Leech Seed ) Gleich True
-
'THEN'-Aktionen
- Einheitengruppe - Add (Picked unit) to Egelsamen_Einheitengruppe[2]
- Einheitengruppe - Remove (Picked unit) from Egelsamen_Einheitengruppe[1]
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Schleifen - Aktionen
-
Einheitengruppe - Pick every unit in Egelsamen_Einheitengruppe[2] and do (Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- ((Picked unit) has buff Leech Seed ) Gleich True
-
'THEN'-Aktionen
- Set Egelsamen_Einheit = (Load 1 of (Key (Picked unit)) in Hashtabelle)
- Einheit - Cause Egelsamen_Einheit to damage (Picked unit), dealing (((Max. Leben of (Picked unit)) x 0.02) + (0.20 x (Real((Intelligenz of (Picked unit) (Einschließen bonuses)))))) damage of attack type Zaubersprüche and damage type Normal
- Einheit - Set life of Egelsamen_Einheit to ((Leben of Egelsamen_Einheit) + ((Max. Leben of Egelsamen_Einheit) x 0.02))
-
'ELSE'-Aktionen
- Einheitengruppe - Remove (Picked unit) from Egelsamen_Einheitengruppe[2]
-
'IF'-Bedingungen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Schleifen - Aktionen
-
Einheitengruppe - Pick every unit in Egelsamen_Einheitengruppe[1] and do (Actions)
-
Ereignisse