VScript

From Valve Developer Community
< Zh
Revision as of 22:11, 23 February 2025 by 115steam (talk | contribs) (Update from the EN Ver. / 同步更新)
Jump to navigation Jump to search
English (en)Español (es)Русский (ru)中文 (zh)Translate (Translate)

本页面内容最后由115steam翻译,基于先前EllentDazai Nerau的版本参照英文原页面进行了更新. 欢迎任何人补充新内容或者修改其中的错误。 最后修改时间(截止至本次编辑):2025.2.24


VScript,在求生之路2 求生之路2中首次引入,在后来的更新中被移植回了军团要塞2 军团要塞2(包括 此游戏衍生的分支),是一种用于脚本编程的虚拟机,它在起源 起源引擎和起源2 起源2和外部脚本之间充当一个抽象的绑定层。根据Alien Swarm - SDK Alien Swarm - SDK我们可以推知,以下的脚本语言已经或者在不久的将来能够得到支持:


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

要了解如何使用 VScript,请参阅: VScript 基本原理(en)

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
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 yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.


实现

Squirrel(en) Squirrel

起源2013 多人分支 SDK Base 2013 - MP (2025) (军团要塞2 反恐精英:起源 胜利之日:起源 半衰期2:死亡竞赛 半衰期死亡竞赛:起源)

所有这些游戏均运行于 军团要塞2 引擎分支,继承了非游戏专属功能,但未添加额外游戏专属功能。
脚本范例

军团要塞2 军团要塞2

脚本API列表
脚本范例
游戏事件示例
反恐精英:起源 反恐精英:起源
脚本范例
游戏事件示例
胜利之日:起源 胜利之日:起源
游戏事件示例
半衰期2:死亡竞赛 半衰期2:死亡竞赛
游戏事件示例

求生之路2 求生之路2

脚本介绍(en)
Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
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 yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
导演脚本(en)
Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
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 yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
脚本范例(en)
脚本API列表(en)

异形丛生 异形丛生

传送门2 传送门2

脚本API列表(en)

传送门 2:社区特供版 传送门 2:社区特供版

Vscript相关文档位于其专用页面 Vscript API Reference

起源电影制作器 起源电影制作器

军团要塞2 的仅存在于 TF2 的 SFM 版本中。没有 TF2 或 SFM 特定的 API。不可用。

反恐精英:全球攻势 反恐精英:全球攻势

脚本API列表(en)
侦听游戏事件(en)
脚本范例(en)

Contagion Contagion

脚本API列表(en)

Nuclear Dawn Nuclear Dawn

脚本API列表(en)

Titanfall Titanfall

Alien Swarm: Reactive Drop Alien Swarm: Reactive Drop

脚本API列表(en)

Mapbase Mapbase (自定义版本)

脚本编写
脚本API列表

Jabroni Brawl: Episode 3 Jabroni Brawl: Episode 3

脚本API列表

Lua Lua

传送门2 传送门2 (仅限于客户端/用户界面)

Dota 2 Dota 2

脚本介绍(en)
脚本 API(en)

Garry's Mod Garry's Mod

官方教程

SteamVR Home SteamVR Home

脚本介绍(en)
脚本 API(en)
脚本化工具创建(en)
脚本化闪光灯工具教程(en)

半衰期:爱莉克斯 半衰期:爱莉克斯

脚本介绍(en)
脚本 API(en)
General 起源2 起源2
Source 2 Animation System VScript API(en)

Jabroni Brawl: Episode 3 Jabroni Brawl: Episode 3

脚本API列表

Python

军团要塞2 军团要塞2
起源电影制作器 起源电影制作器
脚本/操控(en)

推荐阅读

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
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 yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.