Jump to content

[SOLVED] How do we define custom perks (skills ingame)?


PseudonymousEd

Recommended Posts

From the 41.51 release notes:  

Quote

- Allow mods to define custom perks (Skills ingame).
 Each file called media/perks.txt that exists is loaded before scripts and Lua files are loaded.
 New perks and perk categories can be defined.
 This required removing the Perks enum.  Now Perks is a class containing static instances of Perk.
 So Perks.Strength is now the Strength perk itself instead of an enum value.
 The Lua Perks table contains the predefined perks and also any custom perks.
 Fortunately, these changes didn't require any changes to Lua files. 

 

Is there an example of how we define custom perks (skills) and use them?

Edited by PseudonymousEd
Link to comment
Share on other sites

  • PseudonymousEd changed the title to [SOLVED] How do we define custom perks (skills ingame)?

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