游迅网
游迅网 > 攻略首页 > 单机游戏攻略 > 正文

《饥荒》海难DLC控制台代码汇总 作弊码修改方法介绍

2015-12-09 15:53:31来源:贴吧编辑:评论(0)

   《饥荒》海难DLC目前已经发布有一段时间,很多玩家都已体验游戏,海难DLC控制台代码怎么用?接下来为大家带来玩家“Leeds我去我去”分享的控制台代码大全,以供玩家们参考。

   地图全开(游戏中按Ctrl+1)
   用记事本打开游戏目录\data\DLC0002\scripts\prefabs\player_common.lua文件,在inst:AddComponent("resurrectable")下一行插入以下内容:
   TheInput:AddKeyUpHandler(KEY_1, function()
   if TheInput:IsKeyDown(KEY_CTRL) then
   local map = TheSim:FindFirstEntityWithTag("minimap")
   local x,y,z = GetPlayer().Transform:GetWorldPosition()
   map.MiniMap:ShowArea(x, y, z, 10000)
   end
   end)
   即可在游戏中按Ctrl + 1使地图全开

   用记事本打开游戏目录\data\DLC0002\scripts\tuning.lua文件,将以下内容:
   STACK_SIZE_LARGEITEM = 10,
   STACK_SIZE_MEDITEM = 20,
   STACK_SIZE_SMALLITEM = 40,
   替换为:
   STACK_SIZE_LARGEITEM = 999,
   STACK_SIZE_MEDITEM = 999,
   STACK_SIZE_SMALLITEM = 999,
   即可加大单格堆叠数量至999

   采矿时多掉黄金
   用记事本打开游戏目录\data\scripts\prefabs\rocks.lua文件,
   1.在{'nitre', 0.25},的下一行插入以下内容:
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   2.在{'goldnugget', 0.25},的下一行插入以下内容:
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   3.在{'rocks', 0.6},的下一行插入以下内容:
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   4.在{'rocks', 0.4},的下一行插入以下内容:
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   5.在{'rocks', 0.2},的下一行插入以下内容:
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   {'goldnugget', 1.00},
   即可在采矿时多掉3块黄金

   农田收获更多产品

   用记事本打开游戏目录\data\DLC0002\scripts\components\crop.lua 文件,将以下内容: harvester.components.inventory:Give   Item(product) 替换为: harvester.components.inventory:GiveItem(SpawnPrefab(self.product_prefab)) harvester.components.inventory:GiveItem(SpawnPrefab(self.product_prefab)) harvester.components.inventory:GiveItem(SpawnPrefab(self.product_prefab)) 即 可 一 次 收 获 3 个 产 品 , 想 收 获 多 少 , 就 复 制 多 少 行 harvester.components.inventory:GiveItem(SpawnPrefab(self.product_prefab))即可

   煮一锅收多个料理
   用记事本打开游戏目录\data\DLC0002\scripts\components\stewer.lua文件,将以下内容:
   harvester.components.inventory:GiveItem(loot, nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
   替换为:
   harvester.components.inventory:GiveItem(SpawnPrefab(self.product))
   harvester.components.inventory:GiveItem(SpawnPrefab(self.product))
   harvester.components.inventory:GiveItem(SpawnPrefab(self.product))
   即可煮一锅收3个料理,想收多少,就复制多少行harvester.components.inventory:GiveItem(SpawnPrefab(self.product))即可

   冰箱永久保鲜
   用记事本打开游戏目录\data\DLC0002\scripts\tuning.lua文件,将
   PERISH_FRIDGE_MULT = .5,替换为PERISH_FRIDGE_MULT = 0,
   即可让放入冰箱的食物永久保鲜。如果将0改为负数比如-5,则可使不新鲜的食物回复新鲜度

   晾肉架一次收多块干肉
   用记事本打开游戏目录\data\DLC0002\scripts\components\dryer.lua文件,将以下内容:
   harvester.components.inventory:GiveItem(loot, nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
   替换为:
   harvester.components.inventory:GiveItem(SpawnPrefab(self.product))
   harvester.components.inventory:GiveItem(SpawnPrefab(self.product))
   harvester.components.inventory:GiveItem(SpawnPrefab(self.product))
   即可晾1块肉收3块干肉,想收多少,就复制多少行harvester.components.inventory:GiveItem(SpawnPrefab(self.product))即可

   收获蜂箱不被蛰
   用记事本打开游戏目录\data\DLC0002\scripts\prefabs\beebox.lua文件,将inst.components.childspawner:ReleaseAllChildren(picker)替换为--inst.components.childspawner:ReleaseAllChildren(picker)
   即可在收获蜂箱不被蛰

   背包可冷藏食品
   1.普通背包可冷藏食品:用记事本打开游戏目录\data\DLC0002\scripts\prefabs\backpack.lua文件,在inst:AddComponent("inspectable")的下一行插入inst:AddTag("fridge")
   2.小猪包可冷藏食品:用记事本打开游戏目录\data\DLC0002\scripts\prefabs\piggyback.lua文件,在inst:AddComponent("inspectable")的下一行插入inst:AddTag("fridge")

   花瓣种花(花可移植)
   用记事本打开游戏目录\data\DLC0002\scripts\prefabs\petals.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
   local function OnDeploy (inst, pt)
   SpawnPrefab("flower").Transform:SetPosition(pt.x, pt.y, pt.z)
   inst.components.stackable:Get():Remove()
   end
   inst:AddComponent("deployable")
   inst.components.deployable.ondeploy = OnDeploy
   即可用花瓣种花,使花可方便移植

   用蘑菇种蘑菇(蘑菇可移植)
   用记事本打开游戏目录\data\DLC0002\scripts\prefabs\mushrooms.lua文件,inst.AnimState:PlayAnimation(data.animname.."_cap")的下一行插入以下内容:
   local function OnDeploy (inst, pt)
   SpawnPrefab(data.animname.."_mushroom").Transform:SetPosition(pt.x, pt.y, pt.z) inst.components.stackable:Get():Remove()
   end
   inst:AddComponent("deployable")
   inst.components.deployable.ondeploy = OnDeploy
   即可用红蘑菇种红蘑菇,用蓝蘑菇种蓝蘑菇,用绿蘑菇种绿蘑菇,即蘑菇可移植

   同时携带多个背包(背包可库存)
   1.同时携带多个普通背包:用记事本打开游戏目录\data\DLC0002\scripts\prefabs\backpack.lua文件,将inst.components.inventoryitem.cangoincontainer = false替换为inst.components.inventoryitem.cangoincontainer = true
   2.同时携带多个小猪包:用记事本打开游戏目录\data\DLC0002\scripts\prefabs\piggyback.lua文件,将inst.components.inventoryitem.cangoincontainer = false替换为inst.components.inventoryitem.cangoincontainer = true

   如果游戏崩溃了,就修改回去就行。

   复活石无限使用(主角永生)
   用记事本打开游戏目录\data\DLC0002\scripts\prefabs\resurrectionstone.lua文件,在inst:Remove()的下一行插入以下内容:
   SpawnPrefab("resurrectionstone").Transform:SetPosition(inst.Transform:GetWorldPosition())
   主角复活后,再点身下的复活石,可使复活石再次完整

   

饥荒

饥荒

  • 游戏类别:动作冒险
  • 游戏平台:/PC/PS4/XboxOne/
  • 开发商:Klei Entertainment Inc
  • 发行商:Klei Entertainment
  • 发行时间:2013年4月23日
游戏介绍:

《饥荒》是由《闪克》制作组Klei制作发行的一款动作冒险类求生游戏,《饥荒》的故事讲述的是关于一名科学家被恶魔传送到了异世界荒野。他必须用自己的智慧在严酷的野外环境中求生,差不多就是《东京丛林》加上能灵巧活动的双手,或者《我的世界》加上消化系统。

点击进入 >> 饥荒手机版下载

推荐阅读