Problem with custom abilities

Hi, i'm new on Dota Scripting, i wanted to change pudge passive but new one, when i build, in-game there is only 3 spells and the new one don't appear i also followed this tutorial: i did everything the same the hero etc... and the same problem here is the npc_abilities_custom file:

// Dota Heroes File
"DOTAAbilities"
{
    "Version"       "1"

    //=================================================================================================================
    // Axe: Strengyper
    //=================================================================================================================
    "axe_streng"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "BaseClass" "ability_lua"
        "AbilityBehavior"               "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE"
        "ScriptFile"        "axe_streng"
        "AbilityTextureName"        "shadow_demon_soul_catcher"

        // Casting
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastPoint"              "0.0 0.0 0.0 0.0"

        // Time     
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCooldown"               "30 60 80 95"

        // Cost
        //-------------------------------------------------------------------------------------------------------------
        "AbilityManaCost"               "100 200 250 325"

        // Duration
        "AbilityDuration" "5 15 18 21"

        // Special
        //-------------------------------------------------------------------------------------------------------------

        }

    //=================================================================================================================
    // Pudge : Poison Ocean
    //=================================================================================================================

    "pudge_poison_ocean_datadriven"
    {

        // General
        "BaseClass" ability_datadriven"
        "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
        "AbilityTextureName" "venomancer_poison_sting"
        "AbilityUnitDamageType"  "DAMAGE_TYPE_MAGICAL"
        "AbilityCastRange"  "300"
        "AbilityDuration" "5"
        "AbilityDamage" "100 175 225 275"
        "AbilityManaCost"   "175"


        "precache"
        {
            "particle" "particles/units/heroes/hero_viper/viper_nethertoxin.vpcf_c"
        }

        "OnToggleOn"
        {


        "ApplyModifier"
        {
            "ModifierName"   "modifier_pudge_poison_ocean_datadriven"
            "Target"     "UNIT"

        }
        }
        "OnToggleOff"
        {
        "RemoveModifier"
            {
                "ModifierName"          "modifier_pudge_poison_ocean_datadriven"
                "Target"        "UNIT"
                }
        }


    "modifier_pudge_poison_ocean_datadriven"
    {

    "IsHidden" "0"
    "IsDebuff" "1"
    "Duration" "%duration"

        "OnDeath"
        {
            "Damage"
                {
                    "Target"
                        {
                            "Center" "UNIT"
                            "Radius" "%radius"
                            "Teams" "DOTA_UNIT_TARGET_TEAM_ENEMY"
                            "Types" "DOTA_UNIT_TARGET_TEAM_HERO"


    }


            "Type" "DAMAGE_TYPE_MAGICAL"
            "Damage" "%AbilityDamage"

            }
        }
    }


}


    //=================================================================================================================
    // Abaddon: Deadly Strength
    //=================================================================================================================

    "abaddon_deadly_strength"
    {

    // General
    "BaseClass" "ability_lua"
    "ScriptFile"    "abaddon_deadly_strength_lua"
    "AbilityBehavior"  "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE"

    // Casting
    "AbilityCastPoint" "0.0 0.0 0.0 0.0"
    // Time
    "AbilityCooldown" "15.0 12.0 8.0 2.0"
    // Mana
    "AbilityManaCost"   "100"   

    }





}

and the npc_heroes_custom file

// Dota Heroes File // NOTE: This is not for creating new heroes, this is for taking a currently existing hero as a template and overriding // the specified key-value combinations. Use override_hero for this. "DOTAHeroes" { //================================================================================================================= // Axe //================================================================================================================= "npc_dota_hero_axe" { "override_hero" "npc_dota_hero_axe" // Hero to override "Ability1" "axe_streng" // Ability 1 "VisionNighttimeRange" "1800" // Range of vision at night time. }

//=================================================================================================================
// Pudge
//=================================================================================================================

"npc_dota_hero_pudge_override" { "override_hero" "npc_dota_hero_pudge" "Ability3" "pudge_poison_ocean_datadriven" } //================================================================================================================= // Abaddon //================================================================================================================= "npc_dota_hero_abaddon_deadly_strength"

{

"override_hero" "npc_dota_hero_abaddon"
"Ability1"      "abaddon_deadly_strength_lua"
}

}

Comments

  • Posts: 5

    Oops i failed in the npc_heroes_custom file here is it:

    // Dota Heroes File
    // NOTE: This is not for creating new heroes, this is for taking a currently existing hero as a template and overriding
    // the specified key-value combinations.  Use override_hero <hero_to_override> for this.
    "DOTAHeroes"
    {
        //=================================================================================================================
        // Axe
        //=================================================================================================================
    "npc_dota_hero_axe"
        {
            "override_hero"             "npc_dota_hero_axe"         // Hero to override
            "Ability1"                  "axe_streng"        // Ability 1
            "VisionNighttimeRange"      "1800"                                      // Range of vision at night time.
        }
    
        //=================================================================================================================
        // Pudge
        //=================================================================================================================
    "npc_dota_hero_pudge_override"
        {
            "override_hero"             "npc_dota_hero_pudge"
            "Ability3"              "pudge_poison_ocean_datadriven"
        }
        //=================================================================================================================
        // Abaddon
        //=================================================================================================================
    "npc_dota_hero_abaddon_deadly_strength"
    
        {
    
        "override_hero" "npc_dota_hero_abaddon"
        "Ability1"      "abaddon_deadly_strength_lua"
        }
    
    
    }
    
    
  • Posts: 5

    Fixed it