Hello I would like to know how to make a trigger that when a unit dies creates a spirit of unity rather dead, and that Spirit pf must now move in a region to revive a dead unit
Look the triggers than I did:
Look the triggers than I did:
Trigger:
- Untitled Trigger 009
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Dying unit)) Equal to Archer
- Actions
- Set player = (Owner of (Dying unit))
- Set Dying_Unit = (Dying unit)
- Set Point_Dying_Unit = (Position of Dying_Unit)
- Wait 0.30 seconds
- Unit - Create 1 Alma de uma Archer for (Owner of Dying_Unit) at Point_Dying_Unit facing Default building facing degrees
- Events
Trigger:
- Untitled Trigger 010 Copy
- Events
- Unit - A unit enters Region 013 <gen>
- Conditions
- (Unit-type of (Entering unit)) Equal to Alma de uma Archer
- Actions
- Unit - Explode (Entering unit)
- Special Effect - Create a special effect at (Center of Region 013 <gen>) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
- Hero - Instantly revive Dying_Unit at (Center of Region 013 <gen>), Hide revival graphics
- Events