Jump to content

Adding new skills


mpzambee

Recommended Posts

Hi.  I'm trying to add a new skill, as I had an idea for a mod that added, among other things, flint knapping.  However, I am unable to figure out how to do so.  I looked up the javadocs for perkfactory, and I'm still unable to get it to work.

 

I can't quite figure out what I'm doing wrong, aside from the fact that I don't know how exactly to use the function, wherein lies the problem.  This is the code I am using:

AddPerk(PerkFactory.getPerkFromName("None"),"Knapping", "Knapping 1", "Knapping 2", "Knapping 3", "Knapping 4", "Knapping 5", PerkFactory.getPerkFromName("Crafting"), 10,20,30,40,50, false);

Any help that could be given would be greatly appreciated.  I can do other things, such as add professions and traits, but I can't get this to work, and I've spent hours trying different parameters and other versions of the function.

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...