Skill Level Manager #
The Skill Level Manager manages player skills and levels, tracking key statistics and providing a framework for XP and level progression.
Main Functions #
The Skill Level Manager includes the following functions:
- Define available skills
- Track statistics:
- Current level
- Current XP
- Current maximum XP in level
- Total accumulative XP
- Progress percentage
- Awarded Skill Points
- Maximum achievable level
- XP Growth factor
- Whether the maximum level has been reached
- Add XP to a specific skill
- Calculate required XP for the next level
- UI functionality for XP gains
XP Gains #
You can set up XP gains for specific actions. Call the Add XP Event on the Skill and Level Manager, providing the skill and amount of XP. Determine if it should count towards cumulative XP.
Example #
Crafting items in a smelter:
- Copper: 5 XP
- Iron: 7.5 XP
- Steel: 10 XP
Note: Dropping an item from your inventory will not grant new XP.
Data Table Driven XP Gain #
Inventory items can have XP and level information assigned:
- Gain XP for picking up items (e.g., foraging)
- Gain XP for crafting items
- Set level requirements for using items
Level Requirements #
Assign level requirements for actions like equipping items. For instance, a sword may require character level 2 to be equipped.
Level Calculation #
An algorithm determines the XP required for the next level. An Excel sheet is included to visualize XP flow per level, helping you optimize settings.