Hey,
i made an spell, based of an aura. The spell is like that: It damages a random enemy unit every 2.5 seconds in a range of 700.
I tried to trigger it but it kinda doesnt work.
Here is the trigger:
+rep for help
i made an spell, based of an aura. The spell is like that: It damages a random enemy unit every 2.5 seconds in a range of 700.
I tried to trigger it but it kinda doesnt work.
Here is the trigger:
Trigger:
- Electric touch
- Ereignisse
- Zeit - Every 2.50 seconds of game time
- Bedingungen
- Aktionen
- Spielergruppe - Pick every player in Humans and do (Actions)
- Schleifen - Aktionen
- Einheitengruppe - Pick every unit in (Units of type Lord of lightning) and do (Actions)
- Schleifen - Aktionen
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- 'IF'-Bedingungen
- ((Picked unit) has buff Electric touch ) Gleich True
- 'THEN'-Aktionen
- Set AmpereHuman = (Picked unit)
- Set PositionAmpereElectricTouchHu = (Position of (Picked unit))
- Einheitengruppe - Pick every unit in (Random 1 units from (Units within 700.00 of PositionAmpereElectricTouchHu matching (((Matching unit) belongs to an enemy of Spieler 11 (Dunkelgrün)) Gleich True))) and do (Actions)
- Schleifen - Aktionen
- Set ElectricTouchHumansUnit = (Matching unit)
- Set ElecticTouchDamage = (50.00 x (Real((Level of Electric touch for AmpereHuman))))
- Spezialeffekt - Create a special effect at (Position of ElectricTouchHumansUnit) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
- Einheit - Cause AmpereHuman to damage ElectricTouchHumansUnit, dealing ElecticTouchDamage damage of attack type Zaubersprüche and damage type Blitz
- Schleifen - Aktionen
- 'ELSE'-Aktionen
- 'IF'-Bedingungen
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Schleifen - Aktionen
- Einheitengruppe - Pick every unit in (Units of type Lord of lightning) and do (Actions)
- Schleifen - Aktionen
- Spielergruppe - Pick every player in Humans and do (Actions)
- Ereignisse
+rep for help