OBJECT HUB

Creep API Hub

把移动、采集、搬运与 Controller 升级相关的 Creep API、返回码、教程和工具集中到一个入口。

这里不重复写一套 Creep 教程,而是把现有动作 API 与故障排查路径连接起来。状态改变类调用仍应保存返回值,并在后续 tick 核对位置、Store 或目标状态。

API

当前覆盖的 API 入口

这些条目直接来自共享的 API 快速查询数据源。默认保留最常用入口,其余关系按需展开,避免对象 Hub 一次塞入过多信息。

6
Creep

creep.moveTo(target, opts)

为 Creep 安排移动;返回 OK 只表示移动命令被接受,不代表当前位置已经改变。

移动ERR_NO_PATHfatigue路径
在 API Reference 中打开 →
Creep

creep.harvest(target)

从 Source、Mineral 等允许的资源对象采集资源,需要对应有效身体部件。

SourceEnergyWORK采集
在 API Reference 中打开 →
Creep

creep.transfer(target, resourceType, amount?)

把 Creep Store 中的资源转移给可接收目标。

运输EnergyStoreSpawn
在 API Reference 中打开 →
Creep

creep.withdraw(target, resourceType, amount?)

从 Structure、Tombstone 或 Ruin 的 Store 中取出资源。

ContainerStorageStore取能
在 API Reference 中打开 →
Creep

creep.pickup(resource)

拾取地面 Resource 对象;Container 等 Store 目标应使用 withdraw。

掉落资源EnergyResource
在 API Reference 中打开 →
Creep

creep.upgradeController(controller)

消耗 Creep 携带的 Energy 提升己方 Controller 进度。

Controller升级WORKUpgrader
在 API Reference 中打开 →

GUIDES

专题教程

具体工作流继续由已有专题文章承载,Hub 不重复制造第二套教程。

查看更多专题教程 · 1

PROVE

Runtime Verification

只有同时通过现有 Markdown 接受边界,并达到 Console 或 Live 公开等级的相关文章才会显示在这里。

1
CONSOLE

怎样让 Creep 自动升级 Controller?

安全创建并控制 Upgrader1,让它在 Source 与 Controller 之间往返,认识 upgradeController()、Memory 状态切换和返回结果。

2026-08-11 · 2 evidence打开已验证文章 →