Skip to content

HeroRecord beta ​

Interface of @v12-engine/engine

ts
export interface HeroRecord

A hero as plain data, to take from one world into another: a campaign's hero going on to the next mission with all it has earned. Its level and experience, the points it has not spent, the abilities it learned and how far, and its items slot by slot. Not where it is or how hurt: the next mission puts it where it starts, whole

Members ​

abilities ​

ts
abilities: Record<string, number>;

Learned abilities and their level. Ones not learned are left out

items ​

ts
items: (HeroItem | null)[];

Its inventory slot by slot: null for an empty slot

level ​

ts
level: number;

The hero's level

name ​

ts
name?: string;

The name it was known by in the rules (world.named), when it had one

points ​

ts
points: number;

Skill points the hero has earned and not yet spent

type ​

ts
type: string;

Its unit type

xp ​

ts
xp: number;

The hero's experience points