『06-16』【问题求助】狗牙陷阱怎么改无限?
饥荒mod吧
全部回复
仅看楼主
level 5
cycle_david 楼主
我记得3DM的万宁,曾经发表过修改技巧!
可是现在整个网站都找不到18条以后的技巧!
谁有存档?提高使用次数就免了!我懂!
2013年06月16日 01点06分 1
level 9
狗牙陷阱也就改3个吧。
去掉耐久
可以叠加
自动重置
楼主的无限是什么意思
2013年06月16日 03点06分 2
无限使用!
2013年06月16日 04点06分
- -!下面
2013年06月16日 16点06分
求去掉耐久的代码
2013年07月08日 02点07分
level 9
inst:AddComponent("finiteuses")
inst.components.finiteuses:SetMaxUses(TUNING.TRAP_TEETH_USES)
inst.components.finiteuses:SetUses(TUNING.TRAP_TEETH_USES)
inst.components.finiteuses:SetOnFinished( onfinished_normal )
全部加--就即可
trap_teeth.lua
2013年06月16日 16点06分 3
帖子为毛会被删?
2013年06月17日 01点06分
回复 MIAIFIR :呵呵!想不到要改两个文件,原文件和3秒自动回复那个也要搞了!总算搞定了!谢谢!学习了!
2013年06月17日 12点06分
回复 cycle_david :[真棒]
2013年06月17日 13点06分
在那个文件里?
2013年06月26日 04点06分
level 1
local function OnExplode(inst, target)
inst.AnimState:PlayAnimation("trap")
if target then
inst.SoundEmitter:PlaySound("dontstarve/common/trap_teeth_trigger")
target.components.combat:GetAttacked(inst, TUNING.TRAP_TEETH_DAMAGE)
end
if inst.components.finiteuses then
--ByLaoluFix 2018-05-13
--修改:狗牙陷阱无限耐久
--inst.components.finiteuses:Use(1)
inst:RemoveComponent("finiteuses")
--FixEnd
end
--ByLaoluFix 2018-05-13
--添加:3秒后狗牙陷阱自动重置
if inst.components.mine then
inst:DoTaskInTime(3, function() inst.components.mine:Reset() end )
end
--FixEnd
end
2018年05月13日 18点05分 6
将上述内容,更新至:Don't Starve Together Dedicated Server-239925\data\scripts\prefabs\trap_teeth.lua 文件中即可
2018年05月13日 18点05分
1