Решено Нужна помощь в создании абилки!

Dowakhin

Новичок
14 Июл 2020
7
0
Вот код:

KV:
"Aragorn_acelas"
    {
        "BaseClass"                     "ability_datadriven"
        "AbilityTextureName"            "Aragorn_acelas"
        "MaxLevel"                         "4"                               
        "AbilityType"                   "DOTA_ABILITY_TYPE_BASIC"               
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_NO_TARGET"
        "AbilityUnitTargetTeam"            "DOTA_UNIT_TARGET_TEAM_FRIENDLY"
        "AbilityUnitTargetType"            "DOTA_UNIT_TARGET_HERO"
        "AbilityUnitDamageType"            "DAMAGE_TYPE_PURE"
        "SpellImmunityType"                "SPELL_IMMUNITY_ALLIES_YES"
        "FightRecapLevel"                "1"
        "AbilitySound"                    "Hero_Omniknight.Purification"

        // Casting
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastPoint"                "1"
        
        // Time       
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCooldown"                "18 16 14 12"
        
        // Cost
        //-------------------------------------------------------------------------------------------------------------
        "AbilityManaCost"                "85 100 115 130"
        
        // Special
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "heal"                    "90 160 230 300"
            }
            "02"
            { 
                "var_type"              "FIELD_INTEGER"
                "duration"              "3"
            }
        }
        "OnSpellStart"
        {
            "ApplyModifier"
            {
                "ModifierName"    "HEALING"
                "Target"         "CASTER"
                "Duration"        "%duration"
            }
        }
        "Modifiers"
        {
            "HEALING"
            {
                "Passive"            "0"
                "IsHidden"            "0"
                "IsDebuff"            "0"
                "OnCreated"
                {
                    "AttachEffect"
                    {
                        "EffectName"        "particles/econ/events/ti7/ti7_hero_effect_magic.vpcf"
                        "EffectAttachType"    "follow_origin"
                        "Target"            "CASTER"
                    }
                    "Heal"
                     {
                          "Target"        "CASTER"
                          "HealAmount"      "%heal"
                     }
                }
            }
        }
    }
KV:
"Aragorn"
    {
        "override_hero"                "npc_dota_hero_sven"            // Hero to override
        "Ability1"                    "Aragorn_acelas"   
        "Ability2"                    ""   
        "Ability4"                  ""
        "Ability3"                    ""   
        "Ability5"                    ""   
        "Ability6"                    ""
        //"AbilityTalentStart"        "10"

        // Armor
        //-------------------------------------------------------------------------------------------------------------
        "ArmorPhysical"        "1"
        "MagicalResistance"        "25"

        // Attack
        //-------------------------------------------------------------------------------------------------------------
        "AttackCapabilities"        "DOTA_UNIT_CAP_MELEE_ATTACK"
        "BaseAttackSpeed"            "100"
        "AttackDamageMin"            "40"
        "AttackDamageMax"            "50"
        "AttackRange"                "150"

        // Attributes
        //-------------------------------------------------------------------------------------------------------------
        "AttributePrimary"            "DOTA_ATTRIBUTE_AGILITY"
        "AttributeBaseStrength"        "1"
        "AttributeStrengthGain"        "1"
        "AttributeBaseIntelligence" "1"
        "AttributeIntelligenceGain"    "1"
        "AttributeBaseAgility"        "1"
        "AttributeAgilityGain"        "3"

        // Status
        //-------------------------------------------------------------------------------------------------------------
        "StatusHealth"        "200"
        "StatusMana"        "75"
        "StatusManaRegen"    "1"

    }
В игре способность не отображается. Начал делать только недавно, новичок в этом деле...
 
Реклама: