代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。
原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html
1
2一五五.全人物可制造伍迪的斧子(8下砍倒1棵树,普通斧子15下)
3
4 1.用MT管理器打开游戏目录/assets/DLC0002/scripts/recipes.lua文件,在Recipe("razor", {Ingredient("twigs", 2), Ingredient("flint", 2)}, RECIPETABS.TOOLS, TECH.SCIENCE_ONE)的下一行插入Recipe("Lucy", {Ingredient("twigs", 4), Ingredient("goldnugget", 4)}, RECIPETABS.TOOLS, TECH.SCIENCE_ONE)
5
6
7 2.用MT管理器打开游戏目录/assets/scripts/prefabs/lucy.lua文件,将下列内容:
8
9 inst:AddComponent("sentientaxe")
10
11 inst:AddComponent("characterspecific")
12 inst.components.characterspecific:SetOwner("woodie")
13
14 替换为:
15
16 --inst:AddComponent("sentientaxe")
17
18 --inst:AddComponent("characterspecific")
19 --inst.components.characterspecific:SetOwner("woodie")
20
21 即可在工具选项(画着斧子和镐)下,用4个树杈、4个黄金制造伍迪的斧子