#Abilities as modified base hero abilities?

1 messages · Page 1 of 1 (latest)

tender zephyr
#

Wanting to know if you can define abilities that inherit from base hero dota abilities.

Concrete Example:
If I want to give a custom Hero Magnus's Skewer ability, but adjust the damage values, distance, slow duration, etc.
Would I have to re-implement the ability in lua to do that,
or is there some way to say "use Magnus's Skewer, but change damage to X, distance to Y, etc."

Basically, I want to use the logic of the ability while adjusting some of the numbers.

I know that for this ability specifically, there's a Lua implementation at
https://github.com/Elfansoer/dota-2-lua-abilities/tree/80ca356e79ef4e9abf8c1eff01adcf0d10561009/scripts/vscripts/lua_abilities/magnus_skewer_lua
that I could copy, but I'm interested in the answer for the general case.
Especially in the case where there doesn't happen to already be an implementation available.

severe zinc
#

Ability overrides is a way to adjust only values

tender zephyr
#

Ty. I've got it adjusting the mana cost and cooldown.
For other things like speed how do I know what it's called internally?

#

I tried adding

"AbilitySpecial"
    {
      "01"
      {
        "var_type" "FIELD_FLOAT"
        "speed"       "9001"
       }
    }

but it didn't seem to do anything

pulsar kelp
tender zephyr
#

oh cool