Loading theme preference
GitHub—

Player Profile Card

Displays an 8-bit player stats and avatar card.

Behaviors

What a player (or an agent) can do with this player-profile-card. Press Test on the preview to play them live. Agents can fetch them as JSON from /r/behaviors/player-profile-card.json or run them on this page with await window.__8bitcn.behaviors.run("player-profile-card").

  1. Read HP and MP

    Read the player's health and mana through the HUD bars read-vitals

    Steps
    (none: checks the page as it renders)
    Expected
    "Health" has value = 850, max = 1000, percent = 85
    "Mana" has value = 320, max = 400, percent = 80
  2. Read Experience

    Read the XP earned toward the next level read-experience

    Steps
    (none: checks the page as it renders)
    Expected
    "Experience" has value = 7500, max = 10000
    The preview shows an element containing "7500/10000 XP"
  3. Read name, level and class

    See who the player is read-profile

    Steps
    (none: checks the page as it renders)
    Expected
    The preview shows an element with role "heading" named "OrcDev"
    The preview shows [data-slot='badge'] containing "Lv.25"
    The preview shows an element containing "Web Dev Warrior"