MRB Posted November 1, 2013 Share Posted November 1, 2013 I also want to add more traits to the current list but can't seem to find the file relating to it? Is it straight forward enough to do? I've searched the forums but can't seem to find any reference? Link to comment Share on other sites More sharing options...
RoboMat Posted November 2, 2013 Share Posted November 2, 2013 Check out my lockpicking mod: http://theindiestone.com/forums/index.php/topic/33-lockpicking-mod-v070/ It creates a custom profession with new traits. Link to comment Share on other sites More sharing options...
RobertJohnson Posted November 2, 2013 Share Posted November 2, 2013 The existing traits/professions are in lua/NPCs/MainCreationMethod.lua Jeb 1 Link to comment Share on other sites More sharing options...
Jeb Posted November 2, 2013 Share Posted November 2, 2013 The existing traits/professions are in lua/NPCs/MainCreationMethod.lua How are these traits defined? In the file you've directed us to all I see is the trait being named with a description, but not the actual behavior of the trait—that is, how it will affect the gameplay. Check out my lockpicking mod:http://theindiestone.com/forums/index.php/topic/33-lockpicking-mod-v070/It creates a custom profession with new traits. The same question goes for you. I'm looking at your custom profession, but again, your traits seem to have nothing but a title and description. Are there any changes to how the character and said skills are affected? Link to comment Share on other sites More sharing options...
EnigmaGrey Posted November 2, 2013 Share Posted November 2, 2013 Trait behavior has to be manually added via Lua functions; otherwise I'm pretty sure it's still built in to the Java side of the code. Jeb 1 Link to comment Share on other sites More sharing options...
RoboMat Posted November 2, 2013 Share Posted November 2, 2013 EG is right ... as always. Jeb 1 Link to comment Share on other sites More sharing options...
Jeb Posted November 2, 2013 Share Posted November 2, 2013 Eh. To search. Thanks guys and / or gals. Link to comment Share on other sites More sharing options...
RoboMat Posted November 2, 2013 Share Posted November 2, 2013 if player:HasTrait("kj_nimblefingers") then chance = 14 - modData.lockLevel; else chance = 12 - modData.lockLevel; end This is how I do it. Jeb 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