Traits Registration

Estimated reading time: less than 1 minute

Register custom traits via maplebirch.tool.other.addTraits().

Access via maplebirch.tool.other.addTraits() or shortcut maplebirchFrameworks.addTraits().

Trait Interface

FieldTypeDescription
titlestringTrait title / category
namestringTrait identifier (required)
colourstringDisplay color
hasFunction | stringOwnership condition
textstringTrait description text

Example

const other = maplebirch.tool.other;

other.addTraits({
  title: "General Traits",
  name: "brave",
  colour: "green",
  has: () => V.brave >= 1,
  text: "Character shows courage",
});

other.applyLocation();

Note

The framework resolves and deduplicates trait registration internally to avoid duplicate or incorrect overwrites. The maplebirch.tool.other.addTraits API is unchanged.