揹包可冷藏食品
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
即可讓全部物品無限使用。其中火堆和石頭營火會無限燃燒,直到睡過帳篷或下地洞後熄滅。