Zh/VScript: Difference between revisions
< Zh
Jump to navigation
Jump to search
No edit summary |
(Update from the EN Ver. / 同步更新) |
||
| Line 1: | Line 1: | ||
{{LanguageBar|title = VScript}} | {{LanguageBar|title = VScript}} | ||
本页面内容最后由[[User:115steam|115steam]]翻译,基于先前[[User:Yakumo_koishi|Ellent]]和[//steamcommunity.com/id/utagawashii/ Dazai Nerau]的版本参照英文原页面进行了更新. 欢迎任何人补充新内容或者修改其中的错误。 | |||
最后修改时间(截止至本次编辑):2025.2.24 | |||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
'''VScript''',在{{l4d2|4}}中首次引入,在后来的更新中被移植回了{{tf2|4}},是一种用于脚本编程的虚拟机,它在{{source|4}}引擎和{{source2|4}}和外部脚本之间充当一个抽象的绑定层。根据{{astools|4.1}}我们可以推知,以下的脚本语言已经或者在不久的将来能够得到支持: | '''VScript''',在{{l4d2|4}}中首次引入,在后来的更新中被移植回了{{tf2|4}}(包括 [[TF2 branch|此游戏衍生的分支]]),是一种用于脚本编程的虚拟机,它在{{source|4}}引擎和{{source2|4}}和外部脚本之间充当一个抽象的绑定层。根据{{astools|4.1}}我们可以推知,以下的脚本语言已经或者在不久的将来能够得到支持: | ||
* [[Squirrel]] | * [[Squirrel]] {{todo|参考翻译:松鼠脚本}} | ||
* [[Wikipedia:Lua (programming language)|Lua]] | * [[Wikipedia:Lua (programming language)|Lua]] | ||
* [[Wikipedia:GameMonkey Script|Gamemonkey]] | * [[Wikipedia:GameMonkey Script|Gamemonkey]] | ||
| Line 15: | Line 15: | ||
脚本文件放置于游戏目录内的 <code>scripts/vscripts/</code> 文件夹中。 | 脚本文件放置于游戏目录内的 <code>scripts/vscripts/</code> 文件夹中。 | ||
要了解如何使用 | 要了解如何使用 VScript,请参阅: {{L|VScript Fundamentals|VScript 基本原理}}{{zh-cn}} 。 | ||
==实现== | ==实现== | ||
| Line 22: | Line 23: | ||
|style=padding-right:2em| | |style=padding-right:2em| | ||
==={{L|Squirrel}} {{sq}}=== | ==={{L|Squirrel}} {{sq}}=== | ||
{{src13mp|4|nt=sdkshort|addtext={{nbsp}}(2025)}} ({{tf2}} {{css}} {{dods}} {{hl2dm}} {{hldms}}) | |||
:所有这些游戏均运行于 {{tf2}} 引擎分支,继承了非游戏专属功能,但未添加额外游戏专属功能。 | |||
:[[Source SDK Base 2013/Scripting/VScript Examples|脚本范例]] | |||
{{tf2|4}} | {{tf2|4}} | ||
:[[ | ::[[Team Fortress 2/Scripting/Script Functions|脚本API列表]] | ||
:[[ | ::[[Team Fortress 2/Scripting/VScript Examples|脚本范例]] | ||
::[[Counter-Strike: Source/Scripting/Game Events|游戏事件示例]] | |||
:{{css|4}} | |||
::[[Counter-Strike: Source/Scripting/VScript Examples|脚本范例]] | |||
::[[Counter-Strike: Source/Scripting/Game Events|游戏事件示例]] | |||
:{{dods|4}} | |||
::[[Day of Defeat: Source/Scripting/Game Events|游戏事件示例]] | |||
:{{hl2dm|4}} | |||
::[[Half-Life 2: Deathmatch/Scripting/Game Events|游戏事件示例]] | |||
{{l4d2|4}} | {{l4d2|4}} | ||
| Line 66: | Line 82: | ||
:[[Mapbase/Scripting|脚本编写]] | :[[Mapbase/Scripting|脚本编写]] | ||
:[[Mapbase/Scripting/Script_Functions|脚本API列表]] | :[[Mapbase/Scripting/Script_Functions|脚本API列表]] | ||
{{jbep3|4}} | |||
:[[List of Jabroni Brawl: Episode 3 Script Functions|脚本API列表]] | |||
|style=padding-right:2em| | |style=padding-right:2em| | ||
===Lua {{lua}}=== | ===Lua {{lua}}=== | ||
| Line 94: | Line 113: | ||
===Python=== | ===Python=== | ||
;{{Tf2|4}} | |||
;{{sfm|4}} | ;{{sfm|4}} | ||
:{{L|SFM/Scripting_with_Python|脚本/操控}} | :{{L|SFM/Scripting_with_Python|脚本/操控}} | ||
| Line 101: | Line 122: | ||
*{{L|Entity_Scripts|实体脚本}}{{zh-cn}} | *{{L|Entity_Scripts|实体脚本}}{{zh-cn}} | ||
*{{L|Logic_script|logic_script}} | *{{L|Logic_script|logic_script}} | ||
*{{ent|script}}, {{ent|script_execute}} (控制台命令) | |||
{{ACategory|VScript}} | {{ACategory|VScript}} | ||
{{ACategory|Technical}} | {{ACategory|Technical}} | ||
{{ACategory|Scripting}} | {{ACategory|Scripting}} | ||
Revision as of 21:11, 23 February 2025
本页面内容最后由115steam翻译,基于先前Ellent和Dazai Nerau的版本参照英文原页面进行了更新. 欢迎任何人补充新内容或者修改其中的错误。 最后修改时间(截止至本次编辑):2025.2.24
VScript,在
求生之路2中首次引入,在后来的更新中被移植回了
军团要塞2(包括 此游戏衍生的分支),是一种用于脚本编程的虚拟机,它在
起源引擎和
起源2和外部脚本之间充当一个抽象的绑定层。根据
Alien Swarm - SDK我们可以推知,以下的脚本语言已经或者在不久的将来能够得到支持:
- Squirrel 待完善: 参考翻译:松鼠脚本
- Lua
- Gamemonkey
- Python
脚本文件放置于游戏目录内的 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.
- logic_script
- script, script_execute (控制台命令)