Уровни предмету

По аналогии с дагоном:
создаёшь item_custom_1, у которого прописываешь "MaxUpgradeLevel" "4" и "ItemBaseLevel" "1".
Для каждой характеристики прописываешь 4 значения, например, "AbilityCooldown" "35.0 30.0 25.0 20.0".
Создаёшь item_custom_2, item_custom_3... в которые копируешь весь код из item_custom_1, меняя только значение "ItemBaseLevel" на 2, 3 и 4.
И создаёшь рецепт, который item_custom_1 превратит в item_custom_2. Всё)
Чтобы узнать подробнее, открой items.txt и посмотри как там работают улучшения дагона)
 
Последнее редактирование:
  • Нравится
Реакции: renkolnk78
Код:
    "item_quelling_blade_custom_1"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "BaseClass"                        "item_lua"
        "ScriptFile"                    "item_quelling_blade"
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_AOE"
        "AbilityUnitTargetType"            "DOTA_UNIT_TARGET_TREE | DOTA_UNIT_TARGET_CUSTOM"
        "AbilityUnitTargetTeam"            "DOTA_UNIT_TARGET_TEAM_CUSTOM"
       
        "AbilityTextureName"            "item_quelling_blade"
        "Model"                            "models/props_gameplay/quelling_blade.vmdl"
        "AbilityCooldown"                "4.0"
        "AbilityManaCost"                "0"

        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "200"
        "ItemShopTags"                    "damage"
        "ItemQuality"                    "component"
        "ItemAliases"                    "qb;quelling blade"
        //"SideShop"                        "1"
        "ShouldBeSuggested"                "1"
        "ShouldBeInitiallySuggested"    "1"
   
        "MaxUpgradeLevel"                "4"
        "ItemBaseLevel"                    "1"

        "AbilityCastRange"                "250"
        // Special
        //-------------------------------------------------------------------------------------------------------------
        "AbilityValues"
        {
            "bonus_damage"            "10 20 50 100"
            "woodcutter_radius"        "50 100 250 500"
            "gold_per_cut"            "10 20 30 50"
        }
    }

    "item_recipe_quelling_blade_custom_2"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "BaseClass"                        "item_datadriven"
        "AbilityTextureName"             "item_recipe"
        "Model"                            "models/props_gameplay/recipe.vmdl"

        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "100"
        "ItemShopTags"                    ""

        // Recipe
        //-------------------------------------------------------------------------------------------------------------
        "ItemRecipe"                    "1"
        "ItemResult"                    "item_quelling_blade_custom_2"
        "ItemRequirements"
        {
            "01"                        "item_quelling_blade_custom_1"
        }
    }

    "item_quelling_blade_custom_2"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "BaseClass"                        "item_lua"
        "ScriptFile"                    "item_quelling_blade"
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_AOE"
        "AbilityUnitTargetType"            "DOTA_UNIT_TARGET_TREE | DOTA_UNIT_TARGET_CUSTOM"
        "AbilityUnitTargetTeam"            "DOTA_UNIT_TARGET_TEAM_CUSTOM"
       
        "AbilityTextureName"            "item_quelling_blade"
        "Model"                            "models/props_gameplay/quelling_blade.vmdl"
        "AbilityCooldown"                "4.0"
        "AbilityManaCost"                "0"

        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "200"
        "ItemShopTags"                    "damage"
        "ItemQuality"                    "component"
        "ItemAliases"                    "qb;quelling blade"
        //"SideShop"                        "1"
        "ShouldBeSuggested"                "1"
        "ShouldBeInitiallySuggested"    "1"
   
        "MaxUpgradeLevel"                "4"
        "ItemBaseLevel"                    "2"

        "AbilityCastRange"                "250"
        // Special
        //-------------------------------------------------------------------------------------------------------------
        "AbilityValues"
        {
            "bonus_damage"            "10 20 50 100"
            "woodcutter_radius"        "50 100 250 500"
            "gold_per_cut"            "10 20 30 50"
        }
    }

    "item_recipe_quelling_blade_custom_3"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "BaseClass"                        "item_datadriven"
        "AbilityTextureName"             "item_recipe"
        "Model"                            "models/props_gameplay/recipe.vmdl"

        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "100"
        "ItemShopTags"                    ""

        // Recipe
        //-------------------------------------------------------------------------------------------------------------
        "ItemRecipe"                    "1"
        "ItemResult"                    "item_quelling_blade_custom_3"
        "ItemRequirements"
        {
            "01"                        "item_quelling_blade_custom_2"
        }
    }

    "item_quelling_blade_custom_3"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "BaseClass"                        "item_lua"
        "ScriptFile"                    "item_quelling_blade"
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_AOE"
        "AbilityUnitTargetType"            "DOTA_UNIT_TARGET_TREE | DOTA_UNIT_TARGET_CUSTOM"
        "AbilityUnitTargetTeam"            "DOTA_UNIT_TARGET_TEAM_CUSTOM"
       
        "AbilityTextureName"            "item_quelling_blade"
        "Model"                            "models/props_gameplay/quelling_blade.vmdl"
        "AbilityCooldown"                "4.0"
        "AbilityManaCost"                "0"

        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "200"
        "ItemShopTags"                    "damage"
        "ItemQuality"                    "component"
        "ItemAliases"                    "qb;quelling blade"
        //"SideShop"                        "1"
        "ShouldBeSuggested"                "1"
        "ShouldBeInitiallySuggested"    "1"
   
        "MaxUpgradeLevel"                "4"
        "ItemBaseLevel"                    "3"

        "AbilityCastRange"                "250"
        // Special
        //-------------------------------------------------------------------------------------------------------------
        "AbilityValues"
        {
            "bonus_damage"            "10 20 50 100"
            "woodcutter_radius"        "50 100 250 500"
            "gold_per_cut"            "10 20 30 50"
        }
    }

    "item_recipe_quelling_blade_custom_4"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "BaseClass"                        "item_datadriven"
        "AbilityTextureName"             "item_recipe"
        "Model"                            "models/props_gameplay/recipe.vmdl"

        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "100"
        "ItemShopTags"                    ""

        // Recipe
        //-------------------------------------------------------------------------------------------------------------
        "ItemRecipe"                    "1"
        "ItemResult"                    "item_quelling_blade_custom_4"
        "ItemRequirements"
        {
            "01"                        "item_quelling_blade_custom_3"
        }
    }

    "item_quelling_blade_custom_4"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "BaseClass"                        "item_lua"
        "ScriptFile"                    "item_quelling_blade"
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_AOE"
        "AbilityUnitTargetType"            "DOTA_UNIT_TARGET_TREE | DOTA_UNIT_TARGET_CUSTOM"
        "AbilityUnitTargetTeam"            "DOTA_UNIT_TARGET_TEAM_CUSTOM"
       
        "AbilityTextureName"            "item_quelling_blade"
        "Model"                            "models/props_gameplay/quelling_blade.vmdl"
        "AbilityCooldown"                "4.0"
        "AbilityManaCost"                "0"

        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "200"
        "ItemShopTags"                    "damage"
        "ItemQuality"                    "component"
        "ItemAliases"                    "qb;quelling blade"
        //"SideShop"                        "1"
        "ShouldBeSuggested"                "1"
        "ShouldBeInitiallySuggested"    "1"
   
        "MaxUpgradeLevel"                "4"
        "ItemBaseLevel"                    "4"

        "AbilityCastRange"                "250"
        // Special
        //-------------------------------------------------------------------------------------------------------------
        "AbilityValues"
        {
            "bonus_damage"            "10 20 50 100"
            "woodcutter_radius"        "50 100 250 500"
            "gold_per_cut"            "10 20 30 50"
        }
    }
 
  • Нравится
Реакции: renkolnk78
Реклама: