- Joined
- Jan 6, 2012
- Messages
- 2
Ok guys, I created a bit special spell using some triggers. Now i will give the details about the spell. "When killed, the Tauren Chieftain will come back to life with only 50% of its max hp and 50% of its max mana. Reincarnation has a 60 second cooldown." The triggers:
-
Reincar effect
-

Events
-


Unit - A unit Learns a skill
-
-

Conditions
-


(Learned Hero Skill) Equal to Orc Tauren Chieftain - Reincarnation
-
-

Actions
-


Set ReinUnit = (Learning Hero)
-


Set ReinCD = 0
-


Trigger - Add to Life Drops <gen> the event (Unit - ReinUnit's life becomes Less than or equal to 0.40)
-
-
-
Life Drops
-

Events
-

Conditions
-


ReinCD Equal to 0
-
-

Actions
-


Set ReinCD = 60
-


Wait 1.00 seconds
-


Set ReinUnitPosition = (Position of ReinUnit)
-


Special Effect - Create a special effect at ReinUnitPosition using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-


Unit - Set life of ReinUnit to 50.00%
-


Unit - Set mana of ReinUnit to 50.00%
-


Custom script: call RemoveLocation(udg_ReinUnitPosition)
-
-
-
ReinCDloop
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-


ReinCD Not equal to 0
-
-

Actions
-


Set ReinCD = (ReinCD - 1)
-
-






