Простые вопросы #2

bobi

Пользователь
24 Июл 2017
42
7
8
Реакции
13 0 0
\dota 2 beta\game\dota_addons\твоя_кастомка\resource\flash3\images\items

а pack01_dir это vpk с дотовскими файлами
 
Реклама:

destructioN

Пользователь
16 Сен 2018
67
0
6
20
Проект
Great Labyrinth
Реакции
1 0 0
Как удалить предмет из кастомки?
 

Thunder Lane

Активный
30 Сен 2018
80
10
8
19
Проект
Thunder's COT RPG
Реакции
11 0 0
1. Как добавить созданный предмет в магазин?
2. Как добавить крафт предмета?
3. Как заменить иконку предмета?
Думаю разберешься что где менять
Крафт предмета :

//=================================================================================================================
// Recipe: Cuirass2
//=================================================================================================================
"item_recipe_cuirass2"
{
"AbilityTextureName" "recipe"
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "3004"
"Model" "models/props_gameplay/recipe.mdl"
"BaseClass" "item_datadriven"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "5000"
"ItemShopTags" "artifacts"

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_cuirass2"
"ItemRequirements"
{
"01" "item_assault"
}
}
 

Thunder Lane

Активный
30 Сен 2018
80
10
8
19
Проект
Thunder's COT RPG
Реакции
11 0 0

Вложения

destructioN

Пользователь
16 Сен 2018
67
0
6
20
Проект
Great Labyrinth
Реакции
1 0 0
Думаю разберешься что где менять
Крафт предмета :

//=================================================================================================================
// Recipe: Cuirass2
//=================================================================================================================
"item_recipe_cuirass2"
{
"AbilityTextureName" "recipe"
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "3004"
"Model" "models/props_gameplay/recipe.mdl"
"BaseClass" "item_datadriven"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "5000"
"ItemShopTags" "artifacts"

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_cuirass2"
"ItemRequirements"
{
"01" "item_assault"
}
}
Это в npc_items_custom кидать?
 
Реклама:
Реклама:

destructioN

Пользователь
16 Сен 2018
67
0
6
20
Проект
Great Labyrinth
Реакции
1 0 0
Крч, я хочу что-бы мой предмет крафтился из двух обычных бфов, я всё правильно сделал?

Код:
//=================================================================================================================
// Recipe: BattleFury 2
//=================================================================================================================
"1145"
{
"AbilityTextureName" "item_bfury"
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "1145"
"Model" "models/props_gameplay/recipe.mdl"
"BaseClass" "item_datadriven"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "9150"
"ItemShopTags" "bf"

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_bfury_datadriven"
"ItemRequirements"
{
"02" "item_bfury"
}
}
 

Thunder Lane

Активный
30 Сен 2018
80
10
8
19
Проект
Thunder's COT RPG
Реакции
11 0 0
Крч, я хочу что-бы мой предмет крафтился из двух обычных бфов, я всё правильно сделал?

Код:
//=================================================================================================================
// Recipe: BattleFury 2
//=================================================================================================================
"1145"
{
"AbilityTextureName" "item_bfury"
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "1145"
"Model" "models/props_gameplay/recipe.mdl"
"BaseClass" "item_datadriven"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "9150"
"ItemShopTags" "bf"

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_bfury_datadriven"
"ItemRequirements"
{
"02" "item_bfury"
}
}
Смешно , нет )
Сейчас скину как правильно + сразу с готовым рецептом (с моей кастомки)
Ну и еще я записал простой батлфьюри в вещь что бы просто указать статы и то что можно апать (для красоты)
//=================================================================================================================
// Recipe: Battle Fury2
//=================================================================================================================

