Dota 2 Workshop Tools/Scripting: Difference between revisions
Jump to navigation
Jump to search
Foreverddong (talk | contribs) No edit summary |
Foreverddong (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{otherlang2 | {{otherlang2 | ||
|zh-cn = Dota 2 Workshop Tools:zh_cn/Scripting:zh_cn | |||
|ru= Dota 2 Workshop Tools:ru/Scripting:ru | |ru= Dota 2 Workshop Tools:ru/Scripting:ru | ||
}} | }} | ||
Scripting in Dota 2 is handled by the [http://www.lua.org 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. | Scripting in Dota 2 is handled by the [http://www.lua.org 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. |
Revision as of 01:02, 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