- Joined
- Aug 31, 2010
- Messages
- 35
Hey,
I've got a problem with my trigger.
I want a random enemy hero on the map to take X damage. But this trigger damages every enemy hero. What have I made wrong? I could also have missed something, but I just know not what.
I am noob if it is about the World editor. Are lenient please that I do not know everything.
My WE is in German but i tried to translate some words as good as i can. Not every word may fit with the one of the english WE.
Thanks to everyone helping me.
I've got a problem with my trigger.
I want a random enemy hero on the map to take X damage. But this trigger damages every enemy hero. What have I made wrong? I could also have missed something, but I just know not what.
I am noob if it is about the World editor. Are lenient please that I do not know everything.
My WE is in German but i tried to translate some words as good as i can. Not every word may fit with the one of the english WE.
Thanks to everyone helping me.
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
-
(((Picked unit) is a hero) equal True) and (((Picked unit) belongs to an enemy of (Owner of (Casting unit))) equal True)
-
-
'THEN'-Actions
-
Unit Group - Add (Picked unit) to EnemyHeroes[(Player number of (Owner of (Casting unit)))]
-
Set WotLTarget[(Player number of (Owner of (Casting unit)))] = (Random unit from EnemyHeroes[(Player number of (Owner of (Casting unit)))])
-
Unit - Cause (Casting unit) to damage WotLTarget[(Player number of (Owner of (Casting unit)))], dealing (300.00 x (Real((Level of Wrath of the Legion for (Casting unit))))) damage of attack type Chaos and damage type Normal
-
Unit Group - Remove all units from EnemyHeroes[(Player number of (Owner of (Casting unit)))]
-
Special Effect - Create a special effect attached to the origin of WotLTarget[(Player number of (Owner of (Casting unit)))] using Abilities\Spells\Other\Doom\DoomDeath.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
'ELSE'-Actions
-
Do nothing
-
-