1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[General] Mathematical Probrem

Discussion in 'World Editor Help Zone' started by GywGod133, Sep 3, 2014.

  1. GywGod133

    GywGod133

    Joined:
    Jul 16, 2012
    Messages:
    631
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    Hi Hivers!

    You know Boots of Speed :)

    Boots of Speed (Add +60 ms)

    You know Endurance Aura or Unholy Aura or etc have bonus movement speed

    Let say i have boots of speed
    in one hero have 260 default movement speed
    then he have boots of speed so the current movement speed of the hero is 320

    So, in some bonus movement speed auras
    i want to know how many bonus movement speed add in the hero or all allied units

    In Object Editor
    Boots of Speed Ability
    only Integer value allowed

    but in bonus movement speed ability
    you can put decimal value


    Thank You!
     
  2. Licheus

    Licheus

    Joined:
    Apr 18, 2009
    Messages:
    562
    Resources:
    0
    Resources:
    0
    The reason why those auras use a decimal value is because their movement speed bonuses are percent based. For Unholy Aura or Encurance Aura, a value of 0.10 means "10% movement speed bonus".

    Any hero carrying boots of speed would gain an extra 60 movement speed, regardless of its base movement speed.

    The bonus movment speed gained from a percent based aura such a Unholy or Endurance Aura can vary. A faster unit gains more movement speed than a slower one affected by the same aura.

    A hero with 250 base movement speed and no other movement speed modifications would gain 25 extra movement speed from level 1 Unholy or Endurance Aura. This is because 10% of 250 is 25 or in mathematical terms 250 * 0.1 = 25. However if the same hero was carrying boots of speed then its static movement speed would be 250 + 60 = 310. Then Unholy or Endurance Aura would give 31 bonus movement speed because 10% of 310 is 31.
     
  3. Nichilus

    Nichilus

    Joined:
    Sep 26, 2009
    Messages:
    1,968
    Resources:
    0
    Resources:
    0
    Uh, it's hard to understand what you want when you're writing the whole thing like poem.

    You can put integer in movement speed-affecting abilities like Boots of Speed, because it adds movement speed to the unit -- like how you wrote. 260 base movement speed + 60 boots of speed MS = 320 total MS.
    Auras like Unholy Aura increase MS as well, but they give a bonus % to movement speed.
    Percents are usually converted to real number with 100% being 1.00 real, 90% being 0.90, etc. which is the reason why real number is allowed for those abilities.

    How they stack?
    Well, in case of Unholy Aura, it takes ( [base movement speed] + [items] ) * [% bonus from aura].

    Example: Aura gives 10/20/30% bonus movement speed. Base movement speed is 150 and speed from item is 60.
    Movement Speed = (150 + 60) * 1,1 => 231
    Movement Speed = (150 + 60) * 1,2 => 252
    Movement Speed = (150 + 60) * 1,3 => 273

    I have no idea how abilities stack between themselves, however you can easily check it yourself.
    • Untitled Trigger 001
      • Events
        • Player - Player 1 (Red) skips a cinematic sequence
      • Conditions
      • Actions
        • Game - Display to (All players) the text: (Current speed: + (String((Current movement speed of *Your unit*))))

    This shows the current movement speed of *your unit* (buffs and items included). Tho be aware that this function seem to show only speed between 150.00 to 400.00, even if the current unit's speed is lesser or higher.
     
  4. Mythic

    Mythic

    Joined:
    Apr 24, 2012
    Messages:
    7,761
    Resources:
    106
    Models:
    90
    Icons:
    5
    Maps:
    3
    Spells:
    6
    Tutorials:
    2
    Resources:
    106
    Because the GP Constant isn't configured.
     
  5. GywGod133

    GywGod133

    Joined:
    Jul 16, 2012
    Messages:
    631
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    Okay thanks for helping +rep

    just I need math calculation thanks! :D