Overview
WCGASLevelingRulesData is a Data Asset that defines leveling progression systems for the Wonderscape Creations GAS Ally plugin. It allows designers to configure complete leveling experiences without writing any C++ code, making leveling system creation a fully designer-driven workflow. Each ruleset is reusable across multiple actors (e.g., "PlayerLevelingRules", "EnemyLevelingRules", "BossLevelingRules").
Creating a Leveling Rules Data Asset
Using the Wonderscape GAS Ally Menu
- Open the Content Browser
- Right-click in any folder where you want to create the asset
- Navigate to: Wonderscape GAS Ally > Leveling > Leveling Rules Data
- Give your new asset a descriptive name (e.g.,
DA_PlayerLevelingRules, DA_EnemyTypeA_Leveling, DA_BossLeveling)
- Double-click the asset to open it and configure its properties
How Leveling Rules Work
Registration Flow
- Leveling Rules Assignment
- Assign a Leveling Rules Data asset to actors via the WCGASLevelingComponent
- Multiple actors can share the same leveling rules
- Each actor maintains its own progression state (current level, XP, spent points)
- Runtime Initialization
- When an actor spawns with a WCGASLevelingComponent:
- Component loads the assigned Leveling Rules Data
- Validates all configuration (XP curves, stat gains, point awards)
- Initializes actor at Level 1 with default stats
- Applies any Level 1 bonuses or point pools
- Progression Handling
- XP Gain: Call
AwardXP() to add experience points
- Level Up Detection: Component automatically detects when XP threshold is reached
- Automatic Rewards:
- Traditional RPG: Applies stat gains from StatGainsPerLevel or TemplateStatGains
- Point Allocation: Awards points to specified pools
- Souls-like: No automatic rewards (XP used as currency)
- Event Broadcasting: Fires level-up events for UI/gameplay reactions
- XP Curve Resolution
- System determines XP requirements based on CurveType:
- Formula: Calculates procedurally using FormulaType parameters
- DataTable: Looks up XP requirements from XPCurveTable
- CurveAsset: Evaluates XPCurveAsset at current level
- CustomClass: Executes CustomXPFormula blueprint/C++ logic
Configuration Properties
Identity