Scripting
Jump to navigation
Jump to search
Scripting in Dota 2 is handled by the Lua programming language. Lua will be launched at run time when Dota 2 loads your add-on and can manipulate most facets of the game. Scripts can control the events that happen in game modes, game rules, abilities, hero interactions, neutrals , AI, and many more.
Getting Started
Scripting Abilities
Common Techniques
- Thinkers
- Console Commands
- Dedicated VConsole Log Viewer
- Simple trigger that calls Lua
- Moderate example on data driven item that drops upon death
Reference
- Dota 2 Scripting API
- Dota 2 Scripting Constants
- Built-In Engine Events
- Built-In Ability Names
- Built-In Modifier Names
- Heroes Internal Names