YN022-同时携带多个背包(背包可库存)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 二十二.同时携带多个背包(背包可库存) 1.同时携带多个普通背包:用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/backpack.lua文件,将inst.components.inventoryitem.cangoincontainer = false替换为inst.components.inventoryitem.cangoincontainer = true 2.同时携带多个小猪包:用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/piggyback.lua文件,将inst.components.inventoryitem.cangoincontainer = false替换为inst.components.inventoryitem.cangoincontainer = true 3.同时携带多个坎普斯背包:用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/krampus_sack.lua文件,将inst.components.inventoryitem.cangoincontainer = false替换为inst.components.inventoryitem.cangoincontainer = true 4.同时携带多个冰包:用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/icepack.lua文件,将inst.components.inventoryitem.cangoincontainer = false替换为inst.components.inventoryitem.cangoincontainer = true 即可同时携带多个背包

2025/04/23 · Bny

YN023-背包格子增大至39格

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 二十三.背包格子增大至39格 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/backpack.lua文件, 1.将下列内容: for y = 0, 3 do table.insert(slotpos, Vector3(-162, -y*75 + 114 ,0)) table.insert(slotpos, Vector3(-162 +75, -y*75 + 114 ,0)) 替换为: for y = 0, 12 do table.insert(slotpos, Vector3(-162, -y*75 + 350 ,0)) table.insert(slotpos, Vector3(-162 +75, -y*75 + 350 ,0)) table.insert(slotpos, Vector3(-162 +150, -y*75 + 350 ,0)) 2.将下列内容: inst.components.container.widgetanimbank = "ui_backpack_2x4" inst.components.container.widgetanimbuild = "ui_backpack_2x4" inst.components.container.widgetpos = Vector3(-5,-70,0) 替换为: --inst.components.container.widgetanimbank = "ui_backpack_2x4" --inst.components.container.widgetanimbuild = "ui_backpack_2x4" inst.components.container.widgetpos = Vector3(-25,-50,0) 即可让普通背包格子增大至39格.将游戏设置(options) - (Settings) - HUD size项设为0,即显示最小物品条,才可完整显示

2025/04/23 · Bny

YN024-制造坎普斯背包

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 二十四.制造坎普斯背包 用MT管理器打开游戏目录/assets/DLC0002/scripts/recipes.lua文件,在Recipe("piggyback", {Ingredient("pigskin", 4), Ingredient("silk", 6), Ingredient("rope", 2)}, RECIPETABS.SURVIVAL, TECH.SCIENCE_TWO)的下一行插入以下内容: Recipe("krampus_sack", {Ingredient("cutgrass", 5),Ingredient("twigs", 5)}, RECIPETABS.SURVIVAL, TECH.NONE) 即可在生存选项(画着绳套)下,用5个草、5个树杈制造坎普斯背包。不要与“巨型超市”一同修改,因为“巨型超市”中已经有坎普斯背包出售

2025/04/23 · Bny

YN025-伍迪砍树不会变海狸

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 二十五.伍迪砍树不会变海狸 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/woodie.lua文件,将inst.components.beaverness:DoDelta(3)替换为inst.components.beaverness:DoDelta(0) 即可让伍迪砍树不会变海狸

2025/04/23 · Bny

YN026-伍迪吃疯肉立即变海狸且随身物品不掉落

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 二十六.伍迪吃疯肉立即变海狸且随身物品不掉落 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/woodie.lua文件, 1.将inst.components.inventory:DropEverything()替换为--inst.components.inventory:DropEverything() 2.在inst.Light:SetColour(245/255,40/255,0/255)的下一行插入以下内容: local function OnEat(inst, food) if food.prefab == "monstermeat" and not inst.components.beaverness:IsBeaver() then if not inst.components.beaverness.doing_transform then inst.components.beaverness:SetPercent(1) end end end inst.components.eater:SetOnEatFn(OnEat) 即可让伍迪吃疯肉立即变海狸,随身物品还保留在身上(只是看不见),等变回伍迪即可使用。不要在伍迪佩戴橙色护身符时变海狸,否则砍的木头都自动被吸走,海狸无法吃到。不要与“小病小灾”一同修改

2025/04/23 · Bny

YN027-图书管理员不再失眠(老太太可以睡帐篷)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 二十七.图书管理员不再失眠(老太太可以睡帐篷) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/wickerbottom.lua文件,将inst:AddTag("insomniac")替换为--inst:AddTag("insomniac") 即可让老太太也可以睡帐篷

2025/04/23 · Bny

YN028-麦斯威尔用魔法书召唤分身不减脑上限

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 二十八.麦斯威尔用魔法书召唤分身不减脑上限 1.用MT管理器打开游戏目录/assets/scripts/prefabs/waxwelljournal.lua文件,将reader.components.sanity:RecalculatePenalty()替换为--reader.components.sanity:RecalculatePenalty() 2.用MT管理器打开游戏目录/assets/scripts/prefabs/shadowwaxwell.lua文件,将下列内容: inst:ListenForEvent("death", ondeath) inst:AddComponent("inventory") inst.components.inventory.dropondeath = false inst:AddComponent("sanityaura") inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY 替换为: --inst:ListenForEvent("death", ondeath) inst:AddComponent("inventory") inst.components.inventory.dropondeath = false --inst:AddComponent("sanityaura") --inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY 即可在麦斯威尔用魔法书召唤分身时不减脑上限

2025/04/23 · Bny

YN029-瓦丝格雷斯可以吃蔬菜

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 二十九.瓦丝格雷斯可以吃蔬菜 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/wathgrithr.lua文件,将inst.components.eater:SetCarnivore(true)替换为--inst.components.eater:SetCarnivore(true) 即可让红发妹瓦丝格雷斯不止可以吃肉,也可以吃蔬菜

2025/04/23 · Bny

YN030-韦伯不被当成怪物

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三十.韦伯不被当成怪物 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/webber.lua文件,将inst:AddTag("monster")替换为--inst:AddTag("monster") 即可让韦伯不被当成怪物,猪人、兔人等中立动物不会主动攻击你

2025/04/23 · Bny

YN031-全部物品无限使用(工具、武器、盔甲、魔杖、护身符、衣服、帽子、照明物品等全部无限使用)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三十一.全部物品无限使用(工具、武器、盔甲、魔杖、护身符、衣服、帽子、照明物品等全部无限使用) 1.用MT管理器打开游戏目录/assets/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.用MT管理器打开游戏目录/assets/scripts/components/finiteuses.lua文件,将self:SetUses(self.current - (num or 1))替换为self:SetUses(self.current - 0) 3.用MT管理器打开游戏目录/assets/DLC0002/scripts/components/fueled.lua文件,将self.consuming = true替换为self.consuming = false 4.用MT管理器打开游戏目录/assets/scripts/components/armor.lua文件,将下列内容: function Armor:SetCondition(amount) self.condition = amount 替换为: function Armor:SetCondition(amount) self.condition = self.maxcondition 即可让全部物品无限使用。其中火堆和石头营火会无限燃烧,直到睡过帐篷或下地洞后熄灭

2025/04/23 · Bny