"item_recipe_bfury2"
{
"AbilityTextureName" "recipe"
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "3059"
"Model" "models/props_gameplay/recipe.mdl"
"BaseClass" "item_datadriven"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" "artifacts"

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_bfury2"
"ItemRequirements"
{
"01" "item_bfury;item_bfury;"
}
}
//=================================================================================================================
// Battlefury2
//=================================================================================================================
"item_bfury2"
{
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "3060"
"BaseClass" "item_bfury" // unique ID number for this item. Do not change this once established or it will invalidate collected stats.
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_UNIT_TARGET"
"AbilityTextureName" "fury2"
"AbilityUnitTargetType" "DOTA_UNIT_TARGET_TREE | DOTA_UNIT_TARGET_CUSTOM"
"AbilityUnitTargetTeam" "DOTA_UNIT_TARGET_TEAM_CUSTOM"

"AbilityCastRange" "350"
"AbilityCastPoint" "0.0"
"AbilityCooldown" "4.0"


// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "4400"
"ItemShopTags" "damage;health_regen;mana_regen;hard_to_tag"
"ItemQuality" "epic"
"ItemAliases" "bf;battle fury"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
"ShouldBeSuggested" "1"
"ItemBaseLevel" "2"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "45 90 180"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_health_regen" "6 12 20"
}
"03"
{
"var_type" "FIELD_FLOAT"
"bonus_mana_regen" "2.25 5 10"
}
"04"
{
"var_type" "FIELD_INTEGER"
"cleave_damage_percent" "40 50 60"
}
"05"
{
"var_type" "FIELD_INTEGER"
"quelling_bonus" "150"
}
"06"
{
"var_type" "FIELD_INTEGER"
"quelling_bonus_ranged" "125 150"
}
"07"
{
"var_type" "FIELD_INTEGER"
"cleave_starting_width" "150"
}
"08"
{
"var_type" "FIELD_INTEGER"
"cleave_ending_width" "330"
}
"09"
{
"var_type" "FIELD_INTEGER"
"cleave_distance" "625"
}
"10"
{
"var_type" "FIELD_INTEGER"
"cast_range_tooltip" "350"
}
"11"
{
"var_type" "FIELD_INTEGER"
"cast_range_ward" "450"
}
"12"
{
"var_type" "FIELD_INTEGER"
"tooltip_quelling_bonus" "60"
}
"13"
{
"var_type" "FIELD_INTEGER"
"tooltip_quelling_bonus_ranged" "25"
}
}
}
"item_bfury"
{
"ItemBaseLevel" "1"

//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "45 90 180"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_health_regen" "6 12 20"
}
"03"
{
"var_type" "FIELD_FLOAT"
"bonus_mana_regen" "2.25 5 10"
}
"04"
{
"var_type" "FIELD_INTEGER"
"cleave_damage_percent" "40 50 60"
}
"05"
{
"var_type" "FIELD_INTEGER"
"quelling_bonus" "150"
}
"06"
{
"var_type" "FIELD_INTEGER"
"quelling_bonus_ranged" "125 150"
}
"07"
{
"var_type" "FIELD_INTEGER"
"cleave_starting_width" "150"
}
"08"
{
"var_type" "FIELD_INTEGER"
"cleave_ending_width" "330"
}
"09"
{
"var_type" "FIELD_INTEGER"
"cleave_distance" "625"
}
"10"
{
"var_type" "FIELD_INTEGER"
"cast_range_tooltip" "350"
}
"11"
{
"var_type" "FIELD_INTEGER"
"cast_range_ward" "450"
}
"12"
{
"var_type" "FIELD_INTEGER"
"tooltip_quelling_bonus" "60"
}
"13"
{
"var_type" "FIELD_INTEGER"
"tooltip_quelling_bonus_ranged" "25"
}
}
}
 

destructioN

Пользователь
16 Сен 2018
67
0
6
20
Проект
Great Labyrinth
Реакции
1 0 0
Смешно , нет )
Сейчас скину как правильно + сразу с готовым рецептом (с моей кастомки)
Ну и еще я записал простой батлфьюри в вещь что бы просто указать статы и то что можно апать (для красоты)
//=================================================================================================================
// Recipe: Battle Fury2
//=================================================================================================================

