- Joined
- Sep 11, 2013
- Messages
- 562
Greetings!
In my map, if the Main Peasant dies, everything that belong to that player dies (including the hero and other units that can carry the Ankh of reincarnation) and the game will end.
So, I have 2 scenarios.
1. If the Main Peasant dies and my Hero together with other units has Ankh, I want that Ankh to be removed from everyone because my main Peasant will be dead.
I don't know if this trigger is good, but seems to work.
I don't know how to solve the second scenario..
2.If my Hero/units dies with Ankh and will be reincarnated in 7 seconds, but after 3 seconds my Main Peasant will die, how can I stop the Hero/units with the Ankh from reincarnating right after my Main Peasant dies?
The help will be appreciated!
Edit:
Thanks for answers!
It seems way too complicated and I will give up to this Ankh item..
In my map, if the Main Peasant dies, everything that belong to that player dies (including the hero and other units that can carry the Ankh of reincarnation) and the game will end.
So, I have 2 scenarios.
1. If the Main Peasant dies and my Hero together with other units has Ankh, I want that Ankh to be removed from everyone because my main Peasant will be dead.
I don't know if this trigger is good, but seems to work.
-
Events
-

Unit - A unit Dies
-
-
Conditions
-

(Unit-type of (Dying unit)) Equal to Peasant
-
-
Actions
-

Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit)).) and do (Actions)
-


Loop - Actions
-



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




If - Conditions
-





Or - Any (Conditions) are true
-






Conditions
-







(Unit-type of (Picked unit)) Equal to Malfurion(Hero with Ankh)
-







(Unit-type of (Picked unit)) Equal to Styk Clone(Units with Ankh)
-
-
-
-




Then - Actions
-





Item - Remove (Item carried by (Picked unit) of type Ankh of Reincarnation)
-
-




Else - Actions
-
-



Unit - Cause (Killing unit) to damage (Picked unit), dealing 1000000000.00 damage of attack type Chaos and damage type Normal
-
-
-
I don't know how to solve the second scenario..
2.If my Hero/units dies with Ankh and will be reincarnated in 7 seconds, but after 3 seconds my Main Peasant will die, how can I stop the Hero/units with the Ankh from reincarnating right after my Main Peasant dies?
The help will be appreciated!
Edit:
Thanks for answers!
It seems way too complicated and I will give up to this Ankh item..
Last edited:





