EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

character

Actor geometry, movement, health, compatible clips and resistance data.

Signature

{ appearance: Name, id: ContentId, immunities: {StatusId}, kind: "character", mass_permille: PositiveCount, max_health: PositiveHitPoints, max_stamina: Count, movement: MovementId, name: TextKey, options: (CharacterOptionsId)?, poise: (Poise)?, prefab: (PrefabId)?, presentation: BodyPresentation, resistances: {Resistance}, rig: RigId }

Fields

NameTypeMeaning
appearanceNameEngine rig and look of the body until native prefabs and rigs replace it.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
idContentIdPackage-qualified identity; unique within its declaring namespace.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
immunities{StatusId}Status definitions that cannot be applied to this character.
Items: 0…4096; Unique entries
kind"character"Discriminant
mass_permillePositiveCountWeight against pushes in thousandths of a standard body.
Range: 1…2147483647; Unit: permille
max_healthPositiveHitPointsMaximum hit points and upper healing cap.
Range: 1…2147483647; Unit: hp
max_staminaCountMaximum stamina resource for this character.
Range: 0…2147483647; Unit: count
movementMovementIdMovement profile used by this character.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: movement
nameTextKeyLocalization key for the displayed name.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text
optionsCharacterOptionsIdAppearance customization choices offered for this character.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: character_options
poisePoiseHow much it takes to stagger the body out of a wind-up when a computer-controlled figure wears it; absent: the ruleset's `poise`.
prefabPrefabIdPrefab definition supplying the object's geometry.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: prefab
presentationBodyPresentationEngine renderer family drawing the body and its drawing parameters.
resistances{Resistance}Damage multipliers indexed by unique damage-type references.
Items: 0…4096; Unique entries
rigRigIdRig whose clips the body plays; its plan must be the plan of the appearance.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: rig

Validated example

{
  "appearance": "player",
  "id": "core:adventurer",
  "immunities": [],
  "kind": "character",
  "mass_permille": 1000,
  "max_health": 100,
  "max_stamina": 100,
  "movement": "core:adventurer_move",
  "name": "core:adventurer_name",
  "options": "core:adventurer_looks",
  "presentation": {
    "clothes_rgb": [
      [
        239,
        168,
        51
      ]
    ],
    "gait_speed_mm_per_s": 4800,
    "kind": "human",
    "stride_mm": 2800,
    "track_speed_mm_per_s": 7957
  },
  "resistances": [],
  "rig": "core:human"
}