怎么让手杖有砍树、凿石、锤墙、挖草的功能啊
rt版本应该是14版的看到有个(砍树、凿石、锤墙、挖草、取暖、补脑、瞬移、10倍攻击力、2倍速度、照明)因为不想要其他功能只想要砍树、凿石、锤墙、挖草所以
在anim:PlayAnimation("idle")的下一行插入以下内容:
inst:AddComponent("tool")
inst.components.tool:SetAction(ACTIONS.CHOP, 15)
inst.components.tool:SetAction(ACTIONS.MINE, 15)
inst.components.tool:SetAction(ACTIONS.HAMMER,15)
inst.components.tool:SetAction(ACTIONS.DIG)
其他的没加不知道其他的还需要怎么做啊 king2small 发表于 2013-9-5 21:39 static/image/common/back.gif
看到有个(砍树、凿石、锤墙、挖草、取暖、补脑、瞬移、10倍攻击力、2倍速度、照明)因为不想要其他功能只 ...
十三.瑞士手杖(砍树、凿石、锤墙、挖草、取暖、补脑、瞬移、10倍攻击力、2倍速度、照明)(18版及以后游戏使用)
用记事本打开游戏目录\data\scripts\prefabs\cane.lua文件,
1.在local function onequip(inst, owner)的下一行插入inst.Light:Enable(true)
2.在local function onunequip(inst, owner)的下一行插入inst.Light:Enable(false)
3.在anim:PlayAnimation("idle")的下一行插入以下内容:
inst:AddComponent("tool")
inst.components.tool:SetAction(ACTIONS.CHOP, 15)
inst.components.tool:SetAction(ACTIONS.MINE, 15)
inst.components.tool:SetAction(ACTIONS.HAMMER,15)
inst.components.tool:SetAction(ACTIONS.DIG)
inst:AddComponent("heater")
inst.components.heater.equippedheat = 100
inst:AddComponent("dapperness")
inst.components.dapperness.dapperness = TUNING.DAPPERNESS_HUGE
inst:AddComponent("blinkstaff")
local light = inst.entity:AddLight()
light:SetFalloff(0.4)
light:SetIntensity(.7)
light:SetRadius(2.5)
light:SetColour(180/255, 195/255, 150/255)
light:Enable(true)
4.将inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE)替换为inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE*10)
5.将inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT替换为inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT*2
即可让手杖拥有瑞士军刀般的多功能。装备手杖时,在空地上点鼠标右键可瞬移,借此可跳过较窄沟壑,少走冤枉路。这是将我和lvyan2015一同做的万用斧mod、神奇雨伞mod的部分功能组合在一起,以方便大家
by http://bbs.3dmgame.com/thread-3859071-1-1.html易宁:饥荒游戏实用修改技巧
如果以上还不会那我真为LZ的智商捉急啊:'( 本帖最后由 king2small 于 2013-9-6 13:39 编辑
渊小乖 发表于 2013-9-6 11:58 static/image/common/back.gif
如果以上还不会那我真为LZ的智商捉急啊
你没明白我的意思我只需要砍树、凿石、锤墙、挖草这4个功能
取暖、补脑、瞬移、10倍攻击力、2倍速度、照明这些功能我不需要
inst:AddComponent("heater")
inst.components.heater.equippedheat = 100
这个是加热吧
inst:AddComponent("dapperness")
inst.components.dapperness.dapperness = TUNING.DAPPERNESS_HUGE
这个是补脑还是什么?
inst:AddComponent("blinkstaff")
local light = inst.entity:AddLight()
light:SetFalloff(0.4)
light:SetIntensity(.7)
light:SetRadius(2.5)
light:SetColour(180/255, 195/255, 150/255)
light:Enable(true)
这个是发光?
将inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE)替换为inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE*10)
这个是伤害
将inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT替换为inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT*2
这是2倍速度
inst:AddComponent("tool")
inst.components.tool:SetAction(ACTIONS.CHOP, 15)
inst.components.tool:SetAction(ACTIONS.MINE, 15)
inst.components.tool:SetAction(ACTIONS.HAMMER,15)
inst.components.tool:SetAction(ACTIONS.DIG)
这几个就是砍树、凿石、锤墙、挖草了,
但是只加了这几个又没有作用,我是想问怎么样才能只要“砍树、凿石、锤墙、挖草”这4个功能集合在一个工具上,而不需要其他的功能
还有我是14版的是不是14版的不支持这个脚本 ....
你看到后面写的了么 18版以后使用你这不是坑爹么 king2small 发表于 2013-9-6 13:34 static/image/common/back.gif
你没明白我的意思我只需要砍树、凿石、锤墙、挖草这4个功能
取暖、补脑、瞬移、10倍攻击力、2倍速度、照明 ...
在anim:PlayAnimation("idle")的下一行插入以下内容:
inst:AddComponent("tool")
inst.components.tool:SetAction(ACTIONS.CHOP, 15)
inst.components.tool:SetAction(ACTIONS.MINE, 15)
inst.components.tool:SetAction(ACTIONS.HAMMER,15)
inst.components.tool:SetAction(ACTIONS.DIG)
即可
肯定是你插错了不可能不行的 渊小乖 发表于 2013-9-6 14:44 static/image/common/back.gif
肯定是你插错了不可能不行的
真的没反应
cane.lua
就只有一句anim:PlayAnimation("idle")
上面写的18版及以后使用是不是这个原因
我是14版的
这个要怎么升级啊,升级后会不会存档就没了啊
只有挖草功能实现了,
砍树、凿石、锤墙没效果 14版用不了去下18版19版的
页:
[1]