计算机 · 2021年12月18日 0

build a dota2 ai

Tired of endless dota2 matches, write a dota2 bot script for fun.

Start Place

For short, make a copy of directory dota 2 beta/game/dota/scripts/vscripts/bots_example and name it as bots. Then you can start with rewrite some functions in the bot example scripts.

Official Wiki

Learn Lua first

Valve Official Wiki

Introduction

No need to do image recognization.

3 levels for bots to evaluate and make decisions:

  1. team level
  2. mode level
  3. action level

3 important files for game data:

  1. npc_abilities.txt
  2. npc_heroes.txt
  3. npc_units.txt