• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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