饥荒海难地图全开修改方法 |
您所在的位置:网站首页 › 饥荒海难全地图图片 › 饥荒海难地图全开修改方法 |
《饥荒海难》这款游戏中有很多的玩家在问如何修改代码达到一些想要的东西呢?小编今天就给大家带来了饥荒海难地图全开修改方法。 地图全开(游戏中按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:GiveItem(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()) 主角复活后,再点身下的复活石,可使复活石再次完整 提高主角攻击力 用记事本打开游戏目录\data\DLC0002\scripts\tuning.lua文件,将local wilson_attack = 34替换为local wilson_attack = 500 即可将主角攻击力由34提高到500,数字可自行调整 快速制造物品 用记事本打开游戏目录\data\DLC0002\scripts\actions.lua文件,将BUILD = Action(),替换为BUILD = Action(0, true), 即可跳过制造物品的动画,快速制造物品 主角自动回血 用记事本打开游戏目录\data\DLC0002\scripts\prefabs\player_common.lua文件,在inst.components.health:SetMaxHealth(TUNING.WILSON_HEALTH)的下一行插入以下内容: inst.components.health:StartRegen(30, 10) 即可让主角自动回血,其中30为血量,10为10秒回血一次,可自行调整 全部物品无限使用(工具、武器、盔甲、魔杖、护身符、衣服、帽子、照明物品等全部无限使用) 1.用记事本打开游戏目录\data\DLC0002\scripts\widgets\itemtile.lua文件,将下列内容: if invitem.components.fueled then self:SetPercent(invitem.components.fueled:GetPercent()) end if invitem.components.finiteuses then self:SetPercent(invitem.components.finiteuses:GetPercent()) end if invitem.components.perishable then if self:HasSpoilage() then self:SetPerishPercent(invitem.components.perishable:GetPercent()) else self:SetPercent(invitem.components.perishable:GetPercent()) end end if invitem.components.armor then self:SetPercent(invitem.components.armor:GetPercent()) end 替换为: --if invitem.components.fueled then --self:SetPercent(invitem.components.fueled:GetPercent()) --end --if invitem.components.finiteuses then --self:SetPercent(invitem.components.finiteuses:GetPercent()) --end if invitem.components.perishable then if self:HasSpoilage() then self:SetPerishPercent(invitem.components.perishable:GetPercent()) else self:SetPercent(invitem.components.perishable:GetPercent()) end end --if invitem.components.armor then --self:SetPercent(invitem.components.armor:GetPercent()) --end 2.用记事本打开游戏目录\data\scripts\components\finiteuses.lua文件,将self:SetUses(self.current - (num or 1))替换为self:SetUses(self.current - 0) 3.用记事本打开游戏目录\data\DLC0002\scripts\components\fueled.lua文件,将self.consuming = true替换为self.consuming = false 4.用记事本打开游戏目录\data\scripts\components\armor.lua文件,将下列内容: function Armor:SetCondition(amount) self.condition = amount 替换为: function Armor:SetCondition(amount) self.condition = self.maxcondition 即可让全部物品无限使用。其中火堆和石头营火会无限燃烧,直到睡过帐篷或下地洞后熄灭 K73小编推荐: 饥荒海难传送门制作零件获取方法 饥荒海难物品合成大全 饥荒海难 几何种植五格装备栏mod下载 饥荒海难全物品属性作用 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |