Не появляется кастомный предмет в доте

HappyFeedFriends

Друзья CG
14 Авг 2017
540
32
Проект
Battle Heroes Arena
Создал предмет,вроде всё как надо.... Но он не появляется в доте.
Может в коде что-то не так? Или я просто деревянный?
Буду безумно благодарен если подскажите,что тут не так.
Код:
"item_Branch_of_FATE"
{
    // General
    //-------------------------------------------------------------------------------------------------------------
    "BaseClass"                        "item_datadriven"
    "ID"                            "1101"  
    "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_PASSIVE"
    "Model"                            "models/props_gameplay/red_box.vmdl" 
    "Effect"                        "particles/generic_gameplay/dropped_item.vpcf"
    "AbilityTextureName"            "custom\BranchofFATE.png"
   
    // Item Info
    //-------------------------------------------------------------------------------------------------------------
    "ItemCost"                        "1200"
    "ItemShopTags"                    "agi;int;str"
    "ItemQuality"                    "component"
    "ItemAliases"                    "BranchofFATE"
       
    // Special   
    //-------------------------------------------------------------------------------------------------------------
    "AbilitySpecial"
    {
        "01"
        {
            "var_type"                "FIELD_INTEGER"
            "bonus_all_stats"        "2400"
        }
    }
   
    "Modifiers"
    {
        "modifier_item_bloodybranch"
        {
            "Passive"            "1"
            "IsHidden"            "1"
            "Attributes"         "MODIFIER_ATTRIBUTE_MULTIPLE"
           
            "Properties"
            {
                "MODIFIER_PROPERTY_STATS_STRENGTH_BONUS"        "%bonus_all_stats"
                "MODIFIER_PROPERTY_STATS_AGILITY_BONUS"            "%bonus_all_stats"
                "MODIFIER_PROPERTY_STATS_INTELLECT_BONUS"        "%bonus_all_stats"
            }
        }
    }
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 

-ExotiC-

Какой-то ноунэйм
Команда форума
11 Авг 2014
498
56
customgames.ru
Добавить предмет в магазин
scripts/shops/названиеКарты_shops.txt
Название карты - то что в хаммере редактируешь .vmap.

Тут пример файла
 

HappyFeedFriends

Друзья CG
14 Авг 2017
540
32
Проект
Battle Heroes Arena
Добавить предмет в магазин
scripts/shops/названиеКарты_shops.txt
Название карты - то что в хаммере редактируешь .vmap.

Тут пример файла
Его вообще нету,даже через консоль не появляется в инвентаре.
P.S В магазин он и так добавлен
 

Илья

Друзья CG
25 Сен 2015
2,348
41
Дело может быть в регистрах. Строчными буквами называй.
Ну и скинь содержимое npc_items_custom.txt
 
  • Нравится
Реакции: -ExotiC-

HappyFeedFriends

Друзья CG
14 Авг 2017
540
32
Проект
Battle Heroes Arena
Дело может быть в регистрах. Строчными буквами называй.
Ну и скинь содержимое npc_items_custom.txt
Попробывал строчными - нету его.
Скинуть полностью скрипт не выходит. Скину последнюю часть до кастомного моего предмета и с ним.
Код:
    //=================================================================================================================
    // Shadow Amulet
    //=================================================================================================================
    "item_shadow_amulet"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "215"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_IMMEDIATE | DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_CHANNEL | DOTA_ABILITY_BEHAVIOR_DONT_RESUME_MOVEMENT"
        "AbilityUnitTargetTeam"            "DOTA_UNIT_TARGET_TEAM_FRIENDLY"
        "AbilityUnitTargetType"            "DOTA_UNIT_TARGET_HERO"
        "FightRecapLevel"                "1"


        // Stats      
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastRange"                "600"
        "AbilityCooldown"                "7.0"
        "AbilityManaCost"                "0"
      
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "1300"
        "ItemShopTags"                    ""
        "ItemAliases"                    "shadow amulet"
      
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {          
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "bonus_attack_speed"    "2000"
            }
            "02"
            {
                "var_type"                "FIELD_FLOAT"
                "fade_time"                "1.25"
            }
        }
    }

    //=================================================================================================================
    // Recipe: Glimmer Cape
    //=================================================================================================================
    "item_recipe_glimmer_cape"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "253"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
  
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "0"  
        "ItemShopTags"                    ""
      
        // Recipe
        //-------------------------------------------------------------------------------------------------------------
        "ItemRecipe"                    "1"
        "ItemResult"                    "item_glimmer_cape"
        "ItemRequirements"
        {
            "01"                        "item_shadow_amulet;item_cloak"
        }
    }

    //=================================================================================================================
    // Glimmer Cape
    //=================================================================================================================
    "item_glimmer_cape"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "254"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_IMMEDIATE | DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_CHANNEL | DOTA_ABILITY_BEHAVIOR_DONT_RESUME_MOVEMENT"
        "AbilityUnitTargetTeam"            "DOTA_UNIT_TARGET_TEAM_FRIENDLY"
        "AbilityUnitTargetType"            "DOTA_UNIT_TARGET_HERO"
        "FightRecapLevel"                "1"
        "SpellDispellableType"            "SPELL_DISPELLABLE_YES"

        // Stats      
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastRange"                "800"
        "AbilityCooldown"                "14.0"
        "AbilityManaCost"                "90"
      
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "1850"
        "ItemShopTags"                    ""
        "ItemQuality"                    "rare"
        "ItemAliases"                    "glimmer cape"
        "ItemDisassembleRule"            "DOTA_ITEM_DISASSEMBLE_ALWAYS"
      
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {          
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "bonus_attack_speed"    "2000"
            }
            "02"
            {
                "var_type"                "FIELD_INTEGER"
                "bonus_magical_armor"    "35"
            }
            "03"
            {
                "var_type"                "FIELD_FLOAT"
                "fade_delay"                "0.6"
            }
            "04"
            {
                "var_type"                "FIELD_INTEGER"
                "active_magical_armor"    "45"
            }
            "05"
            {
                "var_type"                "FIELD_FLOAT"
                "duration"    "5"
            }
            "06"
            {
                "var_type"                "FIELD_INTEGER"
                "tooltip_range"            "800"
            }
        }
    }


  
    // next free ID: who knows, if this is a real item find a number below 255 that hasn't been used



    //================================================================================================================
    //================================================================================================================
    // SPECIAL EVENT ITEMS WITH ITEM IDS GREATER THAN 255 GO BELOW HERE
    // THESE WILL NOT SHOW UP PROPERLY IN THE MATCH HISTORY DATABASE
    //================================================================================================================
    //================================================================================================================

    //=================================================================================================================
    // RiverPainter
    //=================================================================================================================
    "item_river_painter"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "1021"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_POINT"
      

        // Stats
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastRange"                "200"
        "AbilityCastPoint"                "0.0"
        "AbilityCooldown"                "0.0"
      
      
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "0"
        "ItemQuality"                    "component"
        "ItemAliases"                    "paint"
        "ItemStockMax"                    "1"
        "ItemStockInitial"                "1"
        "ItemStackable"                    "1"
        "ItemStockTime"                    "900.0"
        "AssociatedConsumable"            "17022"
        "EventID"                        "14"
        "PlayerSpecificCooldown"        "1"
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "paint_duration"        "900.0"
            }
        }
    }
    //=================================================================================================================
    // RiverPainter2
    //=================================================================================================================
    "item_river_painter2"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "1022"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_POINT"
      

        // Stats
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastRange"                "200"
        "AbilityCastPoint"                "0.0"
        "AbilityCooldown"                "0.0"
      
      
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "0"
        "ItemQuality"                    "component"
        "ItemAliases"                    "paint"
        "ItemStockMax"                    "1"
        "ItemStockInitial"                "1"
        "ItemStackable"                    "1"
        "ItemStockTime"                    "900.0"
        "AssociatedConsumable"            "17023"
        "EventID"                        "14"
        "PlayerSpecificCooldown"        "1"
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "paint_duration"        "900.0"
            }
        }
    }
    //=================================================================================================================
    // RiverPainter3
    //=================================================================================================================
    "item_river_painter3"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "1023"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_POINT"
      

        // Stats
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastRange"                "200"
        "AbilityCastPoint"                "0.0"
        "AbilityCooldown"                "0.0"
      
      
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "0"
        "ItemQuality"                    "component"
        "ItemAliases"                    "paint"
        "ItemStockMax"                    "1"
        "ItemStockInitial"                "1"
        "ItemStackable"                    "1"
        "ItemStockTime"                    "900.0"
        "AssociatedConsumable"            "17024"
        "EventID"                        "14"
        "PlayerSpecificCooldown"        "1"
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "paint_duration"        "900.0"
            }
        }
    }
    //=================================================================================================================
    // RiverPainter4
    //=================================================================================================================
    "item_river_painter4"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "1024"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_POINT"
      

        // Stats
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastRange"                "200"
        "AbilityCastPoint"                "0.0"
        "AbilityCooldown"                "0.0"
      
      
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "0"
        "ItemQuality"                    "component"
        "ItemAliases"                    "paint"
        "ItemStockMax"                    "1"
        "ItemStockInitial"                "1"
        "ItemStackable"                    "1"
        "ItemStockTime"                    "900.0"
        "AssociatedConsumable"            "17025"
        "EventID"                        "14"
        "PlayerSpecificCooldown"        "1"
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "paint_duration"        "900.0"
            }
        }
    }
    //=================================================================================================================
    // RiverPainter5
    //=================================================================================================================
    "item_river_painter5"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "1025"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_POINT"
      

        // Stats
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastRange"                "200"
        "AbilityCastPoint"                "0.0"
        "AbilityCooldown"                "0.0"
      
      
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "0"
        "ItemQuality"                    "component"
        "ItemAliases"                    "paint"
        "ItemStockMax"                    "1"
        "ItemStockInitial"                "1"
        "ItemStackable"                    "1"
        "ItemStockTime"                    "900.0"
        "AssociatedConsumable"            "17026"
        "EventID"                        "14"
        "PlayerSpecificCooldown"        "1"
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "paint_duration"        "900.0"
            }
        }
    }
    //=================================================================================================================
    // RiverPainter6
    //=================================================================================================================
    "item_river_painter6"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "1026"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_POINT"
      

        // Stats
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastRange"                "200"
        "AbilityCastPoint"                "0.0"
        "AbilityCooldown"                "0.0"
      
      
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "0"
        "ItemQuality"                    "component"
        "ItemAliases"                    "paint"
        "ItemStockMax"                    "1"
        "ItemStockInitial"                "1"
        "ItemStackable"                    "1"
        "ItemStockTime"                    "900.0"
        "AssociatedConsumable"            "17027"
        "EventID"                        "14"
        "PlayerSpecificCooldown"        "1"
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "paint_duration"        "900.0"
            }
        }
    }
    // next free ID: 268
    //=================================================================================================================
    // RiverPainter7
    //=================================================================================================================
    "item_river_painter7"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                            "1027"                                                        // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_POINT"

        // Stats
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastRange"                "200"
        "AbilityCastPoint"                "0.0"
        "AbilityCooldown"                "0.0"
      
      
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "0"
        "ItemQuality"                    "component"
        "ItemAliases"                    "paint"
        "ItemStockMax"                    "1"
        "ItemStockInitial"                "1"
        "ItemStackable"                    "1"
        "ItemStockTime"                    "900.0"
        "AssociatedConsumable"            "17047"
        "EventID"                        "14"
        "PlayerSpecificCooldown"        "1"
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "paint_duration"        "900.0"
            }
        }
    }
    // next free ID: 268
}








///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////Custom//////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

"item_Branch_of_fate"
{
    // General
    //-------------------------------------------------------------------------------------------------------------
    "BaseClass"                        "item_datadriven"
    "ID"                            "1101"  //Valve's version of this item uses the ID "20".
    "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_PASSIVE"
    "Model"                            "models/props_gameplay/red_box.vmdl"
    "Effect"                        "particles/generic_gameplay/dropped_item.vpcf"
    "AbilityTextureName"            "custom\BranchofFATE.png"
  
    // Item Info
    //-------------------------------------------------------------------------------------------------------------
    "ItemCost"                        "1200"
    "ItemShopTags"                    "agi;int;str"
    "ItemQuality"                    "component"
    "ItemAliases"                    "BranchofFATE"
      
    // Special  
    //-------------------------------------------------------------------------------------------------------------
    "AbilitySpecial"
    {
        "01"
        {
            "var_type"                "FIELD_INTEGER"
            "bonus_all_stats"        "2400"
        }
    }
  
    "Modifiers"
    {
        "modifier_item_bloodybranch"
        {
            "Passive"            "1"
            "IsHidden"            "1"
            "Attributes"         "MODIFIER_ATTRIBUTE_MULTIPLE"
          
            "Properties"
            {
                "MODIFIER_PROPERTY_STATS_STRENGTH_BONUS"        "%bonus_all_stats"
                "MODIFIER_PROPERTY_STATS_AGILITY_BONUS"            "%bonus_all_stats"
                "MODIFIER_PROPERTY_STATS_INTELLECT_BONUS"        "%bonus_all_stats"
            }
        }
    }
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 

Илья

Друзья CG
25 Сен 2015
2,348
41
Ну понятно, ты предмет за границами инициализации разместил.

...Так же из этого понятно, что предмет явно не твой, а просто скопирован откуда-то. Но да это не так важно, просто отбивает желание дальше пояснять ошибки...
 
Реклама: