游戏内聊天指令

废品机械师聊天指令

废品机械师的聊天框可以输入指令,用来获取物品、停止突袭、把卡住的角色救出来,或者直接改变时间。生存模式的大部分指令要在开发者模式下启动游戏才会出现。本页按模式分组,收录了全部指令。

3 种游戏模式,共 46 条指令

如何开启生存模式指令

普通的生存模式只会注册房主需要的两条指令。其余都是开发者指令,只有用 -dev 启动选项启动游戏时,游戏才会把它们加进聊天控制台。

  1. 先关闭游戏,然后打开 Steam 库。
  2. 右键点击废品机械师,选择属性。
  3. 在通用标签页中找到启动选项输入框。
  4. 在框里输入 -dev,然后关闭窗口。
  5. 启动游戏,载入或新建一个生存模式世界。

按回车打开聊天框,输入以斜杠开头的指令,再按一次回车。控制台会自动补全指令名称,如果游戏为该指令内置了取值列表,取值也能补全。

  • /kick 和 /ban 是例外,它们属于房主,不加启动选项也能用。
  • 创造模式不需要启动选项。世界一加载,指令就对房间里的所有人生效,只有清空世界的那两条留给房主。
  • 挑战指令只在你制作挑战关卡时存在。游玩别人发布的挑战时不会出现。

启动参数会改变一个世界的什么

这个参数不只是往聊天框里加指令。开着它进生存世界,开局本身就不一样,尤其是开着它新建的世界,差别一眼就能看出来:

  • 开局任务链不会启动。参数开着的时候,读条结束后游戏不会激活新手引导任务,日志本是空的,坠机点那几步也不会出现。
  • 开场动画会被跳过,世界直接就开始了。
  • 第一次进入世界的角色,初始装备也不一样:给的是一整套工具和物资,而不是正常开局的那两样。

这些都不是存档坏了,但故事确实不会自己开始。想按原本的设计打战役,就别开着参数建那个世界,把开发者模式留给专门用来折腾的存档。

使用前请注意

这些是开发工具,不是难度选项。它们可以直接给你还没解锁的物品,删掉创造世界里的所有方块,或者让生存存档进入剧情没有考虑过的状态。如果这个世界对你很重要,请先复制一份存档文件夹。

表格怎么看

<name>
尖括号里的参数必须输入,不写这条指令就没有意义。
[name]
方括号里的参数可以不写。
默认值
如果游戏会为省略的参数套用固定取值,该取值会标在参数旁边。
省略时翻转当前状态
有些参数省略时会翻转当前状态,所以同一条指令输入两次就回到原样。
可选值
如果游戏只接受固定的几个词,这些词会全部列出,聊天控制台也能自动补全。
游戏内说明
无论你用哪种语言游玩,游戏都用英文显示这些说明,所以这里照原文抄录。

生存模式指令

31

其中 2 条属于房间的房主,另外 29 条是开发者指令,需要上面提到的启动选项。

生存模式指令的聊天指令
指令参数游戏内说明可用对象
/aggroall/aggroallAll hostile units will be made aware of the player's position开发者模式
/ammo/ammo [quantity]
  • [quantity]int默认值: 100
Give ammo (default 100)开发者模式
/baguette/baguetteGive 1 revival baguette开发者模式
/ban/ban <player name>
  • <player name>string
Ban a player from server仅房主
/components/components [quantity]
  • [quantity]int默认值: 10
Give <quantity> components (default 10)开发者模式
/die/dieKill the player开发者模式
/disableraids/disableraids <enabled>
  • <enabled>bool
Disable raids if true开发者模式
/exportmultishape/exportmultishapeExports a blueprint shape file开发者模式
/foodplease/foodpleaseGive 5 of each edible type开发者模式
/gatling/gatlingGive the potato gatling gun开发者模式
/glowsticks/glowsticks [quantity]
  • [quantity]int默认值: 20
Give <quantity> components (default 10)游戏自带的这条说明照搬了 /components 的原文,连默认值一起搬了过来;这条指令实际发的是荧光棒,用的是参数列里写的那个默认值。开发者模式
/god/godMechanic characters will take no damage开发者模式
/keycard/keycardGive 1 keycard开发者模式
/kick/kick <player name>
  • <player name>string
Kick a player from server仅房主
/limited/limitedUse the limited inventory开发者模式
/noaggro/noaggro [enable]
  • [enable]bool省略时翻转当前状态
Toggles the player as a target开发者模式
/powercore/powercoreGive 1 powercore开发者模式
/seedsplease/seedspleaseGive 20 of each seed type and some soil开发者模式
/setbreath/setbreath <breath>
  • <breath>number
Set player breath value开发者模式
/sethp/sethp <hp>
  • <hp>number
Set player hp value开发者模式
/shotgun/shotgunGive the fries shotgun开发者模式
/spawn/spawn [unitName] [amount]
  • [unitName]string可选值 ball, blue, bt, c, cable, cablebot, f, farmbot
    另有 33 个green, greentapebot, gtb, h, haybot, l, leaf, lootbot, m, miner, minerbot, red, redtapebot, rt, rtb, seedbot, t, tapebot, tb, toteblue, totebot, toteleaf, totered, toteyellow, trash, trashball, trashbot, woc, worm, yellow, yellowtapebot, yt, ytb
  • [amount]int默认值: 1
Spawn a unit: 'woc', 'tapebot', 'totebot', 'haybot'开发者模式
/spudgun/spudgunGive the spudgun开发者模式
/starterkit/starterkit [name]
  • [name]string默认值: start可选值 start, trashbot, mechanic, tutorial, pipe, food, seed
Spawn a starter kit开发者模式
/stopraid/stopraidCancel all incoming raids开发者模式
/sunshake/sunshakeGive 1 sunshake开发者模式
/timeofday/timeofday [timeOfDay]
  • [timeOfDay]number
Sets the time of the day as a fraction (0.5=mid day)开发者模式
/timeprogress/timeprogress [enabled]
  • [enabled]bool
Enables or disables time progress开发者模式
/tumble/tumble [enable]
  • [enable]bool省略时翻转当前状态
Set tumble state开发者模式
/unlimited/unlimitedUse the unlimited inventory开发者模式
/unstuck/unstuckUnstuck the player开发者模式

创造模式指令

12

创造模式会为房间里的每位玩家注册这些指令。清空世界的两条留给房主,其中负责删除的那条还要先用另一条解锁。

创造模式指令的聊天指令
指令参数游戏内说明可用对象
/aggroall/aggroallAll hostile units will be made aware of the player's position所有人
/allowclear/allowclear [enable]
  • [enable]bool省略时翻转当前状态
Enabled/Disables the /clear command仅房主
/clear/clearRemove all shapes in the world. It must first be enabled with /allowclear仅房主
/day/daySets time of day to day所有人
/dropscrap/dropscrapToggles the scrap loot from Haybots所有人
/killall/killallKills all spawned units所有人
/night/nightSets time of day to night所有人
/noaggro/noaggro [enable]
  • [enable]bool省略时翻转当前状态
Toggles the player as a target所有人
/noaggrocreations/noaggrocreations [enable]
  • [enable]bool省略时翻转当前状态
Toggles whether the Tapebots will shoot at creations所有人
/place/place <harvestable>
  • <harvestable>string
Places a harvestable at the aimed position. Must be placed on the ground. The harvestable parameter controls which harvestable to place: 'stone', 'tree', 'birch', 'leafy', 'spruce', 'pine'所有人
/popcapsules/popcapsules [filter]
  • [filter]string
Opens all capsules. An optional filter controls which type of capsules to open: 'bot', 'animal'所有人
/restrictions/restrictions [enable]
  • [enable]bool省略时翻转当前状态
Toggles restrictions on creations所有人

挑战编辑器指令

3

这三条存在于挑战编辑器中,作用于你正在编辑的挑战。

挑战编辑器指令的聊天指令
指令参数游戏内说明可用对象
/save/saveSave the challenge挑战编辑器
/stop/stopStop the test挑战编辑器
/test/testTest the challenge挑战编辑器