Zh/VScript: Difference between revisions
< Zh
		
		
		
		Jump to navigation
		Jump to search
		m (Multipage removal)  | 
				 (Update from the English Ver)  | 
				||
| Line 1: | Line 1: | ||
{{LanguageBar|title = VScript}}  | {{LanguageBar|title = VScript}}  | ||
本页面内容由[//steamcommunity.com/id/utagawashii/ Dazai Nerau]  | 本页面内容由[[User:Yakumo_Koishi|Ellent]]翻译,基于先前[//steamcommunity.com/id/utagawashii/ Dazai Nerau]的版本参照英文原页面进行了更新. 欢迎任何人补充新内容或者修改其中的错误。  | ||
最后修改时间(截止至本次编辑):2024.10.29  | |||
----  | ----  | ||
__NOTOC__  | __NOTOC__  | ||
'''VScript''',在 {{l4d2|4}}   | '''VScript''',在{{l4d2|4}}中首次引入,在后来的更新中被移植回了{{tf2|4}},是一种用于脚本编程的虚拟机,它在{{source|4}}引擎和{{source2|4}}和外部脚本之间充当一个抽象的绑定层。根据{{astools|4.1}}我们可以推知,以下的脚本语言已经或者在不久的将来能够得到支持:  | ||
*   | * [[Squirrel]]  | ||
* [[Wikipedia:Lua (programming language)|Lua]]  | * [[Wikipedia:Lua (programming language)|Lua]]  | ||
* [[Wikipedia:GameMonkey Script|Gamemonkey]]  | * [[Wikipedia:GameMonkey Script|Gamemonkey]]  | ||
| Line 21: | Line 22: | ||
|style=padding-right:2em|  | |style=padding-right:2em|  | ||
==={{L|Squirrel}} {{sq}}===  | ==={{L|Squirrel}} {{sq}}===  | ||
{{tf2|4}}  | |||
:[[TF2 VScript Examples|脚本范例]]  | |||
:[[Team Fortress 2/Scripting/Script Functions|脚本API列表]]  | |||
{{l4d2|4}}  | {{l4d2|4}}  | ||
:{{L|L4D2 Vscripts|脚本介绍}}{{zh-cn}}  | :{{L|L4D2 Vscripts|脚本介绍}}{{zh-cn}}  | ||
| Line 32: | Line 38: | ||
:{{L|List of Portal 2 Script Functions|脚本API列表}}  | :{{L|List of Portal 2 Script Functions|脚本API列表}}  | ||
{{P2ce|4}}  | |||
:Vscript相关文档位于其专用页面 [https://wiki.stratasource.org/p2ce/vscript/overview Vscript API Reference]  | |||
{{sfm|4}}  | {{sfm|4}}  | ||
:{{tf2}} 的仅存在于 TF2 的 SFM 版本中。没有 TF2 或 SFM 特定的 API。不可用。  | :{{tf2}} 的仅存在于 TF2 的 SFM 版本中。没有 TF2 或 SFM 特定的 API。不可用。  | ||
| Line 51: | Line 59: | ||
:{{L|List of Reactive Drop Script Functions|脚本API列表}}  | :{{L|List of Reactive Drop Script Functions|脚本API列表}}  | ||
{{mapbase|4}}   | {{mapbase|4}} (自定义版本)    | ||
<!--  | |||
:[  |     之所以说是“自定义版本”,这是因为Mapbase的实现方法和其他游戏截然不同,其本身是在常规客户端/服务端基础上实现,而非使用专门的引擎组件  | ||
    因此,Mapbase的Vscript和其他游戏有着一定差异,例如无法使用其中的调试工具  | |||
-->  | |||
:[[Mapbase/Scripting|脚本编写]]  | |||
:[[Mapbase/Scripting/Script_Functions|脚本API列表]]  | |||
|style=padding-right:2em|  | |style=padding-right:2em|  | ||
===Lua {{lua}}===  | ===Lua {{lua}}===  | ||
| Line 63: | Line 75: | ||
{{gmod|4}}  | {{gmod|4}}  | ||
:[https://wiki.facepunch.com/gmod/Beginner_Tutorial_Intro 官方教程]  | |||
{{svrh|4}}  | {{svrh|4}}  | ||
| Line 76: | Line 89: | ||
;General {{source2|4}}  | ;General {{source2|4}}  | ||
:{{L|Source 2 Animation System VScript API}}  | :{{L|Source 2 Animation System VScript API}}  | ||
{{jbep3|4}}  | |||
:[[List of Jabroni Brawl: Episode 3 Script Functions|脚本API列表]]  | |||
|  | |  | ||
Revision as of 19:10, 28 October 2024
本页面内容由Ellent翻译,基于先前Dazai Nerau的版本参照英文原页面进行了更新. 欢迎任何人补充新内容或者修改其中的错误。 最后修改时间(截止至本次编辑):2024.10.29
VScript,在
 求生之路2中首次引入,在后来的更新中被移植回了
 军团要塞2,是一种用于脚本编程的虚拟机,它在
 起源引擎和
 起源2和外部脚本之间充当一个抽象的绑定层。根据
 Alien Swarm - SDK我们可以推知,以下的脚本语言已经或者在不久的将来能够得到支持:
脚本文件放置于游戏目录内的 scripts/vscripts/ 文件夹中。
要了解如何使用 VScript,请参阅 VScript 基本原理
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.
。
实现
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.