Wveth Posted April 15, 2015 Share Posted April 15, 2015 I'm looking to fool around in the game a bit, and it's a simple thing to give myself all the positive traits. I'm wondering though, how would I go about getting all the profession-specific traits as well? I like to have a God Mode game running parallel to my REAL games, so I can take out my frustrations when the REAL game kicks my ass to the curb. Thanks UnmotivatedZombie 1 Link to comment Share on other sites More sharing options...
Zheo Posted April 16, 2015 Share Posted April 16, 2015 To get all the Traits - just use the AddFreeTraits function on your new profession.you just need to find the traits by searching through the .lua-data from PZ via notepad++ for example. Try keywords for your search like "owl" or "night_owl" (police officer trait i think) or just "strength" Wveth 1 Link to comment Share on other sites More sharing options...
Wveth Posted April 16, 2015 Author Share Posted April 16, 2015 Do you know specifically which files to look in? Thank you for your help! Link to comment Share on other sites More sharing options...
Wveth Posted April 16, 2015 Author Share Posted April 16, 2015 Bump. I'm still having trouble finding them >.< Link to comment Share on other sites More sharing options...
Zheo Posted April 16, 2015 Share Posted April 16, 2015 Try this folder:GAMEDIR\Steam\SteamApps\common\ProjectZomboid\media\lua\shared\NPCs\MainCreationMethods.lua There you should find some traits like:securityguard:addFreeTrait("NightOwl");orveteran:addFreeTrait("Desensitized"); Wveth 1 Link to comment Share on other sites More sharing options...
Wveth Posted April 16, 2015 Author Share Posted April 16, 2015 Thank you again but... I tried this: self.freeTraits = ("NightOwl"); Didn't work. Suggestions? Link to comment Share on other sites More sharing options...
Zheo Posted April 16, 2015 Share Posted April 16, 2015 I dont know if its necessary but i think you have to include the correct classes first:require('NPCs/MainCreationMethods');require('NPCs/ProfessionClothing');After it you create a function wich you can call in a ingameEvent like this:local function initProfessions() local var = ProfessionFactory.addProfession("newprofession", "ProfessionName", "Profession_PIC", 2); newprofession:addFreeTrait("NightOwl"); newprofession:addFreeTrait("Desensitized"); newprofession:setDescription("Night Owl<LINE>Desensitized");endEvents.OnGameBoot.Add(initProfessions); Wveth 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now