Overview
WCGASHeritageValidationRules is a Data Asset that defines global rules for race-class interactions in the Wonderscape Creations GAS Ally plugin. It allows designers to configure which races can take which classes, set maximum race limits for hybrid characters, and define how racial rewards combine—all without writing any C++ code. The asset is loaded at game startup and cached by the Heritage Subsystem for fast runtime validation.
Creating a Heritage Validation Rules 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 > Heritage > Heritage Validation Rules
- Give your new asset a descriptive name (e.g.,
DA_HeritageValidationRules)
- Double-click the asset to open it and configure its properties
How Heritage Validation Rules Works
Registration Flow
- Project Settings Configuration
- Navigate to: Edit → Project Settings → Plugins → WC GAS Ally → Heritage
- Assign your Heritage Validation Rules asset to the
Heritage Validation Rules field
- Automatic Loading at Game Startup
- The Heritage Subsystem initializes when the Game Instance starts
- Loads the validation rules asset from Project Settings (soft reference)
- Caches the rules for fast runtime access
- Logs successful loading to Output Log
- Runtime Validation
- Adding a Class: System checks if character's races meet class requirements
- Adding a Race: System checks if character's classes allow the race
- Hybrid Creation: System enforces maximum race limits and combine rules
Bidirectional Validation
Heritage Validation Rules enforces restrictions in both directions:
| Action |
Validation |
Example |
| Adding a Class |
Check if character's races are allowed for the class |
Dwarf trying to become a Mage (forbidden) |
| Adding a Race |
Check if character's classes allow the race |
Mage trying to add Dwarf race (forbidden) |