-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinvaders.html
235 lines (212 loc) · 21.5 KB
/
invaders.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html lang="zh-cn">
<head prefix="og: http://ogp.me/ns#">
<meta charset="utf-8">
<title>NPC 入侵者 | Screeps 中文文档</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Canonical links -->
<link rel="canonical" href="http://screeps-cn.github.io/invaders.html">
<!-- Alternative links -->
<link rel="alternative" hreflang="en" href="http://screeps-cn.github.io/invaders.html">
<link rel="alternative" hreflang="zh-tw" href="http://screeps-cn.github.io/zh-tw/invaders.html">
<link rel="alternative" hreflang="zh-cn" href="http://screeps-cn.github.io/zh-cn/invaders.html">
<link rel="alternative" hreflang="ru" href="http://screeps-cn.github.io/ru/invaders.html">
<link rel="alternative" hreflang="ko" href="http://screeps-cn.github.io/ko/invaders.html">
<!-- Icon -->
<link rel="apple-touch-icon" sizes="57x57" href="/icon/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="114x114" href="/icon/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="72x72" href="/icon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="144x144" href="/icon/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="60x60" href="/icon/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="120x120" href="/icon/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="76x76" href="/icon/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="152x152" href="/icon/apple-touch-icon-152x152.png">
<link rel="icon" type="image/png" href="/icon/favicon-196x196.png" sizes="196x196">
<link rel="icon" type="image/png" href="/icon/favicon-160x160.png" sizes="160x160">
<link rel="icon" type="image/png" href="/icon/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/icon/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/icon/favicon-32x32.png" sizes="32x32">
<meta name="msapplication-TileColor" content="#2f83cd">
<meta name="msapplication-TileImage" content="/icon/mstile-144x144.png">
<!-- CSS -->
<!-- build:css build/css/navy.css -->
<link rel="stylesheet" href="/css/navy.css?1">
<link rel="stylesheet" href="/css/prism.css">
<!-- endbuild -->
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css">
<!-- RSS -->
<link rel="alternate" href="/atom.xml" title="Screeps 中文文档">
<!-- Open Graph -->
<meta name="description" content="每个被开采的房间都有一个内置的计数器,终值大约为100,000单位的能量(再加上一些随机因素)。当计数器达到终值,在房间的任意一个出入口会生产一个系统控制的 creep,其目标是猎杀你的 creep。它大部分时间不会理睬你的建筑物,一旦某个建筑物挡了它的道,它就会试图摧毁该建筑物。这些 creep 可以使用攻击(attack), 远程攻击(rangedAttack), 和 拆毁(dismantle">
<meta property="og:type" content="website">
<meta property="og:title" content="NPC 入侵者">
<meta property="og:url" content="http://screeps-cn.github.io/invaders.html">
<meta property="og:site_name" content="Screeps 中文文档">
<meta property="og:description" content="每个被开采的房间都有一个内置的计数器,终值大约为100,000单位的能量(再加上一些随机因素)。当计数器达到终值,在房间的任意一个出入口会生产一个系统控制的 creep,其目标是猎杀你的 creep。它大部分时间不会理睬你的建筑物,一旦某个建筑物挡了它的道,它就会试图摧毁该建筑物。这些 creep 可以使用攻击(attack), 远程攻击(rangedAttack), 和 拆毁(dismantle">
<meta property="og:image" content="http://screeps-cn.github.io/img/invader.png">
<meta property="og:image" content="http://screeps-cn.github.io//static.screeps.com/upload/mineral-icons/UH.png">
<meta property="og:image" content="http://screeps-cn.github.io//static.screeps.com/upload/mineral-icons/KO.png">
<meta property="og:image" content="http://screeps-cn.github.io//static.screeps.com/upload/mineral-icons/LO.png">
<meta property="og:image" content="http://screeps-cn.github.io//static.screeps.com/upload/mineral-icons/ZH.png">
<meta property="og:image" content="http://screeps-cn.github.io//static.screeps.com/upload/mineral-icons/GO.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/smallMelee.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/bigMelee.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/smallRanged.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/bigRanged.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/smallHealer.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/bigHealer.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/chrome_2016-11-24_14-55-59.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/stronghold1.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/stronghold5.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/stronghold_loot5.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/stronghold_loot1.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/stronghold_loot2.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/stronghold_loot3.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/stronghold_loot4.png">
<meta property="og:image" content="http://screeps-cn.github.io/img/invader-core-expand.gif">
<meta property="og:updated_time" content="2024-09-20T13:38:58.408Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="NPC 入侵者">
<meta name="twitter:description" content="每个被开采的房间都有一个内置的计数器,终值大约为100,000单位的能量(再加上一些随机因素)。当计数器达到终值,在房间的任意一个出入口会生产一个系统控制的 creep,其目标是猎杀你的 creep。它大部分时间不会理睬你的建筑物,一旦某个建筑物挡了它的道,它就会试图摧毁该建筑物。这些 creep 可以使用攻击(attack), 远程攻击(rangedAttack), 和 拆毁(dismantle">
<meta name="twitter:image" content="http://screeps-cn.github.io/img/invader.png">
<!-- Google Analytics -->
</head>
<body>
<div id="container">
<header id="header" class="wrapper">
<div id="header-inner" class="inner">
<h1 id="logo-wrap">
<a href="https://screeps.com" id="logo">Screeps</a>
<a href="/index.html" id="logo-docs">docs</a>
</h1>
<a id="mobile-nav-toggle">
<span class="mobile-nav-toggle-bar"></span>
<span class="mobile-nav-toggle-bar"></span>
<span class="mobile-nav-toggle-bar"></span>
</a>
<div id="header-main"></div>
</div>
</header>
<div id="content-wrap">
<div id="content" class="wrapper">
<div id="content-inner">
<article class="article-container" itemscope itemtype="http://schema.org/Article">
<div class="article-inner">
<div class="article">
<div class="inner">
<header class="article-header">
<h1 class="article-title" itemprop="name" id="top">NPC 入侵者</h1>
<a href="https://github.com/screeps-cn/docs/edit/master/source/invaders.md" class="article-edit-link" title="改进本文"><i class="fa fa-pencil"></i></a>
</header>
<div class="article-content" itemprop="articleBody">
<p>每个被开采的房间都有一个内置的计数器,终值大约为<strong>100,000单位的能量</strong>(再加上一些随机因素)。当计数器达到终值,在房间的任意一个出入口会生产一个系统控制的 creep,其目标是猎杀你的 creep。它大部分时间不会理睬你的建筑物,一旦某个建筑物挡了它的道,它就会试图摧毁该建筑物。这些 creep 可以使用<a href="/api/#Creep.attack">攻击(<code>attack</code>)</a>, <a href="/api/#Creep.rangedAttack">远程攻击(<code>rangedAttack</code>)</a>, 和 <a href="/api/#Creep.dismantle">拆毁(<code>dismantle</code>)</a>,但是不会跨房间游走。</p>
<p><img src="img/invader.png" alt=""></p>
<p>这些 creep 最重要的特点是只会出现在<strong>通向中立房间的出口</strong>,如果出口通向的房间被你(或者其他人)控制,或者是一个被预定的房间,creep 入侵者将不会出现在该的出口。如果该房间的所有的出口都是这种类型,那么就不会产生任何入侵者</p>
<p>目前,NPC 入侵者的攻击不会产生任何邮件提醒,因为即便在一个普通的开采房间中,一天内也会有若干次入侵。</p>
<h2 id="袭击" class="article-heading"><a href="#袭击" class="headerlink" title="袭击"></a>袭击<a class="article-anchor" href="#袭击" aria-hidden="true"></a></h2><p>有 10% 几率你会遇到不止一个入侵者,你将遇到 2 至 5 个结伴的入侵者。每个入侵者都会有各自的角色:近战,远程或者治疗者。远程攻击者和近战攻击者的行为完全不同:他们会试图和你的creep保持距离。治疗者的作用是治疗其他入侵成员。同样的某些 creep 会受到 <img src="//static.screeps.com/upload/mineral-icons/UH.png" alt="">, <img src="//static.screeps.com/upload/mineral-icons/KO.png" alt="">, <img src="//static.screeps.com/upload/mineral-icons/LO.png" alt="">, <img src="//static.screeps.com/upload/mineral-icons/ZH.png" alt=""> 或 <img src="//static.screeps.com/upload/mineral-icons/GO.png" alt=""> 的强化。</p>
<h2 id="creep入侵者类型" class="article-heading"><a href="#creep入侵者类型" class="headerlink" title="creep入侵者类型"></a>creep入侵者类型<a class="article-anchor" href="#creep入侵者类型" aria-hidden="true"></a></h2><p>有两种 creep 入侵者类型:</p>
<ul>
<li>轻型 creep,出现在中立、被预定和房间控制等级3以内的房间里。</li>
<li>重型 creep,出现在房间控制等级4级及以上的房间里。</li>
</ul>
<style>
.invaders td {
border-top: 1px solid #333;
background-color: #222;
color: #ccc;
}
</style>
<table class="invaders">
<tbody>
<tr>
<td width="15%"> </td>
<td style="text-align: center;">RCL < 4</td>
<td style="text-align: center;">RCL ≥ 4</td>
</tr>
<tr>
<td style="text-align: left;">Melee</td>
<td style="text-align: center;"><img src="img/smallMelee.png" alt=""></td>
<td style="text-align: center;"><img src="img/bigMelee.png" alt=""></td>
</tr>
<tr>
<td style="text-align: left;">Ranged</td>
<td style="text-align: center;"><img src="img/smallRanged.png" alt=""></td>
<td style="text-align: center;"><img src="img/bigRanged.png" alt=""></td>
</tr>
<tr>
<td style="text-align: left;">Healer</td>
<td style="text-align: center;"><img src="img/smallHealer.png" alt=""></td>
<td style="text-align: center;"><img src="img/bigHealer.png" alt=""></td>
</tr>
</tbody>
</table>
<h2 id="测试" class="article-heading"><a href="#测试" class="headerlink" title="测试"></a>测试<a class="article-anchor" href="#测试" aria-hidden="true"></a></h2><p>你可使用在右侧面板上的 “Invasion”(入侵)控制器手动生成NPC入侵者,用来测试你的防御系统。</p>
<p><img src="img/chrome_2016-11-24_14-55-59.png" alt=""></p>
<h2 id="要塞-Stronghold" class="article-heading"><a href="#要塞-Stronghold" class="headerlink" title="要塞 (Stronghold)"></a>要塞 (Stronghold)<a class="article-anchor" href="#要塞-Stronghold" aria-hidden="true"></a></h2><p>如果入侵者开始袭击您的房间,请检查您的区域地图 — 他们的基地就在区块内的某个房间内。该 NPC 要塞可以被攻击和摧毁,一旦被摧毁,区块内的所有房间将不再刷新入侵者,直到下一个要塞出现为止。</p>
<p>每个 NPC 要塞的建筑上都有 <code>EFFECT_COLLAPSE_TIMER</code> 效果。当前一个要塞崩溃后,下一个会立刻出现在区块的某个房间内。
如果您摧毁了要塞,它的废墟 (ruins) 将会保留同样的效果计时器,从而让您在这段时间内免受 NPC 的进攻。</p>
<p>要塞的类型有很多种,每种类型都有不同的建筑布局和防御 AI。您可以通过检查 <a href="/api/#StructureInvaderCore"><code>StructureInvaderCore</code></a> 上的 <code>level</code> 属性来估计该要塞的进攻难度。</p>
<p><img src="img/stronghold1.png" alt=""> <img src="img/stronghold5.png" alt=""></p>
<p>我们还有另一个理由来征服一个 NPC 要塞 — 他的仓库中存放着很多宝贵的资源。
每一个要塞都有数个 container。并且在你摧毁核心建筑 (<code>StructureInvaderCore</code>) 之后,它的废墟也会包含大量的资源。
以下是一个 5 级要塞战利品的例子:</p>
<p><img src="img/stronghold_loot5.png" alt=""> <img src="img/stronghold_loot1.png" alt=""> <img src="img/stronghold_loot2.png" alt=""> <img src="img/stronghold_loot3.png" alt=""> <img src="img/stronghold_loot4.png" alt=""></p>
<p>一个正常的 NPC 要塞不仅会在区块中生成入侵者,并且每隔几千 ticks 还会在临近的中立(甚至是预定)房间内生成较小的要塞核心。
这种核心不会包含任何建筑或者 creep。但是他会预定 (reserve) 房间的控制器,在摧毁它之前,您将无法从该房间采集能量。</p>
<p><img src="img/invader-core-expand.gif" alt=""></p>
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2024-09-20T13:38:58.408Z" itemprop="dateModified">上次更新:9月 20, 2024</time>
<a href="/market.html" class="article-footer-prev"><i class="fa fa-chevron-left"></i><span>市场</span></a><a href="/power.html" class="article-footer-next"><span>超能</span><i class="fa fa-chevron-right"></i></a>
</footer>
</div>
</div>
<aside id="article-toc" role="navigation">
<div id="article-toc-inner">
<strong class="sidebar-title">目录</strong>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#袭击"><span class="toc-text">袭击</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#creep入侵者类型"><span class="toc-text">creep入侵者类型</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#测试"><span class="toc-text">测试</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#要塞-Stronghold"><span class="toc-text">要塞 (Stronghold)</span></a></li></ol>
<a href="#" id="article-toc-top">回到顶部</a>
</div>
</aside>
</div>
</article>
<aside id="sidebar" role="navigation">
<div class="inner"><a href="/api/" class=api-link><span>API Reference</span><img src="/img/link-external.svg"></a><a href="/index.html" class="sidebar-link">总览</a><strong class="sidebar-title">游戏环境</strong><a href="/introduction.html" class="sidebar-link">简介</a><a href="/creeps.html" class="sidebar-link">Creeps</a><a href="/control.html" class="sidebar-link">控制</a><a href="/defense.html" class="sidebar-link">防御</a><a href="/respawn.html" class="sidebar-link">重生</a><a href="/start-areas.html" class="sidebar-link">初始区域</a><a href="/resources.html" class="sidebar-link">资源</a><a href="/market.html" class="sidebar-link">市场</a><a href="/invaders.html" class="sidebar-link current">NPC 入侵者</a><a href="/power.html" class="sidebar-link">超能</a><strong class="sidebar-title">脚本</strong><a href="/scripting-basics.html" class="sidebar-link">脚本基础</a><a href="/global-objects.html" class="sidebar-link">全局对象</a><a href="/modules.html" class="sidebar-link">模块</a><a href="/debugging.html" class="sidebar-link">调试</a><a href="/game-loop.html" class="sidebar-link">游戏循环</a><a href="/commit.html" class="sidebar-link">外部提交</a><a href="/simultaneous-actions.html" class="sidebar-link">同步操作</a><a href="/cpu-limit.html" class="sidebar-link">CPU 限制</a><strong class="sidebar-title">其他</strong><a href="/architecture.html" class="sidebar-link">服务器架构</a><a href="/ptr.html" class="sidebar-link">公开测试区域 (PTR)</a><a href="/third-party.html" class="sidebar-link">第三方工具</a><a href="/auth-tokens.html" class="sidebar-link">验证令牌</a><a href="/community-servers.html" class="sidebar-link">社区服务器</a><a href="/tos.html" class="sidebar-link">服务条款</a><a href="/privacy-policy.html" class="sidebar-link">隐私政策</a><strong class="sidebar-title">资源</strong><a href="http://blog.screeps.com" class="sidebar-link">博客</a><a href="http://blog.screeps.com/categories/Changelogs/" class="sidebar-link">修改日志</a><a href="http://chat.screeps.com" class="sidebar-link">聊天室</a><a href="https://screeps.com/forum/" class="sidebar-link">论坛</a><strong class="sidebar-title">贡献文章</strong><a href="/contributed/rules.html" class="sidebar-link">贡献规则</a><a href="/contributed/advanced_grunt.html" class="sidebar-link">高级 Grunt 使用</a><a href="/contributed/modifying-prototypes.html" class="sidebar-link">修改原型</a><a href="/contributed/caching-overview.html" class="sidebar-link">缓存概述</a><a href="/contributed/ps_ubuntu.html" class="sidebar-link">私有服务器 MongoDB</a></div>
</aside>
</div>
</div>
</div>
<footer id="footer" class="wrapper">
<div class="inner">
<div id="footer-copyright">
© 2024 <a href="https://screeps.com/" target="_blank">Screeps</a><br>
Documentation licensed under <a href="http://creativecommons.org/licenses/by/4.0/" target="_blank">CC BY 4.0</a>.
</div>
<div id="footer-links">
<a href="https://github.com/screeps-cn/docs" class="footer-link" target="_blank"><i class="fa fa-github-alt"></i></a>
</div>
</div>
</footer>
</div>
<div id="mobile-nav-dimmer"></div>
<nav id="mobile-nav">
<div id="mobile-nav-inner">
<a href="/api/" class=api-link><span>API Reference</span><img src="/img/link-external.svg"></a><a href="/index.html" class="mobile-nav-link">总览</a><strong class="mobile-nav-title">游戏环境</strong><a href="/introduction.html" class="mobile-nav-link">简介</a><a href="/creeps.html" class="mobile-nav-link">Creeps</a><a href="/control.html" class="mobile-nav-link">控制</a><a href="/defense.html" class="mobile-nav-link">防御</a><a href="/respawn.html" class="mobile-nav-link">重生</a><a href="/start-areas.html" class="mobile-nav-link">初始区域</a><a href="/resources.html" class="mobile-nav-link">资源</a><a href="/market.html" class="mobile-nav-link">市场</a><a href="/invaders.html" class="mobile-nav-link current">NPC 入侵者</a><a href="/power.html" class="mobile-nav-link">超能</a><strong class="mobile-nav-title">脚本</strong><a href="/scripting-basics.html" class="mobile-nav-link">脚本基础</a><a href="/global-objects.html" class="mobile-nav-link">全局对象</a><a href="/modules.html" class="mobile-nav-link">模块</a><a href="/debugging.html" class="mobile-nav-link">调试</a><a href="/game-loop.html" class="mobile-nav-link">游戏循环</a><a href="/commit.html" class="mobile-nav-link">外部提交</a><a href="/simultaneous-actions.html" class="mobile-nav-link">同步操作</a><a href="/cpu-limit.html" class="mobile-nav-link">CPU 限制</a><strong class="mobile-nav-title">其他</strong><a href="/architecture.html" class="mobile-nav-link">服务器架构</a><a href="/ptr.html" class="mobile-nav-link">公开测试区域 (PTR)</a><a href="/third-party.html" class="mobile-nav-link">第三方工具</a><a href="/auth-tokens.html" class="mobile-nav-link">验证令牌</a><a href="/community-servers.html" class="mobile-nav-link">社区服务器</a><a href="/tos.html" class="mobile-nav-link">服务条款</a><a href="/privacy-policy.html" class="mobile-nav-link">隐私政策</a><strong class="mobile-nav-title">资源</strong><a href="http://blog.screeps.com" class="mobile-nav-link">博客</a><a href="http://blog.screeps.com/categories/Changelogs/" class="mobile-nav-link">修改日志</a><a href="http://chat.screeps.com" class="mobile-nav-link">聊天室</a><a href="https://screeps.com/forum/" class="mobile-nav-link">论坛</a><strong class="mobile-nav-title">贡献文章</strong><a href="/contributed/rules.html" class="mobile-nav-link">贡献规则</a><a href="/contributed/advanced_grunt.html" class="mobile-nav-link">高级 Grunt 使用</a><a href="/contributed/modifying-prototypes.html" class="mobile-nav-link">修改原型</a><a href="/contributed/caching-overview.html" class="mobile-nav-link">缓存概述</a><a href="/contributed/ps_ubuntu.html" class="mobile-nav-link">私有服务器 MongoDB</a>
</div>
</nav>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<!-- build:js build/js/main.js -->
<script src="/js/lang_select.js"></script>
<script src="/js/scrollingelement.js"></script>
<script src="/js/toc.js"></script>
<script src="/js/mobile_nav.js"></script>
<script src="/js/custom.js"></script>
<!-- endbuild -->
<script src="https://cdn.jsdelivr.net/retinajs/1.3.0/retina.min.js" async></script>
<!-- Algolia -->
</body>
</html>