Project Zomboid

Project Zomboid

Get a job! (Professions & Traits)
leon2356  [developer] 27 Jun, 2022 @ 5:20pm
How to tweak occupation stats, items, and traits.
In order to change profession stats and items you would need to go to the mod folder on your computer and manually change the stats.

It should be located here, "C:\Program Files (x86)\Steam\steamapps\workshop\content\108600/2040632854"

Then open, "Contents\mods\leonProfessions\media\lua\shared"

You should find a file called, "leonProfessions0.lua" This is the data for all the professions I added to the game, Their stats and items. Open it with Notepad (I use notepad++ but normal notepad should work).

Here is a short example on how to add skills or items and you should be able to work it out for the rest.

This is the template for the Office Worker,
ProfessionFramework.addProfession('OfficeWorker', {
name = "Office Worker",
description = "Another day. Another doller.",
icon = "",
cost = 2,
xp = {
[Perks.Fitness] = 2,
},


inventory = {
["Base.WristWatch_Left_DigitalBlack"] = 1,
["Base.Cordlessphone"] = 1,
["Base.Umbrella"] = 1,
["Base.Pen"] = 1,
["Base.CheeseSandwich"] = 1,
["Base.Newspaper"] = 1,
["Base.Briefcase"] = 1,
},
traits = {"NightOwl", "NeedsLessSleep2", "Organized2"},
})

If you want to add more skills you would change the xp section to something like this,

ProfessionFramework.addProfession('OfficeWorker', {
name = "Office Worker",
description = "Another day. Another doller.",
icon = "",
cost = 2,
xp = {
[Perks.Fitness] = 2,
[Perks.Strength] = 2,
[Perks.Aiming] = 4
},

To add new items you need to find the base name of the item. These can be found here: https://pzwiki.net/wiki/Items

inventory = {
["Base.WristWatch_Left_DigitalBlack"] = 1,
["Base.Cordlessphone"] = 1,
["Base.Umbrella"] = 1,
["Base.Pen"] = 1,
["Base.CheeseSandwich"] = 1,
["Base.Newspaper"] = 1,
["Base.Briefcase"] = 1,
["Base.Revolver_Short"] = 1,
["Base.Bullets38Box"] = 2,
},

Here is a list of all the Vanilla traits and an example for how they need to be formatted;
A list of traits I have added are in, "LeonTraits1.lua"
SpeedDemon2
SundayDriver2
BaseballPlayer2
Brave2
Cowardly2
Clumsy2
Graceful2
ShortSighted2
EagleEyed2
HardOfHearing2
Deaf2
KeenHearing2
HeartyAppitite2
LightEater2
ThickSkinned2
Thinskinned2
Resilient2
ProneToIllness2
Lucky2
Unlucky2
Dextrous2
AllThumbs2
FastHealer2
SlowHealer2
FastLearner2
SlowLearner2
FastReader2
SlowReader2
Illiterate2
NeedsLessSleep2
NeedsMoreSleep2
Inconspicuous2
Conspicuous2
Organized2
Disorganized2
LowThirst2
HighThirst2
WeakStomach2
IronGut2
Outdoorsman2
AdrenalineJunkie2
NightVision2
Hypercondriac2
Agoraphobic2
Claustophobic2
Hemophobic2
Insomniac2
Pacifist2
Smoker2
Asthmatic2
Herbalist2
Handy2
Jogger2

traits = {"NightOwl", "NeedsLessSleep2", "Organized2"},
Currently, Sewing is missing but other then that, all the other traits will work.

Here is a list of all the Skills,
None
Agility
Cooking
Melee
Crafting
Fitness
Strength
Blunt
Axe
Sprinting
Lightfoot
Nimble
Sneak
Woodwork
Aiming
Reloading
Farming
Survivalist
Fishing
Trapping
Passiv
Firearm
PlantScavenging
BluntParent
BladeParent
BluntGuard
BladeGuard
BluntMaintenance
BladeMaintenance
Doctor
Electricity
Blacksmith
MetalWelding
Melting
Mechanics
MAX

So if you wanted to add foraging to an occupation you would add,
[Perk.PlantScavenging] = 4,


If you have any problems make sure you remembered to place commas in the right places.
Also don't forget to backup the file after you make any changes. If i ever add to this mod later, it will update and override any changes you make.

This may look a bit intimidating but trust me you will get the hand of it fast. Enjoy!