游戏狂人
 
- 贡献度
- 223
- 金元
- 4639
- 积分
- 1366
- 精华
- 1
- 注册时间
- 2013-7-27
|
king2small 发表于 2013-9-5 21:39 
看到有个(砍树、凿石、锤墙、挖草、取暖、补脑、瞬移、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 layAnimation("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.blacksheepgame.com/thread-3859071-1-1.html易宁:饥荒游戏实用修改技巧
|
|