Dota 2 Workshop Tools/Scripting: Difference between revisions
Jump to navigation
Jump to search
Line 33: | Line 33: | ||
== Lua Resources == | == Lua Resources == | ||
* [http://www.lua.org/ Official Lua Website] | * [http://www.lua.org/ Official Lua Website] | ||
* [http://www.lua.org/pil/ Programming in Lua] - Good resource for learning Lua. If you're new to Lua or programming this is a good reference point to start from. | |||
* [http://www.lua.org/pil/contents.html Programming In Lua - Online] - First edition of the above book is available online for free. | |||
* [https://github.com/bhargavrpatel/Dota-2-Sublime-Packages Sublime Text 2/3 Snippets for all functions] | * [https://github.com/bhargavrpatel/Dota-2-Sublime-Packages Sublime Text 2/3 Snippets for all functions] | ||
{{shortpagetitle}} | {{shortpagetitle}} | ||
[[Category:Dota 2 Workshop Tools]] | [[Category:Dota 2 Workshop Tools]] |
Revision as of 16:05, 19 August 2014
Template:Otherlang2 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
Reference
- Scripting API
- Scripting Constants
- Built-In Engine Events (warning: many broken)
- Built-In Ability Names
- Built-In Modifier Names
- Heroes Internal Names
- Built-In Unit Names
Examples
- Simple trigger that calls Lua
- Data driven item that drops upon death
- Motion Controller Example
- Creating a Tower Example
Lua Resources
- Official Lua Website
- Programming in Lua - Good resource for learning Lua. If you're new to Lua or programming this is a good reference point to start from.
- Programming In Lua - Online - First edition of the above book is available online for free.
- Sublime Text 2/3 Snippets for all functions