[Mod] SkillsFramework [0.4] [skillsframework]
SkillsFramework gives modders an API for registering and using skills in Minetest.
SkillsFramework provides an API for creating and managing skills. Modders define skills by providing some basic information like experience cost per level or the max/min level that is attainable. Then collections of unique skill data, called a skillset, can be created at anytime by a modder using an id and a list of skill names. Modders can then manipulate the skillset's skill using a handful of functions rewarding actions with experience.
SkillsFramework is flexible enough that skillsets can be used for individuals, like the player, or groups, like all level 1 skeletons. Modders can also easily use multiple skills for an action or make skills dependent on the successes of other skills.
Players can chat "/skills" to get a list of skill names. And "/skills <skillname> will list that skills level, experience, and goal for next level. Players can also chat "/skills @gui" to open a Formspec.



Credit:
I mooched some general ideas off of BrandonReese's AdventureTest.
Code License: Public Domain
Mod Version: 0.4
Minetest Version(s): Minetest 0.4.12
Git repository: https://github.com/DomtronVox/minetest-SkillsFramework
Download: https://github.com/DomtronVox/minetest- ... ve/0.4.zip
Dependencies: None.
Known Issues
Feedback welcome and requested. Post bugs here or on GitHub issues.
ToDo
See the bottom of the readme for an up to date TODO list.
Example skills
Attached to this post are zip archives of example skill mods for each version of Skillsframework. You will probebly want the most recent version. Install it along side SkillFramework to see working examples. Code is thoroughly commented. Again make sure you download the correct one for the version of SkillFramework your using.
SkillsFramework provides an API for creating and managing skills. Modders define skills by providing some basic information like experience cost per level or the max/min level that is attainable. Then collections of unique skill data, called a skillset, can be created at anytime by a modder using an id and a list of skill names. Modders can then manipulate the skillset's skill using a handful of functions rewarding actions with experience.
SkillsFramework is flexible enough that skillsets can be used for individuals, like the player, or groups, like all level 1 skeletons. Modders can also easily use multiple skills for an action or make skills dependent on the successes of other skills.
Players can chat "/skills" to get a list of skill names. And "/skills <skillname> will list that skills level, experience, and goal for next level. Players can also chat "/skills @gui" to open a Formspec.



Credit:
I mooched some general ideas off of BrandonReese's AdventureTest.
Code License: Public Domain
Mod Version: 0.4
Minetest Version(s): Minetest 0.4.12
Git repository: https://github.com/DomtronVox/minetest-SkillsFramework
Download: https://github.com/DomtronVox/minetest- ... ve/0.4.zip
Dependencies: None.
Known Issues
- Formspec shows the same skills on each page.
- Sometimes formspec does not open when the chat command is called.
- Only rudimentary testing has been done. Other bugs may exist. Heavy usage and server testing has not been done.
Feedback welcome and requested. Post bugs here or on GitHub issues.
ToDo
See the bottom of the readme for an up to date TODO list.
Example skills
Attached to this post are zip archives of example skill mods for each version of Skillsframework. You will probebly want the most recent version. Install it along side SkillFramework to see working examples. Code is thoroughly commented. Again make sure you download the correct one for the version of SkillFramework your using.