Getting Started
To get started, you can follow these steps and dive deeper into each topic.
It will give you a solid setup that can scale with your project.
If you prefer, you can also follow the Setup Video Guide.
Create a StatsComponent
- Create a StatsComponent. #
- Call LoadDefaultValues() on the StatsComponent. #
- Add the StatsComponent to your Actor.
Create Stats
Create your Stats from the Complex Stat and Progress Stat classes and fill their infos. #
Value Sets Manager
When creating a Complex Stat, you'll also need to provide a Value Sets Manager. Either use the one provided by default (VSM_Default), or create your own. #
Create the Default Values
- Create a Data Table from any SDV structure. #
- Set it as the Default Values Table in your Project Settings (Edit->Project Settings->Game->Default Values Settings). #
- Fill the Data Table with your Stats and Values.
- Use the RowName in the StatsComponent's LoadDefaultValues() function to load a specific row. #
Using SDV_Advanced
If you're using SDV_Advanced with Value Progressions, also create a Level Stat with a Rounding Method and use it in the LoadDefaultValues() function of your StatsComponent. #
Display your values
Create a widget and add it to the viewport. #