Skip to content

Commit 20ad478

Browse files
tinygroxLibrarian
authored andcommitted
new page: Template/zh/Development/脚本/Main Page
1 parent 094e1b5 commit 20ad478

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[[Translation:en/Development/Script/Main Page]]
2+
{{zh/注释|给玩家看的页面在这里: [[en/Manual/AI settings]]}}
3+
4+
{{zh/Development/脚本/导航菜单}}
5+
欢迎进行 AI 开发。自版本0.7.0开始,任何玩家都可以创建自己的 AI。我们不只是提供一个简单易用的 API 供玩家使用,还支持使用脚本语言来开发属于你自己的 AI。这应该能让任何拥有一点编程知识的玩家都能创建出相当智能的AI。这也为玩家创建一个比 0.6 版本的 AI 提供了挑战。此页面内容主要就是向你展示如何去做到这一点。
6+
7+
对于所有页面,都蕴涵一个规则:所有给出的示例代码,均使用 Squirrel。 我们建议任何想要编写AI的人首先去翻阅一遍[[en/Development/Script/Introduction|介绍]],那里会向你阐述基本概念。
8+
9+
== 教程 ==
10+
* [[en/Development/Script/Introduction|Introduction to writing an AI for OpenTTD]]
11+
* [[en/Development/Script/Basics|Basics of writing an AI]]
12+
* [[en/Development/Script/Need To Know|Things you need to know about writing an AI]]
13+
* [[en/Development/Script/Squirrel pitfalls|Common pitfalls when working with Squirrel]]
14+
* [[en/Development/Script/Lists|Introduction to lists (TownList, TileList, ...)]]
15+
* [[en/Development/Script/Last Error|Find out how to retrieve error messages after failed build commands]]
16+
* [[en/Development/Script/Trams|Trams, and everything related]]
17+
18+
== API 文档 ==
19+
* OpenTTD AI API Docs: https://docs.openttd.org/ai-api/
20+
* [[en/Development/Script/Doxygen Documentation|Adding Doxygen documentation to your AI library]]
21+
22+
== AI ==
23+
=== 示例 ===
24+
* [[en/Development/Script/WrightAI|WrightAI]] - Builds plane routes only.
25+
* [[en/Development/Script/TestAI|TestAI]] - A minimal main.nut and info.nut to base your AI from.
26+
27+
=== User AIs ===
28+
To download user made AIs, please use the [[en/Archive/Community/Content Service|online content service]] or alternatively have a look at the [http://www.tt-forums.net/viewforum.php?f=65 NoAI forum].
29+
30+
=== AI对比 ===
31+
* [[en/Community/AI/Comparison of AIs]]
32+
* [[en/Community/AI/Test AIs|Test AIs]]
33+
34+
{{en/Feature|0.7}}
35+
36+
== 游戏脚本 ==
37+
如果你想要从编写游戏脚本开始入门,这里有一篇专门介绍这个: [[en/Manual/Game script|游戏脚本]]

0 commit comments

Comments
 (0)