Zh/VScript: Difference between revisions
< Zh
Jump to navigation
Jump to search
m (Conform to translated page standards.) |
1416006136 (talk | contribs) (update) |
||
| Line 1: | Line 1: | ||
{{lang|VScript}} | {{lang|VScript}} | ||
本页面内容由[//steamcommunity.com/id/utagawashii/ Dazai Nerau]译自[[VScript|英文版页面]]. | 本页面内容由[//steamcommunity.com/id/utagawashii/ Dazai Nerau]译自[[VScript|英文版页面]]. 欢迎任何人补充新内容或者修改其中的错误。 | ||
---- | |||
__NOTOC__ | |||
'''VScript ''',在 {{l4d2|4}} 中引入,是一种用于脚本编程的虚拟机,它在 {{source|4}} 引擎和外部脚本之间充当一个抽象的绑定层。根据 [[Alien Swarm SDK]] 我们可以推知,以下的脚本语言已经或者在不久的将来能够得到支持: | |||
* [[Squirrel]] | |||
* [[Wikipedia:Lua (programming language)|Lua]] | |||
* [[Wikipedia:GameMonkey Script|Gamemonkey]] | |||
* [[Wikipedia:Python (programming language)|Python]] | |||
脚本文件放置于游戏目录内的 <code>scripts/vscripts/</code> 文件夹中。 | |||
要了解如何使用 VScript,请参阅[[VScript Fundamentals|《VScript 基本原理》]]。 | |||
==实现== | ==实现== | ||
{| | |||
===[[Squirrel]]=== | |- style=vertical-align:top | ||
|style=padding-right:2em| | |||
===[[Squirrel]] {{sq}}=== | |||
{{l4d2|4}} | |||
:[[L4D2 Vscripts:zh-cn|脚本介绍]] | :[[L4D2 Vscripts:zh-cn|脚本介绍]] | ||
:[[L4D2_Director_Scripts:zh-cn|导演脚本]] | :[[L4D2_Director_Scripts:zh-cn|导演脚本]] | ||
| Line 24: | Line 26: | ||
:[[List of L4D2 Script Functions|脚本API列表]] | :[[List of L4D2 Script Functions|脚本API列表]] | ||
{{as|4}} | |||
{{portal2|4}} | |||
:[[List of Portal 2 Script Functions|脚本API列表]] | :[[List of Portal 2 Script Functions|脚本API列表]] | ||
{{sfm|4}} | |||
: | :{{tf2}} 的仅存在于 TF2 的 SFM 版本中。没有 TF2 或 SFM 特定的 API。不可用。 | ||
{{csgo|4}} | |||
:[[List of CS:GO Script Functions|脚本API列表]] | |||
:[[Listening to game events in CS:GO|侦听游戏事件]] | |||
:[[CS:GO VScript Examples|脚本范例]] | |||
{{con|4}} | |||
:[[List of Contagion Script Functions|脚本API列表]] | :[[List of Contagion Script Functions|脚本API列表]] | ||
{{nd|4}} | |||
:[[List of ND Script Functions|脚本API列表]] | |||
{{tf|4}} | |||
{{asrd|4}} | |||
:[[List of Reactive Drop Script Functions|脚本API列表]] | :[[List of Reactive Drop Script Functions|脚本API列表]] | ||
{{mapbase|4}} '''(自定义内容)''' | |||
:[https://github.com/mapbase-source/source-sdk-2013/wiki/VScript-in-Mapbase 脚本撰写] | :[https://github.com/mapbase-source/source-sdk-2013/wiki/VScript-in-Mapbase 脚本撰写] | ||
:[https://github.com/mapbase-source/source-sdk-2013/tree/master/sp/src/vscript GitHub] | :[https://github.com/mapbase-source/source-sdk-2013/tree/master/sp/src/vscript GitHub] | ||
|style=padding-right:2em| | |||
===Lua {{lua}}=== | |||
{{portal2|4}} '''(仅限于客户端/用户界面)''' | |||
{{dota2|4}} | |||
:[[Dota_2_Workshop_Tools/Scripting|脚本介绍]] | |||
:[[Dota_2_Workshop_Tools/Scripting/API|脚本 API]] | |||
{{gmod|4}} | |||
:[[ | |||
:[[ | {{svrh|4}} | ||
:[[SteamVR/Environments/Scripting|脚本介绍]] | |||
:[[SteamVR/Environments/Scripting/API|脚本 API]] | |||
:[[SteamVR/Environments/Scripting/Custom Tool Creation|脚本化工具创建]] | |||
:[[SteamVR/Environments/Scripting/Flashlight Tool Tutorial|脚本化闪光灯工具教程]] | |||
{{hla|4}} | |||
:[[ | :[[Half-Life:_Alyx_Workshop_Tools/Lua_Scripting|脚本介绍]] | ||
:[[ | :[[Half-Life_Alyx_Scripting_API|脚本 API]] | ||
;General | ;General {{source2|4}} | ||
:[[Source 2 Animation System VScript API | :[[Source 2 Animation System VScript API]] | ||
| | |||
===Python=== | ===Python=== | ||
;{{ | ;{{sfm|4}} | ||
:[[SFM/Scripting_with_Python|脚本/操控]] | :[[SFM/Scripting_with_Python|脚本/操控]] | ||
|} | |||
==推荐阅读== | ==推荐阅读== | ||
*[[Entity_Scripts|实体脚本]] | *[[Entity_Scripts:zh-cn|实体脚本]]{{zh-cn}} | ||
*[[Logic_script|logic_script]] | *[[Logic_script|logic_script]] | ||
[[Category:Technical:zh-cn]] | [[Category:Technical:zh-cn]] | ||
[[Category:Scripting:zh-cn]] | [[Category:Scripting:zh-cn]] | ||
Revision as of 10:21, 17 July 2022
本页面内容由Dazai Nerau译自英文版页面. 欢迎任何人补充新内容或者修改其中的错误。
VScript ,在
求生之路2 中引入,是一种用于脚本编程的虚拟机,它在
起源 引擎和外部脚本之间充当一个抽象的绑定层。根据 Alien Swarm SDK 我们可以推知,以下的脚本语言已经或者在不久的将来能够得到支持:
脚本文件放置于游戏目录内的 scripts/vscripts/ 文件夹中。
要了解如何使用 VScript,请参阅《VScript 基本原理》。
实现
Squirrel
|
Lua
|
Python |
推荐阅读
This article has been marked as a candidate for speedy deletion for the following reason:
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
Use {{Flag|zh}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourselfAdministrators / Moderators - Remember to check if anything links here and the page history before deleting.