DotA 2 Creating custom items

Sim

Forum Administrator
Staff member
This tutorial assumes you know your way a bit around the editor and have read and understood this tutorial at the very least.

So, custom items in the Dota 2 Workshop Tools are created in a special text file named "npc_items_custom.txt"

This file must be located in a specific place:

LocationofItemsCustom.jpg

Now that we know where it is, time to edit it. Inside, there should be 2 example items already: Recipe for Arcane Boots 2, and Arcane Boots 2 itself. What's more interesting to us right now, is to create a new item.

Let's create a new item named "Ice Mastery" which, unsurprisingly, gives ice-related powers to our owner. Also, the item is only purchasable through the secret shop. For fun.

This is what it looks like:

JASS:
//=================================================================================================================
    // Ice Mastery
    //=================================================================================================================
    "item_ice_mastery"
    {
        "ID"                            "1007"

        // General
        //-------------------------------------------------------------------------------------------------------------
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_PASSIVE"
        "BaseClass"                        "item_skadi"
        "AbilityTextureName"            "item_ice_mastery"

        // Stats    
        //-------------------------------------------------------------------------------------------------------------

        // Item Info
        //-------------------------------------------------------------------------------------------------------------
        "ItemCost"                        "20000"
        "ItemShopTags"                    "move_speed"
        "ItemQuality"                    "secret_shop"
        "ItemDeclarations"                "DECLARE_PURCHASES_TO_SPECTATORS"
        "ItemDisassembleRule"            "0"
        "ItemAlertable"                    "1"
        "ItemAliases"                    "ice mastery"
        "SecretShop"                    "1"
    
        // Special
        //-------------------------------------------------------------------------------------------------------------

        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                "FIELD_INTEGER"
                "bonus_all_stats"        "25"
            }
            "02"
            {
                "var_type"                "FIELD_INTEGER"
                "bonus_health"            "250"
            }
            "03"
            {
                "var_type"                "FIELD_INTEGER"
                "bonus_mana"            "250"
            }
            "04"
            {
                "var_type"                "FIELD_INTEGER"
                "cold_movement_speed"    "-35"
            }
            "05"
            {
                "var_type"                "FIELD_INTEGER"
                "cold_attack_speed"        "-35"
            }
            "06"
            {
                "var_type"                "FIELD_FLOAT"
                "cold_duration_melee"    "5.0"
            }
            "07"
            {
                "var_type"                "FIELD_FLOAT"
                "cold_duration_ranged"    "3.0"
            }
        }
    }
]

A majority of those lines are directly copied from the default Dota 2 Eye of Skadi in items.txt, which you should have extracted already. Here are the important lines to us and why.

"item_ice_mastery" this is the internal name of our item. Obviously important. It must be unique, AKA, not being used by any other of the items in your map.

"ID" Can be any number above 1006, but has to be unique. This is an internal value as well.

"AbilityBehavior" If your item has an ability, this is used to describe how it is used. This will be explained more in-depth in the second part of this tutorial. For now, it should match the original item_skadi in items.txt, which means that it's a passive item (no active effect).

"BaseClass" This line is used to state which item it is based on. In short, it tells what the item is. Basically, you have 2 choices. First, you can set it to an already-existing item in the default Dota 2 game, and reproduce that item. In this example, item_skadi is used, which means that it will behave exactly like Eye of Skadi (the + to all stats, + HP, + mana, and the slow orb effect). It could have been based on any of the default Dota 2 items. The second choice is to set the base class to "item_datadriven", which bases the item off nothing. As this is a complicated process, it will be covered in another tutorial.

"AbilityTextureName" is the icon your item uses. How to use a custom icon is covered in this thread.

"ItemCost" in gold. 20000 here.

"SecretShop" equal to 1. Very important, or else you won't be able to purchase it from the secret shop, even if you set it in your shop.

"AbilitySpecial" Here, the variables are given a value. In the case of our item based on Skadi, 7 variables are included with it, and their values have to be defined here. How do we know that? Sadly, we have to check the default Eye of Skadi, and copy them. Default items and abilities in the Dota 2 Editor are hardcoded into the game and thus, their base effects cannot be changed. Only the values of them

Using item_datadriven, however, allows the user to create his own custom items, with custom effects.

Back to our item, the 7 variables are Bonus All Stats, Bonus Health, Bonus Mana, cold movement speed slow, cold attack speed slow, cold duration on melee units, and cold duration on ranged units. Their values can be adjusted according to the power level of your map.

item_datadriven

This complicated tutorial is still a work in progress.
 
Last edited:
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    but yeah man you should come to Houston there is so much more opportunity here than San Antonio. Just look at all the homeless people on the Riverwalk and downtown there you cannot even walk down the street without getting mobbed them
  • The Helper The Helper:
    check out this place apparently it is the best roommate site out there roommates.com lol
  • Varine Varine:
    The homeless people reminded me of New York
  • Varine Varine:
    I'll check it out, my lease expires in like a few months so I need to figure something out.
  • Varine Varine:
    I tried to open a food truck in Sandpoint a few years ago but the city said no, then like two years later they passed new laws to encourage it and gave them all fucking tax breaks and shit. And at that point I didn't have enough money to go buy one so I was way too late to the game once other cities realized they could just bring their existing truck there, or sell their brick and mortar.
  • Varine Varine:
    I do like food trucks though, they're way more fun than restaurants and usually I also get some of that tip money there.
  • Varine Varine:
    Restaurants are really hard if you don't have a back up source of income to fund them sometimes, in my experience most owners either got really really lucky, had existing money that allowed them to buy an already successful one, or they have family money to fall back on for loans. It's few and far between to see very inspiring success stories where the person actually got it through hard work and perseverance. I thought about opening one lots and I always just end up not thinking it'll work. I would much rather just find someone that has that money and go work for them
  • The Helper The Helper:
    i am not talking about opening a brick and mortar I am talking about food trucks though I have seen some brick and mortar mexican places open up during covid that are doing good because there food is awesome!
  • The Helper The Helper:
    Food trucks are killing out here because Bars cannot open unless they sell food and the governor ok'd the use of a food truck in front as serving food
  • The Helper The Helper:
    Just not enough food trucks
  • The Helper The Helper:
    a buddy of mine just opened up a food truck and he is killing it but he is a great cook and has awesome food right in the middle of the pandemic too food trucks are immune to pandemic because they are take out in Texas you will always be able to get take out or delivery
  • The Helper The Helper:
    He is in the different food facebook groups in houston and posts videos of him making his food
  • The Helper The Helper:
    he is killing it
  • jonas jonas:
    @Varine with the restaurants, there surely is a lot of luck and hard work but most restaurants fail because they suck. Flair isn't right, economics not well thought through, food is mediocre or sucks, location is bad, etc. If you're thinking about opening one, make sure you're looking at the stories of those that would be playing at your level, don't let your hopes be dragged down by all the subpar restaurants out there.
  • jonas jonas:
    I'm a bit worried about the future of data science, there's an influx of incompetent people hired by incompetent managers, that can't last. But I'm sure smart data scientists will always be useful and hireable. Same as smart security people.
  • jonas jonas:
    My sister in law worked in a vegan food truck, the owners were also making a killing, added several trucks and opened two restaurants over 5 years
  • Ghan Ghan:
    The CompTIA stuff is pretty much crap unfortunately. The places that ask for those low-level certs aren't likely places you want to work. For IT you really want a degree, but in the meantime you need to figure out some way to learn the skills. Cybersecurity is really hot right now so competition is fierce.
  • tom_mai78101 tom_mai78101:
    I realized I don't have anything much to say, other than "Good luck!". Compared to other places, I'm just very lucky we didn't have a lot of surges of cases coming in.
  • The Helper The Helper:
    My daughter just got back from school at Georgetown TX, outside of Austin and said there were 100 cases in the last week but she also said nobody was wearing a mask anywhere so people mask up and stay safe!
    +2
  • thewrongvine thewrongvine:
    happy thanksgiving folks!
    +1
  • Ralle Ralle:
    PLOOB
  • Varine Varine:
    @Gyah Yeah I figured they aren't particularly valuable, but they'll at the least act as a baseline for some entry level work somewhere.
  • Varine Varine:
    I now see how horribly I spelled @Ghan
  • Varine Varine:
    I had a rough morning
  • The Helper The Helper:
    that field is going to explode and though there is competition there is going to be room for all levels in the coming years imho.

    Members online

    No members online now.

    Affiliates

    Hive Workshop
    Top