Project Zomboid

Project Zomboid

开锁。只要。开锁。
Tgraves710x 2023 年 7 月 23 日 下午 8:41
lockpicking profession recipe error fix
the code for the burglar was giving a error not understanding the code because one part was in the incorrect area so i decided to fix it, the patch is as follows
Events.OnGameBoot.Add(initProfessions); require('NPCs/MainCreationMethods'); local BURGLAR_ID = 'burglar'; local function initProfessions() local burglar = ProfessionFactory.getProfession(BURGLAR_ID); burglar:getFreeRecipes():add("Lockpicking"); burglar:getFreeRecipes():add("Create Hairpin"); burglar:getFreeRecipes():add("Break Door Locks"); burglar:getFreeRecipes():add("Break Window Locks"); -- -- burglar:addFreeTrait("nimblefingers"); -- burglar:setDescription(burglar:getDescription() .. " <LINE> " .. getText("UI_trait_nimblefingers")); end
< >
正在显示第 1 - 1 条,共 1 条留言
Tgraves710x 2023 年 7 月 23 日 下午 8:43 
"Events.OnGameBoot.Add(initProfessions);" was at the very bottom and needed to be at the very top of the code which caused and error to occur not understanding the getfreerecipe
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50