• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical 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