Project Zomboid

Project Zomboid

[B42] Lesley's Cookable Containers [Discontinued]
This topic has been locked
star 29 Dec, 2024 @ 11:23pm
Consider better way to patch the game, pls
Using Lua files
local SM = ScriptManager.instance local item = SM:getItem("Base.Saucepan") if item then item:DoParam("IsCookable = true") item:getTags():add("Cookable") end
< >
Showing 1-6 of 6 comments
star 29 Dec, 2024 @ 11:26pm 
It makes that the mod won't break anything when Indie Stone fires an update whatever they fix.
Last edited by star; 29 Dec, 2024 @ 11:26pm
Miss Pauling  [developer] 1 Jan @ 8:54pm 
Thanks! I am still not all too familiar with lua tho I am working on it. I don't have a ♥♥♥♥ ton of motivation to work on this mod at the moment but I will patch it very soon, I am also still looking to make more pans and trays into cookable water containers so if I find the time and energy I'll work on the mod anyway and I'll consider using lua files.
star 2 Jan @ 1:37am 
The script can be designed with all ids in a separate table, so adding new names will be as easy as pie. ;)
local ALL_POTS = { "Base.Saucepan", "Base.BucketEmpty", "Base.ClayMug", } local SM = ScriptManager.instance for _,id in pairs(ALL_POTS) do local item = SM:getItem(id) if item then item:DoParam("IsCookable = true") item:getTags():add("Cookable") end end
Last edited by star; 2 Jan @ 1:44am
star 2 Jan @ 1:43am 
The good news is that you can include ids from other mods in this list without any problems.
Miss Pauling  [developer] 9 Jan @ 7:33am 
Originally posted by star:
The good news is that you can include ids from other mods in this list without any problems.
What would be the file structure for this? Just media/lua/shared?
star 9 Jan @ 9:48am 
Yes.
< >
Showing 1-6 of 6 comments
Per page: 1530 50