1.魔杖无限使用:用记事本打开游戏目录\\data\\scripts\\prefabs\\staff.lua文件,将下列内容:
inst:AddComponent("finiteuses") inst.components.finiteuses:SetOnFinished( onfinished )
inst.components.finiteuses:SetMaxUses(TUNING.FIRESTAFF_USES) inst.components.finiteuses:SetUses(TUNING.FIRESTAFF_USES)
inst.components.finiteuses:SetMaxUses(TUNING.ICESTAFF_USES) inst.components.finiteuses:SetUses(TUNING.ICESTAFF_USES)
inst.components.finiteuses:SetMaxUses(TUNING.TELESTAFF_USES) inst.components.finiteuses:SetUses(TUNING.TELESTAFF_USES)
inst.components.finiteuses:SetMaxUses(TUNING.YELLOWSTAFF_USES) inst.components.finiteuses:SetUses(TUNING.YELLOWSTAFF_USES)
修改为以下内容(即在每句前面加--):
--inst:AddComponent("finiteuses")
--inst.components.finiteuses:SetOnFinished( onfinished )
--inst.components.finiteuses:SetMaxUses(TUNING.FIRESTAFF_USES) --inst.components.finiteuses:SetUses(TUNING.FIRESTAFF_USES)
--inst.components.finiteuses:SetMaxUses(TUNING.ICESTAFF_USES) --inst
.components.finiteuses:SetUses(TUNING.ICESTAFF_USES)
--inst.components.finiteuses:SetMaxUses(TUNING.TELESTAFF_USES) --inst.components.finiteuses:SetUses(TUNING.TELESTAFF_USES)
--inst.components.finiteuses:SetMaxUses(TUNING.YELLOWSTAFF_USES) --inst.components.finiteuses:SetUses(TUNING.YELLOWSTAFF_USES)
2.护身符无限使用:用记事本打开游戏目录\\data\\scripts\\prefabs\\amulet.lua文件,将下列内容:
inst.components.finiteuses:Use(1)
amulet.components.finiteuses:Use(1)
inst:AddComponent("finiteuses") inst.components.finiteuses:SetOnFinished( onfinished )
inst.components.finiteuses:SetMaxUses(TUNING.REDAMULET_USES) inst.components.finiteuses:SetUses(TUNING.REDAMULET_USES)
inst:AddComponent("finiteuses") inst.components.finiteuses:SetOnFinished( onfinished )
inst.components.finiteuses:SetMaxUses(TUNING.ORANGEAMULET_USES) inst.components.finiteuses:SetUses(TUNING.ORANGEAMULET_USES)
修改为以下内容(即在每句前面加--):
--inst.components.finiteuses:Use(1)
--amulet.components.finiteuses:Use(1)
--inst:AddComponent("finiteuses")
--inst.components.finiteuses:SetOnFinished( onfinished )
--inst.components.finiteuses:SetMaxUses(TUNING.REDAMULET_USES) --inst.components.finiteuses:SetUses(TUNING.REDAMULET_USES)
--inst:AddComponent("finiteuses")
--inst.components.finiteuses:SetOnFinished( onfinished )
--inst.components.finiteuses:SetMaxUses(TUNING.ORANGEAMULET_USES) --inst.components.finiteuses:SetUses(TUNING.ORANGEAMULET_USES)
将下列内容:
inst.components.fueled:DoDelta(-(inst.components.fueled.maxfuel * 0.03))
inst.components.fueled:StartConsuming()
inst.components.fueled:StopConsuming()
inst.components.fueled:StartConsuming()
inst.components.fueled:StopConsuming()
inst:AddComponent("fueled")
inst.components.fueled.fueltype = "MAGIC"
inst.components.fueled:InitializeFuelLevel(TUNING.BLUEAMULET_FUEL) inst.components.fueled:SetDepletedFn(onfinished)
inst:AddComponent("fueled")
inst.components.fueled.fueltype = "MAGIC"
inst.components.fueled:InitializeFuelLevel(TUNING.PURPLEAMULET_FUEL) inst.components.fueled:SetDepletedFn(onfinished)
修改为以下内容(即在每句前面加--):
--inst.components.fueled:DoDelta(-(inst.components.fueled.maxfuel * 0.03))
--inst.components.fueled:StartConsuming()
--inst.components.fueled:StopConsuming()
--inst.components.fueled:StartConsuming()
--inst.components.fueled:StopConsuming()
--inst:AddComponent("fueled")
--inst.components.fueled.fueltype = "MAGIC" --inst.components.fueled:InitializeFuelLevel(TUNING.BLUEAM
ULET_FUEL)
--inst.components.fueled:SetDepletedFn(onfinished)
--inst:AddComponent("fueled")
--inst.components.fueled.fueltype = "MAGIC"
--inst.components.fueled:InitializeFuelLevel(TUNING.PURPLEAMULET_FUEL) --inst.components.fueled:SetDepletedFn(onfinished)
即可让魔杖、护身符无限使用
三十七.橙色护身符吸取物品加速、范围加大,不吸陷阱
用记事本打开游戏目录\\data\\scripts\\prefabs\\amulet.lua文件,
1.吸取物品加速:将inst.task = inst:DoPeriodicTask(TUNING.ORANGEAMULET_ICD, function() pickup(inst, owner) end)替换为以下内容:
inst.task = inst:DoPeriodicTask(TUNING.ORANGEAMULET_ICD*.1, function() pickup(inst, owner) end)
即可加快吸取物品速度10倍
2.吸取物品范围加大:将
local ents = TheSim:FindEntities(pt.x, pt.y, pt.z, TUNING.ORANGEAMULET_RANGE*5)
即可让吸取范围加大5倍
3.不吸陷阱:将v.components.inventoryitem:IsHeld() then替换为以下内容:
v.components.inventoryitem:IsHeld() and not v:HasTag("trap") then
即可让橙色护身符不吸陷阱,包括牙齿陷阱、捕鸟陷阱、兔陷阱
三十八.牙齿陷阱自动重置(1秒后重置)
用记事本打开游戏目录\\data\\scripts\\prefabs\\trap_teeth.luainst.components.finiteuses:Use(1)的下一行插入下列内容: end
if inst.components.mine then
inst:DoTaskInTime(1, function() inst.components.mine:Reset() end )
即可让牙齿陷阱在触发后1秒钟自动重置。修改其中的1为任意数字,即可设置几秒钟自动重置。这不是我研究的,是别人MOD的成果,只是因为更新游戏后原MOD不能用,才把修改方法公布出来,以方便大家
三十九.芦苇吹出催眠曲(在携带的芦苇上按鼠标右键,可催眠动物)
用记事本打开游戏目录\\data\\scripts\\prefabs\\cutreeds.luainst:AddComponent("inventoryitem")的下一行插入以下内容:
inst:AddTag("flute")
local function HearPanFlute(inst, musician, instrument) if inst.components.sleeper then
文件,在文件,在
local ents = TheSim:FindEntities(pt.x, pt.y, pt.z,
TUNING.ORANGEAMULET_RANGE)替换为以下内容: