Jump to content

Shadowlarax

Member
  • Content Count

    9
  • Joined

  • Last visited

About Shadowlarax

  • Rank
    Freshly Bitten
  1. Welp thanks for the massive help, I'll sit down and have a proper play when I have time. and will dig up the mod utilities thing
  2. I'll be honest and say most of that code went over my head (I'm a LUA novice (if that) and as far as I can tell its also calling code from the two requirement scripts) I'll have a play and see if I can get it to work for what I need though thanks.
  3. So I recently made a mod that simply adds almost everything to the loot table of zombies at a 0.1 rate table.insert(SuburbsDistributions["all"]["inventorymale"].items, "Base.Spiffo");table.insert(SuburbsDistributions["all"]["inventorymale"].items, 0.1); table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, "Base.Spiffo");table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, 0.1); etc. However because of the sheer amount of items added to the table I pretty much always get something from zombies, can I limit the amount of drops, is it as simple as lowering the drop rate some more or am I asking something that cant really be done yet?
  4. Thanks a heap for that, the issue was my file pathing it seems. doing a quick muck around test now but most like you've solved it Edit: Yep it was the file path, you're a legend Svarog. Thanks a heap.
  5. Hi I was wondering how to add items to loot tables, trying to just update zombie drops but I'm a coding novice. Looked at some other peoples code but it makes no sense to me without a reference. Thank's for your time. Turn's out I should search harder, found it a couple of threads down. for anyone who wants to know its located in SuburbsDistribution.lua is located in Project Zomboid\media\lua\server\Items Edit 2: alright I've got this now but I'm not seeing any drops either I'm misunderstanding the loot system a bit. or have something wrong anyone able to shed some light on this? require 'Items/SuburbsDistributions'table.insert(SuburbsDistributions["all"]["inventorymale"].items, "Base.Lighter");table.insert(SuburbsDistributions["all"]["inventorymale"].items, 100); table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, "Base.Lighter");table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, 100);
×
×
  • Create New...