Personas (Attributes)

Personas (Attributes)#

Persona#

The Persona is a particular representation of a user in the virtual world. This is also often referred to as a user avatar or player character. Each Persona has a name that uniquely identifies them from others within the world. They also feature a set of attributes and statistics. The attributes and statistics are entirely arbitrary and defined by the developer.

Persona Attributes#

Persona Attributes allow you to describe any characteristic that a given Persona can have. These characteristics can be discrete values or higher level frameworks that link to other structures. For an example, assume we are building a fantasy MMORPG. A typical set of attributes for each character in this game may include the following:

  • age - The descriptive age of the Persona as defined by the user

  • bio - The descriptive history of the Persona as defined by the user

  • class - The character archetype expressed as an enumerated value.

    • e.g. Warrior , Wizard , Necromancer , Priest

  • race - The humanoid race that the Persona belongs to.

    • e.g. Dwarf , Elf , Human , Time Lord

These can be easily represented in the attributes property of a Persona object:

 1{
 2    "userUid": "d4c61b75-9141-4383-af25-b2a254b95b21",
 3    "name": "Jon Snow",
 4    "description": "Jon Snow is a character from the book A Song of Fire and Ice by George R.R. Martin.",
 5    "attributes": {
 6        "age": 26,
 7        "alias": "Aegon Targaryen",
 8        "bio": "Commander of the Night's Watch. King of the North. Protector of the living.",
 9        "class": "warrior",
10        "race": "human",
11    }
12}