jacobwojoski / dice-stats

A Module for Foundry VTT that tracks and displays dice stats
MIT License
7 stars 6 forks source link

[System Request] PBTA #8

Open brunocalado opened 1 year ago

brunocalado commented 1 year ago

Hi.

Can you make it work for PBTA?

Tks

jacobwojoski commented 1 year ago

Don't know how to make a character sheet in PBTA so cant test it.

brunocalado commented 1 year ago

Don't know how to make a character sheet in PBTA so cant test it.

It's not working. image

You can just paste a working character sheet.

  1. Go to PBTA Configuration
  2. Paste the json code and save.
  3. Now you can create actors
  4. Click the blue buttons to roll dice image

image

# Configure Rolls
rollFormula = "2d6"
statToggle = "Highlight"

# Define roll result ranges.
[rollResults]
  [rollResults.failure]
    range = "6-"
    label = "Complications..."
  [rollResults.partial]
    range = "7-9"
    label = "Partial success"
  [rollResults.success]
    range = "10-12"
    label = "Success!"

########################################
## CHARACTERS ##########################
########################################
# Define the character group.
[character]

  # Define stats.
  [character.stats]
    cool = "Cool"
    hard = "Hard"
    hot = "Hot"
    sharp = "Sharp"
    weird = "Weird"

  # Define attributes.
  [character.attributesTop]
    [character.attributesTop.harm]
      type = "Clock"
      label = "Harm"
      max = 6
    [character.attributesTop.armor]
      type = "Number"
      label = "Armor"
    [character.attributesTop.hold]
      type = "Resource"
      label = "Hold"
    [character.attributesTop.xp]
      type = "Xp"
      label = "Xp"
      max = 5

  # Define sidebar details.
  [character.attributesLeft]
    [character.attributesLeft.harmConditions]
      type = "ListMany"
      label = "Harm Conditions"
      options = [
        "Stabilized",
        "Shattered (-1COOL)",
        "Crippled (-1HARD)",
        "Disfigured (-1HOT)",
        "Broken (-1SHARP)"
      ]
    [character.attributesLeft.improvement]
      type = "LongText"
      label = "Improvement"
    [character.attributesLeft.hx]
      type = "LongText"
      label = "HX"
    [character.attributesLeft.look]
      type = "LongText"
      label = "Look"
    [character.attributesLeft.special]
      type = "LongText"
      label = "Playbook Special"

  # Define groups for moves.
  [character.moveTypes]
    basic = "Basic Moves"
    peripheral = "Peripheral Moves"
    class = "Class Moves"

  # Define groups for equipment.
  [character.equipmentTypes]
    gear = "Gear"
    barter = "Barter"

########################################
## NPCS ################################
########################################
# Define stats.
[npc]
  # Define attributes.
  [npc.attributesTop]
    [npc.attributesTop.harm]
      type = "Resource"
      label = "Harm"
    [npc.attributesTop.gender]
      type = "Text"
      label = "Gender"
    [npc.attributesTop.age]
      type = "Text"
      label = "Age"

  [npc.attributesLeft]
    [npc.attributesLeft.look]
      type = "LongText"
      label = "Look"
    [npc.attributesLeft.drive]
      type = "LongText"
      label = "Drive"

  # Define logical groups for moves.
  [npc.moveTypes]
    mc = "MC Moves"
jacobwojoski commented 1 year ago

If the GM is the only person who rolled you wont see global data unless you check off the setting. Other then that Ill look into it.

brunocalado commented 1 year ago

If the GM is the only person who rolled you wont see global data unless you check off the setting. Other then that Ill look into it.

To test, I create a player. I rolled with that player.