- Joined
- Feb 21, 2008
- Messages
- 204
Am back yet again, and yet again, I started on my map. God, I've quitted this map like 3 times now, but its too awesome to drop out of. But I keep forgetting the simplest of things when I take a year off.
Aaaanyways, this should be simple. (I guess).
Buuuuut, the damage part is fine, except, it damages the hero and his allies, and the allies wont get healed either. I tried putting the damage at 30 and the heal at 60, so the end result for my allies would be the same. But that didnt work.
So TLDR: It should damage my enemy and heal my friends, instead, it deals damage to my allies.
THe problem is in these lines I presume:

Aaaanyways, this should be simple. (I guess).
-
Spell Fury of the depths
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Unit-type of (Triggering unit)) Equal to Tidelord
-
-

Actions
-


Set Furyofthedepths_point = (Position of (Triggering unit))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Fury of the depths for (Triggering unit)) Equal to 1
-
-



Then - Actions
-




Special Effect - Create a special effect at Furyofthedepths_point using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
-




Special Effect - Destroy (Last created special effect)
-




Unit Group - Pick every unit in (Units within 400.00 of Furyofthedepths_point matching (((Picked unit) belongs to an enemy of Player 4 (Purple)) Equal to True)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing 15.00 damage of attack type Chaos and damage type Normal)
-




Unit Group - Pick every unit in (Units within 400.00 of Furyofthedepths_point matching (((Picked unit) belongs to an ally of Player 4 (Purple)) Equal to True)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 15.00))
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Level of Fury of the depths for (Triggering unit)) Equal to 2
-
-





Then - Actions
-






Special Effect - Create a special effect at Furyofthedepths_point using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
-






Special Effect - Destroy (Last created special effect)
-






Unit Group - Pick every unit in (Units within 400.00 of Furyofthedepths_point matching (((Picked unit) belongs to an enemy of Player 4 (Purple)) Equal to True)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing 25.00 damage of attack type Chaos and damage type Normal)
-






Unit Group - Pick every unit in (Units within 400.00 of Furyofthedepths_point matching (((Picked unit) belongs to an ally of Player 4 (Purple)) Equal to True)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 25.00))
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Level of Fury of the depths for (Triggering unit)) Equal to 3
-
-







Then - Actions
-








Special Effect - Create a special effect at Furyofthedepths_point using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
-








Special Effect - Destroy (Last created special effect)
-








Unit Group - Pick every unit in (Units within 400.00 of Furyofthedepths_point matching (((Picked unit) belongs to an ally of Player 4 (Purple)) Equal to True)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 35.00))
-








Unit Group - Pick every unit in (Units within 400.00 of Furyofthedepths_point matching (((Picked unit) belongs to an enemy of Player 4 (Purple)) Equal to True)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing 35.00 damage of attack type Chaos and damage type Normal)
-
-







Else - Actions
-
-
-
-
-
-
-
Buuuuut, the damage part is fine, except, it damages the hero and his allies, and the allies wont get healed either. I tried putting the damage at 30 and the heal at 60, so the end result for my allies would be the same. But that didnt work.
So TLDR: It should damage my enemy and heal my friends, instead, it deals damage to my allies.
THe problem is in these lines I presume:
-
Unit Group - Pick every unit in (Units within 400.00 of Furyofthedepths_point matching (((Picked unit) belongs to an enemy of Player 4 (Purple)) Equal to True)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing 15.00 damage of attack type Chaos and damage type Normal)
-
Unit Group - Pick every unit in (Units within 400.00 of Furyofthedepths_point matching (((Picked unit) belongs to an ally of Player 4 (Purple)) Equal to True)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 15.00))

