• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Trigger / Ability Trigger prob

Status
Not open for further replies.
Level 7
Joined
Oct 20, 2007
Messages
174
I've created a trigger that's activated when a unit uses an ability.
The target unit of ability being cast, should get invulnerable after 10 seconds if their hit points is below 100%

  • Events
    • Unit - A unit Finishes casting an ability
  • Conditions
    • (Ability being cast) Equal to Renew
  • Actions
    • Wait 10 seconds
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Integer((Percentage life of (Target unit of ability being cast))) Less than 100
      • Then - Actions
        • Unit - Make (Target unit of ability being cast) Invulnerable
        • Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\Undead\Cripple\CrippleTarget.mdl
        • Wait 5 seconds
        • Unit - Make (Target unit of ability being cast) Vunerable
        • Special Effect - Destroy (Last created special effect)
      • Else - Actions
        • Do Nothing
But if the unit is below 100% hit points after the duration of the Renew ability has ended, it DOES'NT get invulnerable :/

pls help!
 
Status
Not open for further replies.
Top