I understand that this needs to be done with a trigger (or a few). I also think I am pretty good with triggers (never jass). I just need some help with this.
Explanation:
I have a map with two groups of heroes battling. The idea is they get units by killing creeps. For example when the creep dies the killing player would receive gold (just a bounty) but also the creep would revive its self with the player controlling it. That way if the player killed enough strong creeps he would have an army.
Problem:
I can't seem to figure out how to make the trigger (excluding bounty). What I had made was an event where the unit dies, and then on death create another creep of the same kind and give it to killing unit. But because the killing unit wasn't in the event I don't know how to give the revived creep to the player.
Any help would be greatly appreciated.
If you could either show me a trigger that would work or a event/condition/action that can find the killing unit.
I think I may have to make a unit group but I'm not sure how i would do this.
Explanation:
I have a map with two groups of heroes battling. The idea is they get units by killing creeps. For example when the creep dies the killing player would receive gold (just a bounty) but also the creep would revive its self with the player controlling it. That way if the player killed enough strong creeps he would have an army.
Problem:
I can't seem to figure out how to make the trigger (excluding bounty). What I had made was an event where the unit dies, and then on death create another creep of the same kind and give it to killing unit. But because the killing unit wasn't in the event I don't know how to give the revived creep to the player.
Any help would be greatly appreciated.
If you could either show me a trigger that would work or a event/condition/action that can find the killing unit.
I think I may have to make a unit group but I'm not sure how i would do this.