"item_recipe_bfury2"
{
"AbilityTextureName" "recipe"
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "3059"
"Model" "models/props_gameplay/recipe.mdl"
"BaseClass" "item_datadriven"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" "artifacts"

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_bfury2"
"ItemRequirements"
{
"01" "item_bfury;item_bfury;"
}
}
//=================================================================================================================
// Battlefury2
//=================================================================================================================
"item_bfury2"
{
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "3060"
"BaseClass" "item_bfury" // unique ID number for this item. Do not change this once established or it will invalidate collected stats.
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_UNIT_TARGET"
"AbilityTextureName" "fury2"
"AbilityUnitTargetType" "DOTA_UNIT_TARGET_TREE | DOTA_UNIT_TARGET_CUSTOM"
"AbilityUnitTargetTeam" "DOTA_UNIT_TARGET_TEAM_CUSTOM"

"AbilityCastRange" "350"
"AbilityCastPoint" "0.0"
"AbilityCooldown" "4.0"


// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "4400"
"ItemShopTags" "damage;health_regen;mana_regen;hard_to_tag"
"ItemQuality" "epic"
"ItemAliases" "bf;battle fury"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
"ShouldBeSuggested" "1"
"ItemBaseLevel" "2"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "45 90 180"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_health_regen" "6 12 20"
}
"03"
{
"var_type" "FIELD_FLOAT"
"bonus_mana_regen" "2.25 5 10"
}
"04"
{
"var_type" "FIELD_INTEGER"
"cleave_damage_percent" "40 50 60"
}
"05"
{
"var_type" "FIELD_INTEGER"
"quelling_bonus" "150"
}
"06"
{
"var_type" "FIELD_INTEGER"
"quelling_bonus_ranged" "125 150"
}
"07"
{
"var_type" "FIELD_INTEGER"
"cleave_starting_width" "150"
}
"08"
{
"var_type" "FIELD_INTEGER"
"cleave_ending_width" "330"
}
"09"
{
"var_type" "FIELD_INTEGER"
"cleave_distance" "625"
}
"10"
{
"var_type" "FIELD_INTEGER"
"cast_range_tooltip" "350"
}
"11"
{
"var_type" "FIELD_INTEGER"
"cast_range_ward" "450"
}
"12"
{
"var_type" "FIELD_INTEGER"
"tooltip_quelling_bonus" "60"
}
"13"
{
"var_type" "FIELD_INTEGER"
"tooltip_quelling_bonus_ranged" "25"
}
}
}
"item_bfury"
{
"ItemBaseLevel" "1"

//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "45 90 180"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_health_regen" "6 12 20"
}
"03"
{
"var_type" "FIELD_FLOAT"
"bonus_mana_regen" "2.25 5 10"
}
"04"
{
"var_type" "FIELD_INTEGER"
"cleave_damage_percent" "40 50 60"
}
"05"
{
"var_type" "FIELD_INTEGER"
"quelling_bonus" "150"
}
"06"
{
"var_type" "FIELD_INTEGER"
"quelling_bonus_ranged" "125 150"
}
"07"
{
"var_type" "FIELD_INTEGER"
"cleave_starting_width" "150"
}
"08"
{
"var_type" "FIELD_INTEGER"
"cleave_ending_width" "330"
}
"09"
{
"var_type" "FIELD_INTEGER"
"cleave_distance" "625"
}
"10"
{
"var_type" "FIELD_INTEGER"
"cast_range_tooltip" "350"
}
"11"
{
"var_type" "FIELD_INTEGER"
"cast_range_ward" "450"
}
"12"
{
"var_type" "FIELD_INTEGER"
"tooltip_quelling_bonus" "60"
}
"13"
{
"var_type" "FIELD_INTEGER"
"tooltip_quelling_bonus_ranged" "25"
}
}
}
Я уже сделал апнутый бф) Глянь
Код:
"item_bfury_datadriven"
    {
"BaseClass"                        "item_datadriven" "ID"                            "1145" "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_PASSIVE" "Model"                            "models/props_gameplay/red_box.vmdl" "Effect"                        "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName"            "bfury_custom"
        
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "9150"         "ItemShopTags"                    "damage;health_regen;mana_regen;hard_to_tag"
        "ItemQuality"                    "epic"
        "ItemAliases"                    "bf;battle fury"
        "ItemDeclarations"                "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
            
        // Special   
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"         {
            "01"
            {
                "var_type"                        "FIELD_INTEGER"
                "bonus_damage"                    "125"             }
            "02"
            {
                "var_type"                        "FIELD_INTEGER"
                "bonus_health_regen"            "12"             }
            "03"
            {
                "var_type"                        "FIELD_INTEGER"
                "bonus_mana_regen_percentage"    "350"             }
            "04"
            {
                "var_type"                        "FIELD_INTEGER"
                "cleave_damage_percent"            "70"             }
            "05"
            {
                "var_type"                        "FIELD_INTEGER"
                "cleave_radius"                    "300"             }
        }
        


        "Modifiers"         {
            "modifier_item_bfury_datadriven"
            {
                "Passive"            "1"
                "IsHidden"            "1"                 "Attributes"         "MODIFIER_ATTRIBUTE_MULTIPLE"                 
                "Properties"
                {
                    "MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE"        "%bonus_damage"                     "MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT"        "%bonus_health_regen"
                    "MODIFIER_PROPERTY_MANA_REGEN_PERCENTAGE"        "%bonus_mana_regen_percentage"                 
}



                
                "OnCreated"                 {
                    "RunScript"                     {
                        "ScriptFile"        "items/item_bfury.lua"                         "Function"            "modifier_item_bfury_datadriven_on_created"                     }
                }
                
                "OnDestroy"                 {
                    "RunScript"                     {
                        "ScriptFile"        "items/item_bfury.lua"                         "Function"            "modifier_item_bfury_datadriven_on_destroy"
                    }
                }
                
                        "ThinkInterval" ".03"                 "OnIntervalThink"                 {
                    "RunScript"
                    {
                        "ScriptFile"        "items/item_bfury.lua"
                        "Function"            "modifier_item_bfury_datadriven_on_interval_think" //функция проверки
                    }
                }
            }
            "modifier_item_bfury_datadriven_cleave" //Вот теперь тот самый сплэш.
            {
                "Passive"            "0"                     
                     "IsHidden"            "1"                 "Attributes"         "MODIFIER_ATTRIBUTE_MULTIPLE"                 
                "OnAttackLanded" //СОБЫТИЕ: когда юнит обладающий предметом атаковал
                {
                    "CleaveAttack"                     {
                        "CleavePercent"        "%cleave_damage_percent"                         "CleaveRadius"        "%cleave_radius"
                        "CleaveEffect"        "particles/items_fx/battlefury_cleave.vpcf"
                    }
                    
                    "FireSound"                     {
                        "EffectName"                "DOTA_Item.BattleFury"
                        "Target"                    "TARGET"
                    }
                }
                
                //Continually check to see if the hero this modifier is on is still melee
                //(since some units, like Troll Warlord, can switch between ranged/melee forms).
                "ThinkInterval" ".03" //ещё одна доп. проверка на ближника/дальника
                "OnIntervalThink"
                {
                    "RunScript"
                    {
                        "ScriptFile"        "items/item_bfury.lua"
                        "Function"            "modifier_item_bfury_datadriven_cleave_on_interval_think"
                    }
Скинь код чисто рецепта, без предмета, ато удалю лишнего :D
 

Thunder Lane

Активный
30 Сен 2018
80
10
8
19
Проект
Thunder's COT RPG
Реакции
11 0 0
Я уже сделал апнутый бф) Глянь
Код:
"item_bfury_datadriven"
    {
"BaseClass"                        "item_datadriven" "ID"                            "1145" "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_PASSIVE" "Model"                            "models/props_gameplay/red_box.vmdl" "Effect"                        "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName"            "bfury_custom"
       
        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "9150"         "ItemShopTags"                    "damage;health_regen;mana_regen;hard_to_tag"
        "ItemQuality"                    "epic"
        "ItemAliases"                    "bf;battle fury"
        "ItemDeclarations"                "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
           
        // Special  
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"         {
            "01"
            {
                "var_type"                        "FIELD_INTEGER"
                "bonus_damage"                    "125"             }
            "02"
            {
                "var_type"                        "FIELD_INTEGER"
                "bonus_health_regen"            "12"             }
            "03"
            {
                "var_type"                        "FIELD_INTEGER"
                "bonus_mana_regen_percentage"    "350"             }
            "04"
            {
                "var_type"                        "FIELD_INTEGER"
                "cleave_damage_percent"            "70"             }
            "05"
            {
                "var_type"                        "FIELD_INTEGER"
                "cleave_radius"                    "300"             }
        }
       


        "Modifiers"         {
            "modifier_item_bfury_datadriven"
            {
                "Passive"            "1"
                "IsHidden"            "1"                 "Attributes"         "MODIFIER_ATTRIBUTE_MULTIPLE"                
                "Properties"
                {
                    "MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE"        "%bonus_damage"                     "MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT"        "%bonus_health_regen"
                    "MODIFIER_PROPERTY_MANA_REGEN_PERCENTAGE"        "%bonus_mana_regen_percentage"                
}



               
                "OnCreated"                 {
                    "RunScript"                     {
                        "ScriptFile"        "items/item_bfury.lua"                         "Function"            "modifier_item_bfury_datadriven_on_created"                     }
                }
               
                "OnDestroy"                 {
                    "RunScript"                     {
                        "ScriptFile"        "items/item_bfury.lua"                         "Function"            "modifier_item_bfury_datadriven_on_destroy"
                    }
                }
               
                        "ThinkInterval" ".03"                 "OnIntervalThink"                 {
                    "RunScript"
                    {
                        "ScriptFile"        "items/item_bfury.lua"
                        "Function"            "modifier_item_bfury_datadriven_on_interval_think" //функция проверки
                    }
                }
            }
            "modifier_item_bfury_datadriven_cleave" //Вот теперь тот самый сплэш.
            {
                "Passive"            "0"                    
                     "IsHidden"            "1"                 "Attributes"         "MODIFIER_ATTRIBUTE_MULTIPLE"                
                "OnAttackLanded" //СОБЫТИЕ: когда юнит обладающий предметом атаковал
                {
                    "CleaveAttack"                     {
                        "CleavePercent"        "%cleave_damage_percent"                         "CleaveRadius"        "%cleave_radius"
                        "CleaveEffect"        "particles/items_fx/battlefury_cleave.vpcf"
                    }
                   
                    "FireSound"                     {
                        "EffectName"                "DOTA_Item.BattleFury"
                        "Target"                    "TARGET"
                    }
                }
               
                //Continually check to see if the hero this modifier is on is still melee
                //(since some units, like Troll Warlord, can switch between ranged/melee forms).
                "ThinkInterval" ".03" //ещё одна доп. проверка на ближника/дальника
                "OnIntervalThink"
                {
                    "RunScript"
                    {
                        "ScriptFile"        "items/item_bfury.lua"
                        "Function"            "modifier_item_bfury_datadriven_cleave_on_interval_think"
                    }
Скинь код чисто рецепта, без предмета, ато удалю лишнего :D
//=================================================================================================================
// Recipe: Battle Fury2
//=================================================================================================================

"item_recipe_bfury2"
{
"AbilityTextureName" "recipe"
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "3059"
"Model" "models/props_gameplay/recipe.mdl"
"BaseClass" "item_datadriven"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" "artifacts"

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_bfury2"
"ItemRequirements"
{
"01" "item_bfury;item_bfury;"
}
}
 

destructioN

Пользователь
16 Сен 2018
67
0
6
20
Проект
Great Labyrinth
Реакции
1 0 0
//=================================================================================================================
// Recipe: Battle Fury2
//=================================================================================================================

"item_recipe_bfury2"
{
"AbilityTextureName" "recipe"
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "3059"
"Model" "models/props_gameplay/recipe.mdl"
"BaseClass" "item_datadriven"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" "artifacts"

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_bfury2"
"ItemRequirements"
{
"01" "item_bfury;item_bfury;"
}
}
Спасибо
 
Реклама:
Реклама: