Strategy tips for building your Dota 2 bot

Your goal is to code a bot that faces the built-in AI. The challenge is to destroy the Dire’s Ancient as fast as possible!

Remember that you can choose the heroes that your AI will control. So, get familiar with the available heroes by:

Designing a strategy!

Once you’ve chosen heroes for your party, you should get familiar with how to use their abilities (and talents) from the framework. For this:

Attack!

Your bots are expected to attack. A lot. Get used to doing this from the framework:

Killing blow and Deny

Killing creeps and heroes rewards opponent heroes with Gold and Experience.

  • Gold lets heroes purchase items at the shops. It’s ONLY rewarded to the hero that delivers the KILLING BLOW to the creep. Heroes also get gold at a 0,63 gold/second base rate.
  • Experience lets heroes upgrade. It’s rewarded evenly to all opponent heroes close (1500 radius) to the killed creep or hero.

Players can DENY enemies from delivering the KILLING BLOW to an ally creep/hero, by killing it themselves. If I deny one of my creeps, the enemies get only half the experience and no gold.

Keep in mind that KILLING BLOW and DENY are two key Dota 2 tactics.

Buying items

Heroes can buy items in the shops with gold. Per team, there is a base shop close to each Ancient, and a secret shop in the Jungle. Buying and equipping items is as important (if not more) than levelling up and upgrading, hence the importance of delivering the KILLING BLOW and DENYING.

When killed, heroes lose the gold they obtained from killed creeps and enemy heroes (unreliable gold). Getting killed makes heroes lose gold and stay out of the game for a while, hence the importance of not getting killed.

Therefore:

IMPORTANT about shopping items:

  • The 5v5 Framework doesn’t implement the courier, which means that’s not available for any party.
  • This implies that, when your hero wants to purchase and equip an item, that hero must be near a shop.
  • Items purchased away from shops will go directly into the hero’s stash, and there’s no way to move them to the inventory or backpack from the framework.

Experience and level up

Heroes upgrade (level up) every time they gain a given amount of experience. Levelling up increases the hero’s stats and lets the player choose or upgrade one of the 4 available unique hero abilities.

Getting to know your hero’s abilities (and talents) and how to use them is key.

When killed, heroes never lose experience or levels, and they get respawned next to their ancients after a considerable delay (depending on level).

Additional notes

Dota 2 is an alive, vibrant, and very active online community!

The International runs from 2011 (except 2020): https://www.dota2.com/international/overview/

There are lots of websites where players post and discuss hero “builds”, strategies, guides, etc. E.g. https://www.dotafire.com/dota-2/guides?sort_type=score_decayed&threshold=guides

On the downside, the community has a strong lingo and technical concepts that you should get familiar with. Here’s a nice summary: https://www.rockpapershotgun.com/2015/02/11/beginners-glossary-dota-2/