Using Stats in Dice Rolls - rpg-sage-creative/rpg-sage GitHub Wiki

Wiki Home | Feature Guide | Quick Start | E20 Demo | One-Page Wiki Related Topics: Character Management, Character Options, Manual Stats, Pathbuilder Stats, Stats in Dice

Using Stats in Dice Rolls

[1d20 + {character::statkey:default}]

character

The character you are trying to get the stat for

statkey

The "key", or "name" that the stat is stored as in the character data

default

(optional) a default value to use if one is not found

Character

You can refer to a character with one of the following:

name

Looks up the character by name. If the name has spaces, must be quoted, as in: {"bob the wizard"::level}

alias

Looks up the character by alias. Can be quoted, but please avoid spaces in aliases

pc

grabs your pc

alt

grabs your PC's first companion

Character Notes

If you are using a Sage Game the character must exist in the game, otherwise you can only use your own characters.

Stat Key

Refers to the stat/data you are trying to grab. Examples:

  • level
  • ac
  • hp
  • maxhp

Default Value

If the value isn't found, your {char::stat} will show up in your roll as part of the description. Setting a default value of 0 will avoid that. Ex: {char::stat:0}