Dota 2 Workshop Tools/Scripting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{ | {{otherlang2 | ||
| | |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. | ||
== | == Getting Started == | ||
* [[Dota 2 Workshop Tools/Scripting/Getting Started| | * [[Dota 2 Workshop Tools/Scripting/Getting Started|Getting Started]] | ||
== | == Scripting Abilities == | ||
* [[Dota 2 Workshop Tools/Scripting/Abilities Data Driven| | * [[Dota 2 Workshop Tools/Scripting/Abilities Data Driven|Data Driven Abilities]] | ||
* [[Dota 2 Workshop Tools/Scripting/Abilities Scripted| | * [[Dota 2 Workshop Tools/Scripting/Abilities Scripted|Scripting Abilities]] | ||
== | == Common Techniques == | ||
* [[Dota 2 Workshop Tools/Scripting/ThinkerFunctions| | * [[Dota 2 Workshop Tools/Scripting/ThinkerFunctions|Thinker Functions]] | ||
* [[Dota 2 Workshop Tools/Scripting/Console Commands| | * [[Dota 2 Workshop Tools/Scripting/Console Commands|Console Commands]] | ||
* [[Dota 2 Workshop Tools/Scripting/Dedicated VConsole Log Viewer| | * [[Dota 2 Workshop Tools/Scripting/Dedicated VConsole Log Viewer|Dedicated VConsole Log Viewer]] | ||
== | == Reference == | ||
* [[Dota 2 Workshop Tools/Scripting/API| | * [[Dota 2 Workshop Tools/Scripting/API|Scripting API]] | ||
* [[Dota 2 Workshop Tools/Scripting/Constants| | * [[Dota 2 Workshop Tools/Scripting/Constants|Scripting Constants]] | ||
* [[Dota 2 Workshop Tools/Scripting/Built-In Engine Events| | * [[Dota 2 Workshop Tools/Scripting/Built-In Engine Events|Built-In Engine Events (warning: many broken)]] | ||
* [[Dota 2 Workshop Tools/Scripting/Built-In Ability Names| | * [[Dota 2 Workshop Tools/Scripting/Built-In Ability Names|Built-In Ability Names]] | ||
* [[Dota 2 Workshop Tools/Scripting/Built-In Modifier Names| | * [[Dota 2 Workshop Tools/Scripting/Built-In Modifier Names|Built-In Modifier Names]] | ||
* [[Dota 2 Workshop Tools/Scripting/Heroes_internal_names| | * [[Dota 2 Workshop Tools/Scripting/Heroes_internal_names|Heroes Internal Names]] | ||
* [[Dota 2 Workshop Tools/Scripting/Built-In Unit Names| | * [[Dota 2 Workshop Tools/Scripting/Built-In Unit Names|Built-In Unit Names]] | ||
== | == Examples == | ||
* [[Dota 2 Workshop Tools/Scripting/Simple Trigger that calls Lua| | * [[Dota 2 Workshop Tools/Scripting/Simple Trigger that calls Lua| Simple trigger that calls Lua]] | ||
* [[Dota 2 Workshop Tools/Scripting/Abilities Scripted Example| Data driven item that drops upon death]] | * [[Dota 2 Workshop Tools/Scripting/Abilities Scripted Example| Data driven item that drops upon death]] | ||
* [[Dota 2 Workshop Tools/Scripting/Data Driven Motion Controller Example | | * [[Dota 2 Workshop Tools/Scripting/Data Driven Motion Controller Example | Motion Controller Example]] | ||
* [[Dota 2 Workshop Tools/Scripting/Creating a Tower Example | | * [[Dota 2 Workshop Tools/Scripting/Creating a Tower Example | Creating a Tower Example]] | ||
== Lua Resources == | |||
* [http://www.lua.org/ Official Lua Website] | |||
* [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 18:41, 15 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