• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[Trigger] Problem with skill

Status
Not open for further replies.
Level 7
Joined
Nov 19, 2007
Messages
253
K im making item with ability to increase movement speed to maximum when get hit and when attacked, i am using unholy aura as dummy ability and to increase movement speed I increase level of ability but i wont decrease after time. Any ideas to fix this?
  • Boots of Haste
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Attacked unit) has buff Boots of Haste ) Equal to True
          • (Random integer number between 1 and 100) Less than or equal to 20
        • Then - Actions
          • Set BohAttacked = (Attacked unit)
          • Unit - Set level of Item random Speed increase for BohAttacked to ((Level of Item random Speed increase for BohAttacked) + 1)
          • Special Effect - Create a special effect attached to the origin of BohAttacked using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Wait 2.50 game-time seconds
          • Unit - Set level of Item random Speed increase for BohAttacked to ((Level of Item random Speed increase for BohAttacked) - 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Attacking unit) has buff Boots of Haste ) Equal to True
          • (Random integer number between 1 and 100) Less than or equal to 10
        • Then - Actions
          • Set BohAttacker = (Attacking unit)
          • Unit - Set level of Item random Speed increase for BohAttacker to ((Level of Item random Speed increase for BohAttacker) + 1)
          • Special Effect - Create a special effect attached to the origin of (Attacking unit) using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Wait 2.50 game-time seconds
          • Unit - Set level of Item random Speed increase for BohAttacker to ((Level of Item random Speed increase for BohAttacker) - 1)
        • Else - Actions
 
Status
Not open for further replies.
Top