饥荒海难作弊码修改-2 饥荒 海难DLC作弊码修改方法 控制台代码怎么用
- 单机游戏攻略
- 关注:1.92W次
背包可冷藏食品
1.普通背包可冷藏食品:用记事本打开游戏目录dataDLC0002scriptsprefabs文件,在inst:AddComponent("inspectable")的下一行插入inst:AddTag("fridge")
2.小猪包可冷藏食品:用记事本打开游戏目录dataDLC0002scriptsprefabs文件,在inst:AddComponent("inspectable")的下一行插入inst:AddTag("fridge")
花瓣种花(花可移植)
用记事本打开游戏目录dataDLC0002scriptsprefabs文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
SpawnPrefab("flower")sform:SetPosition(pt.x, pt.y, pt.z)
kable:Get():Remove()
end
inst:AddComponent("deployable")
ploy = OnDeploy
即可用花瓣种花,使花可方便移植
用蘑菇种蘑菇(蘑菇可移植)
用记事本打开游戏目录dataDLC0002scriptsprefabs文件,State:PlayAnimation(name.."_cap")的下一行插入以下内容:
local function OnDeploy (inst, pt)
SpawnPrefab(name.."_mushroom")sform:SetPosition(pt.x, pt.y, pt.z) kable:Get():Remove()
end
inst:AddComponent("deployable")
ploy = OnDeploy
即可用红蘑菇种红蘑菇,用蓝蘑菇种蓝蘑菇,用绿蘑菇种绿蘑菇,即蘑菇可移植
同时携带多个背包(背包可库存)
1.同时携带多个普通背包:用记事本打开游戏目录dataDLC0002scriptsprefabs文件,将oincontainer = false替换为oincontainer = true
2.同时携带多个小猪包:用记事本打开游戏目录dataDLC0002scriptsprefabs文件,将oincontainer = false替换为oincontainer = true
如果游戏崩溃了,就修改回去就行。
复活石无限使用(主角永生)
用记事本打开游戏目录dataDLC0002scriptsprefabs文件,在inst:Remove()的下一行插入以下内容:
SpawnPrefab("resurrectionstone")sform:SetPosition(sform:GetWorldPosition())
主角复活后,再点身下的复活石,可使复活石再次完整
提高主角攻击力
用记事本打开游戏目录dataDLC0002scripts文件,将local wilson_attack = 34替换为local wilson_attack = 500
即可将主角攻击力由34提高到500,数字可自行调整
快速制造物品
用记事本打开游戏目录dataDLC0002scripts文件,将BUILD = Action(),替换为BUILD = Action(0, true),
即可跳过制造物品的动画,快速制造物品
主角自动回血
用记事本打开游戏目录dataDLC0002scriptsprefabsplayer_文件,在th:SetMaxHealth(ON_HEALTH)的下一行插入以下内容:
th:StartRegen(30, 10)
即可让主角自动回血,其中30为血量,10为10秒回血一次,可自行调整
全部物品无限使用(工具、武器、盔甲、魔杖、护身符、衣服、帽子、照明物品等全部无限使用)
1.用记事本打开游戏目录dataDLC0002scriptswidgets文件,将下列内容:
if ed then
self:SetPercent(ed:GetPercent())
end
if teuses then
self:SetPercent(teuses:GetPercent())
end
if shable then
if self:HasSpoilage() then
self:SetPerishPercent(shable:GetPercent())
else
self:SetPercent(shable:GetPercent())
end
end
if r then
self:SetPercent(r:GetPercent())
end
替换为:
--if ed then
--self:SetPercent(ed:GetPercent())
--end
--if teuses then
--self:SetPercent(teuses:GetPercent())
--end
if shable then
if self:HasSpoilage() then
self:SetPerishPercent(shable:GetPercent())
else
self:SetPercent(shable:GetPercent())
end
end
--if r then
--self:SetPercent(r:GetPercent())
--end
2.用记事本打开游戏目录datascriptscomponents文件,将self:SetUses(ent - (num or 1))替换为self:SetUses(ent - 0)
3.用记事本打开游戏目录dataDLC0002scriptscomponents文件,将uming = true替换为uming = false
4.用记事本打开游戏目录datascriptscomponents文件,将下列内容:
function Armor:SetCondition(amount)
ition = amount
替换为:
function Armor:SetCondition(amount)
ition = ondition
即可让全部物品无限使用。其中火堆和石头营火会无限燃烧,直到睡过帐篷或下地洞后熄灭。
- 文章版权属于文章作者所有,转载请注明 https://yxylg.com/danjiyouxi/7wq0d9.html