I'm making a kill counter for my map with 4 opposing players. The trouble I have run into is that I can not refer to "Killing unit" because some units utilize abilites which does dmg via triggers, thus, the editor does not know who the Killing unit was in those cases.
I would appreciate it deeply if someone could tell me how to make a kill counter for 4 opposing players, without refering to "killing unit".
If you use environment functions ( http://wiki.sc2mapster.com/galaxy/triggers/category-environment/ ) you can set from which unit or player an effect occurs at. So you can try using those. You would be able to use dummy damage effects, and set their damage with catalog set functions.
Incase that doesn't help just give us more info, like post your triggers or something.
That would be a last resort. I have several other spells which I have invested alot of time in that utilize regions. Everything would be perfect if I could just find a way to count kills refering to the unit that died and not the unit that did the killing.
i really suggest just using the data editor for the spells/abilities. The only time id imagine that its worth using triggers for spells/abilities is when their effects are dependent on something that dynamic or cant be set up in the data editor. Like on a units attribute or something.
However if you rly want to keep the trigger, i guess what you can do is add the
"
General - If (Conditions) then do (Actions) else do (Actions)
If
Or
Conditions
(Owner of (Triggering unit)) == 3
(Owner of (Triggering unit)) == 4
(Owner of (Triggering unit)) == 2
Then
Variable - Modify Kills P: + 1
"
Pick each unit action in the 1st trigger. so it would look something like ( note: im just copying and pasting what you posted, and rearranging it a bit)
Unit Group - Pick each unit in (Cannonfodder units in ZeratulDMG owned by player Any Player matching Excluded: Self, Missile, Dead, Hidden, Invulnerable, with at most Any Amount) and do (Actions)
Actions
Unit - Set (Picked unit) Life to 0.0
General - If (Conditions) then do (Actions) else do (Actions)
If
Or
Conditions
(Owner of (Triggering unit)) == 3
(Owner of (Triggering unit)) == 4
(Owner of (Triggering unit)) == 2
Then
Variable - Modify Kills P: + 1
I'm making a kill counter for my map with 4 opposing players. The trouble I have run into is that I can not refer to "Killing unit" because some units utilize abilites which does dmg via triggers, thus, the editor does not know who the Killing unit was in those cases.
I would appreciate it deeply if someone could tell me how to make a kill counter for 4 opposing players, without refering to "killing unit".
If you use environment functions ( http://wiki.sc2mapster.com/galaxy/triggers/category-environment/ ) you can set from which unit or player an effect occurs at. So you can try using those. You would be able to use dummy damage effects, and set their damage with catalog set functions.
Incase that doesn't help just give us more info, like post your triggers or something.
@gizmachu: Go
I mainly use regions to define where the damage is applied.
This is an example of one of my spells
And this is an example of one of my failed Kill Counters.
This obviously doesn't work when I apply this to all 4 players
@Orbiter1987:
Why cant you just make it so that ability does aoe damage and kills the units? That can be done through the data editor and not triggers.
@gizmachu: Go
That would be a last resort. I have several other spells which I have invested alot of time in that utilize regions. Everything would be perfect if I could just find a way to count kills refering to the unit that died and not the unit that did the killing.
i really suggest just using the data editor for the spells/abilities. The only time id imagine that its worth using triggers for spells/abilities is when their effects are dependent on something that dynamic or cant be set up in the data editor. Like on a units attribute or something.
However if you rly want to keep the trigger, i guess what you can do is add the
"
General - If (Conditions) then do (Actions) else do (Actions)
If
Or
Conditions
(Owner of (Triggering unit)) == 3
(Owner of (Triggering unit)) == 4
(Owner of (Triggering unit)) == 2
Then
Variable - Modify Kills P: + 1
"
Pick each unit action in the 1st trigger. so it would look something like ( note: im just copying and pasting what you posted, and rearranging it a bit)
Unit Group - Pick each unit in (Cannonfodder units in ZeratulDMG owned by player Any Player matching Excluded: Self, Missile, Dead, Hidden, Invulnerable, with at most Any Amount) and do (Actions)
Actions
Unit - Set (Picked unit) Life to 0.0
General - If (Conditions) then do (Actions) else do (Actions)
If
Or
Conditions
(Owner of (Triggering unit)) == 3
(Owner of (Triggering unit)) == 4
(Owner of (Triggering unit)) == 2
Then
Variable - Modify Kills P: + 1
@gizmachu: Go
I appreciate your help and will certianly consider using the data editor more often. Thank you.