Difference between revisions of "Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn"

From Valve Developer Community
Jump to: navigation, search
Line 15: Line 15:
  
 
== 常见技术 ==
 
== 常见技术 ==
* [[Dota 2 Workshop Tools/Scripting/ThinkerFunctions|Thinker函数]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/ThinkerFunctions:zh-cn|Thinker函数]]
* [[Dota 2 Workshop Tools/Scripting/Console Commands|控制台命令]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Console Commands:zh-cn|控制台命令]]
* [[Dota 2 Workshop Tools/Scripting/Dedicated VConsole Log Viewer|专用 VConsole 日志浏览器]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Dedicated VConsole Log Viewer:zh-cn|专用 VConsole 日志浏览器]]
  
 
== 脚本参考 ==
 
== 脚本参考 ==
* [[Dota 2 Workshop Tools/Scripting/API|脚本 API]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/API:zh-cn|脚本 API]]
* [[Dota 2 Workshop Tools/Scripting/Constants|脚本常量]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Constants:zh-cn|脚本常量]]
* [[Dota 2 Workshop Tools/Scripting/Built-In Engine Events|引擎内置事件 (警告: 很多都坏了)]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Built-In Engine Events:zh-cn|引擎内置事件 (警告: 很多都坏了)]]
* [[Dota 2 Workshop Tools/Scripting/Built-In Ability Names|内置技能名称]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Built-In Ability Names:zh-cn|内置技能名称]]
* [[Dota 2 Workshop Tools/Scripting/Built-In Modifier Names|内置修改器名称]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Built-In Modifier Names:zh-cn|内置修改器名称]]
* [[Dota 2 Workshop Tools/Scripting/Heroes_internal_names|英雄内部名称]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Heroes_internal_names:zh-cn|英雄内部名称]]
* [[Dota 2 Workshop Tools/Scripting/Built-In Unit Names|内置单位名称]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Built-In Unit Names:zh-cn|内置单位名称]]
  
 
== 范例 ==
 
== 范例 ==
* [[Dota 2 Workshop Tools/Scripting/Simple_Trigger_that_calls_Lua:zh-cn|调用Lua的简易触发器]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Simple_Trigger_that_calls_Lua:zh-cn|调用Lua的简易触发器]]
* [[Dota 2 Workshop Tools/Scripting/Abilities Scripted Example|死亡时掉落的数据驱动物品]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Abilities Scripted Example:zh-cn|死亡时掉落的数据驱动物品]]
* [[Dota 2 Workshop Tools/Scripting/Data Driven Motion Controller Example |动作控制器范例]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Data Driven Motion Controller Example:zh-cn |动作控制器范例]]
* [[Dota 2 Workshop Tools/Scripting/Creating a Tower Example |创建防御塔范例]]
+
* [[Dota 2 Workshop Tools:zh-cn/Scripting:zh-cn/Creating a Tower Example:zh-cn |创建防御塔范例]]
  
 
== Lua 资源 ==
 
== Lua 资源 ==

Revision as of 22:56, 2 September 2014

English Русский

在Dota2中,脚本由Lua编程语言处理,Lua将在dota2加载你的插件时被执行,并且它可以操作游戏的方方面面。脚本可以控制在游戏模式,游戏规则,技能,英雄交互,中立生物,AI等内容中发生的一切事件。

入门指南

这里的文档都假定你已经有Lua的基本知识。如果你是Lua的初学者,页面最下的 Lua 资源 可以帮助你。

技能脚本

常见技术

脚本参考

范例

Lua 资源