Skip to content

Instantly share code, notes, and snippets.

@mpelos
Last active July 20, 2020 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpelos/2192172d498186dbc92d7e15a7fc520e to your computer and use it in GitHub Desktop.
Save mpelos/2192172d498186dbc92d7e15a7fc520e to your computer and use it in GitHub Desktop.
rpg-sheet-example
cells:
- name: strength
type: input
visible: true
default: 10
- name: strength-cost
type: value
visible: true
formula: "({strength} - 10) * 10"
tags: [cost]
- name: dexterity
type: input
default: 10
- name: dexterity-cost
type: value
formula: "({dexterity} - 10) * 20"
tags: [cost]
- name: parry
type: value
formula: "1 + 1"
- name: totalCost
type: value
formula: "sumTags(cost)"
templates:
- name: combat-reflexes
type: value
value: 1
side-effects:
- target: parry
formula: "{parry.value} + 1"
- name: combat-reflexes-cost
type: value
formula: "{combat-reflexes} * 15"
tags: [cost]
- name: extended-lifespan
type: input
default: 1
min: 1
max: 3
- name: extended-lifespan-cost
type: value
formula: "{extended-lifespan} * 2"
tags: [cost]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment