StatGroupDefinition ​
Inherits: DatabaseResource < Resource
A group of stats: Primary, Secondary, Offensive, Defensive, Utility ... A stat can be in several groups (StatDefinition.groups). Groups do three jobs:
Description ​
- Targets: a StatModifierEffect (or SetStatActiveStateEffect) can name a group instead of one stat, so "all Primary stats +10 %" is one effect.
- Layout: the character sheet and item tooltips put the stats under the headings of their groups, in
sort_order.
A stat in several groups is listed once, under the first of its visible groups.
- Hiding: a stat in a group with
hide_from_sheethas no row on the character sheet or in tooltips (the weapon stats, internal numbers).
A group changes nothing about how a stat is calculated. See docs/systems/entity-stats.md, section 27.
Properties ​
Color | color | Color.WHITE |
int | sort_order | 100 |
bool | hide_from_sheet | false |
Methods ​
StatGroupDefinition | build_default( entry: Dictionary ) static |
Constants ​
intID_CORE =1000001- Ids of the groups every project has. Core and Hidden are used by the core stats (the engine's own stats); the others are the usual starting set, created when a project has no stat groups yet (seeDatabase)intID_PRIMARY =1000002- The id of the built-in group Primary.intID_SECONDARY =1000003- The id of the built-in group Secondary.intID_OFFENSIVE =1000004- The id of the built-in group Offensive.intID_DEFENSIVE =1000005- The id of the built-in group Defensive.intID_UTILITY =1000006- The id of the built-in group Utility.intID_HIDDEN =1000007- The id of the built-in group Hidden (its stats are not shown).Array[Dictionary]DEFAULTS =[- The groups created for a new project: id, name, description, sort order, hidden, colourArray[int]LEGACY_CATEGORY_GROUPS =[ID_CORE, ID_PRIMARY, ID_SECONDARY, ID_DEFENSIVE, ID_UTILITY, ID_HIDDEN]- What the olddisplay_categorynumbers (0 core, 1 primary, 2 secondary, 3 defensive, 4 utility, 5 hidden) are now
Property descriptions ​
Color color = Color.WHITE ​
The color that stands for this in the interface
Display
int sort_order = 100 ​
Where the group's heading comes on the character sheet and in tooltips (low first)
bool hide_from_sheet = false ​
Stats in this group have no row on the character sheet and are left out of tooltips
Method descriptions ​
StatGroupDefinition build_default( entry: Dictionary ) ​
A fresh definition of one of the DEFAULTS