- Joined
- May 15, 2009
- Messages
- 192
So, I've been trying to create what I thought was a simple damage-splitting system.
What it does is, when a unit (the Depthlord unit type) takes damage, the damage is divided by the number of Depthlords controlled by the player, and the damage is then split amongst these Depth Lords.
Problem is, nothing really appears to be happening, aside from the fact that the Depthlord under attack takes less damage, but no other Depthlords take any damage.
-Battlehound/Woodenplank
What it does is, when a unit (the Depthlord unit type) takes damage, the damage is divided by the number of Depthlords controlled by the player, and the damage is then split amongst these Depth Lords.
Problem is, nothing really appears to be happening, aside from the fact that the Depthlord under attack takes less damage, but no other Depthlords take any damage.
-
Soul Bound Depth Lords
-
Events
- Game - DamageModifierEvent becomes Equal to 1.00
-
Conditions
- (Unit-type of DamageEventTarget) Equal to Depth Lord
-
Actions
- Set DamageEventAmount = (DamageEventAmount / (Real((Number of living Depth Lord units owned by (Owner of DamageEventTarget)))))
- Custom script: set bj_wantDestroyGroup = true
- Trigger - Turn off Damage Engine <gen>
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Depth Lord) and ((((Matching unit) is dead) Equal to True) and ((Matching unit) Not equal to DamageEventTarget)))) and do (Actions)
-
Loop - Actions
- Unit - Cause DamageEventSource to damage (Picked unit), dealing DamageEventAmount damage of attack type Hero and damage type Normal
-
Loop - Actions
- Trigger - Turn on Damage Engine <gen>
-
Events
-Battlehound/Woodenplank