EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

player_profile

Character and starting inventory applied once when a player is created.

Signature

{ character: CharacterId, id: ContentId, kind: "player_profile", loadout: Loadout, starting_recipes: {RecipeId} }

Fields

NameTypeMeaning
characterCharacterIdCharacter definition supplying body, stats and movement.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: character
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}$
kind"player_profile"Discriminant
loadoutLoadoutInventory, quick slots and held item of a new player's actor.
starting_recipes{RecipeId}Recipes unlocked for a newly created player.
Items: 0…4096; Unique entries

Validated example

{
  "character": "core:adventurer",
  "id": "core:new_player",
  "kind": "player_profile",
  "loadout": {
    "equipped": "core:sword",
    "hotbar": [
      "core:sword",
      "core:bow",
      "core:axe",
      "core:pickaxe",
      "core:hammer",
      "core:healing_potion",
      "core:home_totem",
      "core:torch"
    ],
    "items": [
      {
        "count": 1,
        "item": "core:sword"
      },
      {
        "count": 1,
        "item": "core:bow"
      },
      {
        "count": 1,
        "item": "core:axe"
      },
      {
        "count": 1,
        "item": "core:pickaxe"
      },
      {
        "count": 1,
        "item": "core:hammer"
      },
      {
        "count": 1,
        "item": "core:hoe"
      },
      {
        "count": 3,
        "item": "core:healing_potion"
      },
      {
        "count": 1,
        "item": "core:home_totem"
      },
      {
        "count": 1,
        "item": "core:torch"
      },
      {
        "count": 20,
        "item": "core:arrow"
      }
    ]
  },
  "starting_recipes": []
}