Hi, i need some help, for my FIRST map.. The thing is that: If Bandit 1,2,3,4 die, create there a Circle, thats ok..
Event: Unit - Peasant 0000 <gen> Dies
Action: Unit - Create 1 Circle of Power for Player 1 (Red) at (Position of Peasant 0000 <gen>) facing Default building facing degrees
Than the problem is, if Bandit 2,3 or 4 go an the circle revive peasent.. How can i make that? And only 3 times revive...
revive who? the unit that got killed and created the circle of power? If it is a single revivable unit that the circle is created for, it may be better just to make 1 circle and move it as opposed to creating a new one every time. That way you can use the "unit within range" event to spark a revive. -VGsatomi
VGsatomirevive who? the unit that got killed and created the circle of power? If it is a single revivable unit that the circle is created for, it may be better just to make 1 circle and move it as opposed to creating a new one every time. That way you can use the "unit within range" event to spark a revive. -VGsatomi
I mean if some1 kill that unit --->Action: create 1 circle If some1 go an the Circle --->Action: Revive The peasent, and destroy the circle..
Okhere is my full Trigger: 2 Trigger First: Events: Unit - Peasant 0000 <gen> Dies Condition: - Action: Unit - Move Circle of Power 0014 <gen> instantly to (Position of Peasant 0000 <gen>)
Second: Events: Unit - A unit comes within 150.00 of Circle of Power 0014 <gen> Condition: - Action: Unit - Create 1 (Unit-type of Peasant 0000 <gen>) for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees AND Unit - Move Circle of Power 0014 <gen> instantly to (Center of Region 000 <gen>)
In this situation, we have 1 peasent, if he die, on that position, where he dies, create 1 circle, if 1 unit come near to circle, he revives, but the 2 problem is:
He revives only 1 time He revives, if 1 (UNIT) come near, but i want if 1 other peasent go near to it!
First, use a hero instead of a unit. That way you can revive him.
Events: Unit - Hero 0000 <gen> Dies Condition: - Action: Unit - Move Circle of Power 0014 <gen> instantly to (Position of Hero 0000 <gen>)
Second: Events: Unit - A unit comes within 150.00 of Circle of Power 0014 <gen> Condition: Unit type of Triggering unit = Hero Action: Hero - Resurrect Hero 0000 at (Position of (Triggering unit)) facing Default building facing degrees AND Unit - Move Circle of Power 0014 <gen> instantly to (Center of Region 000 <gen>)
Next, add a condition to the second trigger that I have shown in blue.