Jump to content

Set rarity of an item?


ryanzec

Recommended Posts

So as I was looking as what I assume are the loot table files (stuff in /scrips/) of other mods, it did not seem like there was a way to define the rarity of the item though I would imagine there would be a way to do that (I mean I have seen dozens of hammers in my 20-25 hours of playing and only less than a handful of axes). Is there a way to set the rarity of an item?

Link to comment
Share on other sites

  • 2 weeks later...

If you look at a file called SuburbsDistributions.lua here:

 

G:\Games\SteamApps\common\ProjectZomboid\media\lua\server\Items

 

You'll find the rarity of all items and can change what you want. If you don't wanna fuck with game content, you can make a mod copying the file structure of any mod and just put a copy of SuburbsDistributions.lua in there, then you can activate/deactivate it from the mod menu.

 

Keep in mind that there is a limit set on minimum rarity, I believe it is 0.01, meaning that if you try to set something to like 0.005 it'll be bumped up to 0.01.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...