Difference between revisions of "Dota 2 Workshop Tools/Scripting"

From Valve Developer Community
Jump to: navigation, search
(Undo revision 186831 by Dota2jili (talk))
Line 3: Line 3:
 
|ru= Dota 2 Workshop Tools:ru/Scripting:ru
 
|ru= Dota 2 Workshop Tools:ru/Scripting:ru
 
}}
 
}}
在DOTA2的编程使用的是LUA[http://www.lua.org Lua]编程语言。LUA将会在DOTA2载入你的插件的时候运行,并且能完成游戏各方面的工作。程序能够控制游戏中的游戏事件、游戏规则、技能、英雄野怪等等许多东西。
+
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|VC控制台]]
+
* [[Dota 2 Workshop Tools/Scripting/Dedicated VConsole Log Viewer|Dedicated VConsole Log Viewer]]
  
== 参考 ==
+
== Reference ==
* [[Dota 2 Workshop Tools/Scripting/API|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|引擎内置的Modifier(修改器)名称]]
+
* [[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| 使用Trigger调用LUA的例子]]
+
* [[Dota 2 Workshop Tools/Scripting/Simple Trigger that calls Lua| Simple trigger that calls Lua]]
* [[Dota 2 Workshop Tools/Scripting/Abilities Scripted Example| 在单位死亡时掉落物品的例子]]
+
* [[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资源 ==
+
== Lua Resources ==
* [http://www.lua.org/ 官方LUA站点]
+
* [http://www.lua.org/ Official Lua Website]
* [https://github.com/bhargavrpatel/Dota-2-Sublime-Packages 供Sublime Text 2/3 软件使用的自动补全插件包]
+
* [https://github.com/bhargavrpatel/Dota-2-Sublime-Packages Sublime Text 2/3 Snippets for all functions]
  
  
  
 
{{shortpagetitle}}
 
{{shortpagetitle}}
[[Category:DOTA 2创意工坊工具]]
+
[[Category:Dota 2 Workshop Tools]]

Revision as of 10:10, 19 August 2014

Русский 简体中文

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

Examples

Lua Resources