警告:滥用此方法会使游戏的趣味性降低以及您对游戏的长期兴趣减退
警告:滥用此方法会使游戏的趣味性降低以及您对游戏的长期兴趣减退
警告:滥用此方法会使游戏的趣味性降低以及您对游戏的长期兴趣减退
来源:steam社区指南(由 ErDragon 制作的Guide about everything from Scrap Mechanic Survival,喜欢的请去steam社区给他点赞)
首先打开游戏安装目录如下:
路径为:Survival\Scripts\game
打开倒数第二个叫SurvivalGames.lua的文件,先备份一下,以免gg(这里建议用notepad++或者visual studio code打开,没有的话记事本也行)
找到第83行代码如下:
把if g_survivalDev then改成if true then,改后如下:
之后就能在游戏里输入指令了
/ammo “Give ammo (default 40)”
/spudgun “Give the spudgun”
/gatling “Give the potato gatling gun”
/shotgun “Give the fries shotgun”
/sunshake “Give 1 sunshake”
/baguette “Give 1 revival baguette”
/keycard “Give 1 keycard”
/powercore “Give 1 powercore”
/components “Give <quantity> components (default 10)”
/glowsticks “Give <quantity> components (default 10)”
/tumble “Set tumble state”
/god “Mechanic characters will take no damage”
/respawn “Respawn at last bed (or at the crash site)”
/encrypt “Restrict interactions in all warehouses”
/decrypt “Unrestrict interactions in all warehouses”
/limited “Use the limited inventory”
/unlimited “Use the unlimited inventory”
/ambush “Starts a ‘random’ encounter”
/recreate “Recreate world”
/timeofday “Sets the time of the day as a fraction (0.5=mid day)”
/timeprogress “Enables or disables time progress”
/day “Disable time progression and set time to daytime”
/spawn “Spawn a unit: ‘woc’, ‘tapebot’, ‘totebot’, ‘haybot'”
/harvestable “Create a harvestable: ‘tree’, ‘stone'”
/cleardebug “Clear debug draw objects”
/export “Exports blueprint $SURVIVAL_DATA/LocalBlueprints/<name>.blueprint”
/import “Imports blueprint $SURVIVAL_DATA/LocalBlueprints/<name>.blueprint”
/starterkit “Spawn a starter kit”
/mechanicstartkit” Spawn a starter kit for starting at mechanic station”
/pipekit “Spawn a pipe kit”
/foodkit “Spawn a food kit”
/seedkit “Spawn a seed kit”
/die “Kill the player”
/sethp “Set player hp value”
/setwater “Set player water value”
/setfood “Set player food value”
/aggroall “All hostile units will be made aware of the player’s position”
/goto “Teleport to predefined position”
/raid “Start a level <level> raid at player position at wave <wave> in <delay> hours.”
/stopraid “Cancel all incoming raids”
/disableraids “Disable raids if true”
/camera “Spawn a SplineCamera tool”
/printglobals “Print all global lua variables”
/clearpathnodes “Clear all path nodes in overworld”
/enablepathpotatoes “Creates path nodes at potato hits in overworld and links to previous node”
中文版(我自己翻译的):
/ammo 获得子弹(其实就是土豆,默认40个)
/spudgun 获得土豆枪
/gatling 获得土豆加特林枪
/shotgun 获得土豆霰弹枪
/sunshake 获得一个sunshake(类似奶昔的饮料)
/baguette 获得一个复活法棍
/keycard 获得钥匙卡
/powercore 获得一个主要电池(恢复飞船电力的那个)
/components 获得元件包(默认10个)
/glowsticks 获得投掷荧光棒(默认10个)
/tumble 设置翻滚状态(没用过不知道啥东西)
/god 上帝模式(你懂的)
/respawn 重生
/encrypt 限制所有仓库中的交互
/decrypt 取消限制所有仓库中的交互
/unlimited 创造模式背包设置(各种东西无限有)
/limited 恢复生存模式背包设置
/ambush 开始“随机”遭遇战
/recreate 重新生成世界(慎用,会让你之前造的车还有各种东西清零,环境恢复到刚开始游戏的状态)
/timeofday 设置一天中的时间(为小数0.5=中午)
/timeprogress 停止或者恢复时间流动
/day 停止时间流动并且设置为12:00
/spawn 生成生物,需要在后面输入‘woc’, ‘tapebot’, ‘totebot’, ‘haybot’
/harvestable 生成树或石头,也需要在后面输入‘tree’, ‘stone’
/cleardebug 清除调试绘图对象(不知道是啥东西)
/export “Exports blueprint $SURVIVAL_DATA/LocalBlueprints/<name>.blueprint”
/import “Imports blueprint $SURVIVAL_DATA/LocalBlueprints/<name>.blueprint”
/starterkit 生成一个新手包(一个小箱子,里面有木头石头铁方块还有车辆的所有基础配件和汽油)
/mechanicstartkit” 生成一个空的小箱子
/pipekit 生成一个管道包(一个小箱子,里面有管道还有真空泵)
/foodkit 生成一个食物包(一个小箱子,里面有各种吃的)
/seedkit 生成一个种子包(一个小箱子,里面有各种种子还有土)
/die 让玩家gg
/sethp 设置生命值为xxx
/setwater 设置口渴值为xxx
/setfood 设置饱食度值为xxx
/aggroall 所有敌对生物都知道你在哪(作死专用)
/goto 传送到已知位置(还没用过)
/raid 设置一个等级为x的抢夺,位置在玩家脚下,共y波,在z小时(游戏内时间)后来(例:/raid 1 2 3)
/stopraid 取消正在到来的抢夺(就是一大堆机器人锤你的农场)
/disableraids 取消抢夺
/camera 生成样条线摄影机工具(依旧不知道是啥)
/printglobals 打印所有全局lua变量(开发者用的东西,我们用不上)
/clearpathnodes 清除overworld中的所有路径节点(我们用不上+1)
/enablepathpotatoes 在overworld中的土豆命中时创建路径节点并链接到上一个节点(我们用不上+2)
来源:steam社区指南(由 ErDragon 制作的Guide about everything from Scrap Mechanic Survival,喜欢的请去steam社区给他点赞)