• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Spell] passive speed increase

Status
Not open for further replies.
Level 4
Joined
Jan 13, 2013
Messages
92
how can i make a passive skill that increases 10% attack speed and movement for every enemy hero in range?
 
then that's quite a bit of triggering... probably make a speed increase item ability with multiple levels or multiple abilities each with a power of 2 value (and one giving 1%), then every .xx seconds, check the number of enemy hero units around the player, remove the abilities, and add the right combination depending on the number of units
 
Level 5
Joined
May 12, 2013
Messages
70
I'm not sure how to do it exactly this way, but here's a rough idea of something like it. Ofcourse, you have to change the "Triggering Unit" values and maybe the event or something but, here, have a look

  • Untitled Trigger 001
    • Events
      • Unit - A unit enters (Region((Position of No unit), ((Position of No unit) offset by (512.00, 512.00))))
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units within 512.00 of (Position of (Triggering unit)) matching (((Matching unit) is A Hero) Equal to True))) Greater than 0
        • Then - Actions
          • Set Units_Variable = (Number of units in (Units within 512.00 of (Position of (Triggering unit))))
          • Unit - Set (Triggering unit) movement speed to ((Real(Units_Variable)) x ((Current movement speed of (Triggering unit)) + ((Current movement speed of (Triggering unit)) / 10.00)))
        • Else - Actions
And If this doesn't work, you can always do it by creating a spell based on an Aura spell like Brilliance Aura or something like that, adding a buff on all units who enter within "X" range of the Unit and triggering it to increase MS of the triggering unit by 10% * The no. of units having "X' buff just as done above.
 
Status
Not open for further replies.
Top