Jump to content

Adding traits for one occupation


Body Builder

Recommended Posts

Hi friends!

I'd like to add two or three traits for one occupation but I am not sure about the exact process
 
 
I expect it to be something like the following?:

1) to find the file "MainCreationMethods.lua"

2) to find (for example) the line:

local securityguard = ProfessionFactory.addProfession("securityguard", getText("UI_prof_securityguard"), "Prof_SecurityGuard");
securityguard:addFreeTrait("NightOwl");

3) and to add two occupation traits:

securityguard:addFreeTrait("Axeman");
securityguard:addFreeTrait("Marksman");

4) Final result is:

local securityguard = ProfessionFactory.addProfession("securityguard", getText("UI_prof_securityguard"), "Prof_SecurityGuard");
securityguard:addFreeTrait("NightOwl");
securityguard:addFreeTrait("Axeman");
securityguard:addFreeTrait("Marksman");
 

Thanks in advance for any help :)
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...