This might be useful, lots of work to take advantage but could be very beneficial.
The bit at the end is also good:
Lua Example of How to Properly Modify Existing Vanilla Items With lua Code Instead of Overwriting Them With txt Scripts
This code will increase the durability of the Katana to be equivalent to that of the Crowbar.
This must be in a lua file in media/lua/server or media/lua/shared to work properly.
local scriptItem = ScriptManager.instance:getItem("Base.Katana")
if scriptItem then
scriptItem:DoParam("ConditionLowerChanceOneIn = 70")
scriptItem:DoParam("ConditionMax = 15")
end
https://theindiestone.com/forums/index.php?/topic/53019-details-on-the-improved-modding-tag-system-in-4169/
This might be useful, lots of work to take advantage but could be very beneficial.
The bit at the end is also good:
Lua Example of How to Properly Modify Existing Vanilla Items With lua Code Instead of Overwriting Them With txt Scripts
This must be in a lua file in media/lua/server or media/lua/shared to work properly.
local scriptItem = ScriptManager.instance:getItem("Base.Katana") if scriptItem then scriptItem:DoParam("ConditionLowerChanceOneIn = 70") scriptItem:DoParam("ConditionMax = 15") end