PseudonymousEd Posted July 28, 2021 Share Posted July 28, 2021 (edited) 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 July 31, 2021 by PseudonymousEd Link to comment Share on other sites More sharing options...
nasKo Posted July 29, 2021 Share Posted July 29, 2021 Here's an example mod. MyPerkMod.zip PseudonymousEd 1 Link to comment Share on other sites More sharing options...
PseudonymousEd Posted July 31, 2021 Author Share Posted July 31, 2021 Thanks! My Piano mod now uses the new system for build 41.51+! 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