Difference between revisions of "VScript:zh-cn"

From Valve Developer Community
Jump to: navigation, search
Line 5: Line 5:
 
|ru=VScript:ru
 
|ru=VScript:ru
 
}}
 
}}
 +
本页面内容由[//steamcommunity.com/id/utagawashii/ Dazai Nerau]译自[[VScript|英文版页面]]. 欢迎任何人补充新内容或者修改其中的错误.
  
'''VScript''' is a virtual machine for scripting that acts as an abstract binding layer between the Source engine and external scripts. According to the [[Alien Swarm SDK]], the following scripting languages are, or could be supported in the near future:
+
 
 +
 
 +
'''VScript''' 是一种用于脚本编程的虚拟机,它在起源引擎和外部脚本之间充当一个抽象的绑定层. 根据[[Alien Swarm SDK]]我们可以推知, 以下的脚本语言已经或者在不久的将来能够得到支持:
  
 
* [[Squirrel]]
 
* [[Squirrel]]
Line 13: Line 16:
 
* [http://en.wikipedia.org/wiki/Python_%28programming_language%29 Python]
 
* [http://en.wikipedia.org/wiki/Python_%28programming_language%29 Python]
  
Script files are placed and executed in <code>scripts/vscripts/</code> inside the game folder.
+
脚本文件放置于游戏目录内的 <code>scripts/vscripts/</code> 文件夹中.
  
==Implementations==
+
==实现==
  
 
===[[Squirrel]]===
 
===[[Squirrel]]===
 
;{{game link|Left 4 Dead 2}}
 
;{{game link|Left 4 Dead 2}}
:[[L4D2 Vscripts|Scripting]]
+
:[[L4D2 Vscripts|脚本介绍]]
:[[L4D2_Director_Scripts|Director Scripts]]
+
:[[L4D2_Director_Scripts|导演脚本]]
:[[L4D2 Vscript Examples|Script Examples]]
+
:[[L4D2 Vscript Examples|脚本范例]]
:[[List of L4D2 Script Functions|List of Script Functions]]
+
:[[List of L4D2 Script Functions|脚本API列表]]
  
 
;{{game link|Nuclear Dawn}}
 
;{{game link|Nuclear Dawn}}
:[[List of ND Script Functions|List of Script Functions]]
+
:[[List of ND Script Functions|脚本API列表]]
 
;{{game link|Alien Swarm}}
 
;{{game link|Alien Swarm}}
  
 
;{{game link|Portal 2}}
 
;{{game link|Portal 2}}
:[[List of Portal 2 Script Functions|List of Script Functions]]
+
:[[List of Portal 2 Script Functions|脚本API列表]]
  
 
;{{game link|Counter-Strike: Global Offensive}}
 
;{{game link|Counter-Strike: Global Offensive}}
:[[List_of_Counter-Strike:_Global_Offensive_Script_Functions|List of Script Functions]]
+
:[[List_of_Counter-Strike:_Global_Offensive_Script_Functions|脚本API列表]]
:[[CSGO_Vscript_Examples|Script Examples]]
+
:[[CSGO_Vscript_Examples|脚本范例]]
  
 
;{{game link|Contagion}}
 
;{{game link|Contagion}}
:[[List of Contagion Script Functions|List of Script Functions]]
+
:[[List of Contagion Script Functions|脚本API列表]]
  
 
;{{game link|Alien Swarm: Reactive Drop}}
 
;{{game link|Alien Swarm: Reactive Drop}}
:[[List of Reactive Drop Script Functions|List of Script Functions]]
+
:[[List of Reactive Drop Script Functions|脚本API列表]]
  
 
;{{game link|Titanfall}}
 
;{{game link|Titanfall}}
  
 
===Lua===
 
===Lua===
;{{game link|Portal 2}} (Client/UI only)
+
;{{game link|Portal 2}} (仅限于  客户端/用户界面)
  
 
;{{game link|Dota 2}}
 
;{{game link|Dota 2}}
:[[Dota_2_Workshop_Tools/Scripting|Scripting]]
+
:[[Dota_2_Workshop_Tools/Scripting|脚本介绍]]
:[[Dota_2_Workshop_Tools/Scripting/API|Scripting API]]
+
:[[Dota_2_Workshop_Tools/Scripting/API|脚本API]]
  
 
;[[Destinations]]
 
;[[Destinations]]
:[[Destinations/Scripting|Scripting]]
+
:[[Destinations/Scripting|脚本介绍]]
:[[Destinations/Scripting/API|Scripting API]]
+
:[[Destinations/Scripting/API|脚本API]]
  
 
;General Source 2
 
;General Source 2
:[[Source 2 Animation System VScript API]]
+
:[[Source 2 Animation System VScript API|起源2 动画系统脚本API]]
  
 
===Python===
 
===Python===
 
;{{game link|Source Filmmaker}}
 
;{{game link|Source Filmmaker}}
:[[SFM/Scripting_with_Python|Scripting/Rigging]]
+
:[[SFM/Scripting_with_Python|脚本/操控]]
  
==Scripting Fundamentals==
+
==脚本的基本原理==
''Main article [[Vscript_Fundamentals| Vscript Fundamentals]]''
+
''详阅文章 [[Vscript_Fundamentals|VScript基本原理]]''
  
  
==See also==
+
==推荐阅读==
*[[Entity_Scripts|Entity Scripts]]
+
*[[Entity_Scripts|实体脚本]]
 
*[[Logic_script|logic_script]]
 
*[[Logic_script|logic_script]]
  
 
[[Category:Technical]]
 
[[Category:Technical]]
 
[[Category:Scripting]]
 
[[Category:Scripting]]

Revision as of 06:43, 9 May 2019

English Русский

本页面内容由Dazai Nerau译自英文版页面. 欢迎任何人补充新内容或者修改其中的错误.


VScript 是一种用于脚本编程的虚拟机,它在起源引擎和外部脚本之间充当一个抽象的绑定层. 根据Alien Swarm SDK我们可以推知, 以下的脚本语言已经或者在不久的将来能够得到支持:

脚本文件放置于游戏目录内的 scripts/vscripts/ 文件夹中.

实现

Squirrel

<Left 4 Dead 2> Left 4 Dead 2
脚本介绍
导演脚本
脚本范例
脚本API列表
<Nuclear Dawn> Nuclear Dawn
脚本API列表
<Alien Swarm> Alien Swarm
[Portal 2] Portal 2
脚本API列表
<Counter-Strike: Global Offensive> Counter-Strike: Global Offensive
脚本API列表
脚本范例
<Contagion> Contagion
脚本API列表
Alien Swarm: Reactive Drop
脚本API列表
<Titanfall> Titanfall

Lua

[Portal 2] Portal 2 (仅限于 客户端/用户界面)
<Dota 2> Dota 2
脚本介绍
脚本API
Destinations
脚本介绍
脚本API
General Source 2
起源2 动画系统脚本API

Python

Source Filmmaker
脚本/操控

脚本的基本原理

详阅文章 VScript基本原理


推荐阅读