Protocol Documentation

Table of Contents

ca/isupeene/charactersheet/proto/model.proto

Top

AbilityCheckAdvantage

FieldTypeLabelDescription
type AbilityCheckAdvantage.Type

ability string

Used for both ABILITY and SKILL types. For example, an enchantment or feature that grants a bonus to Charisma (Persuasion) checks would not apply to Intelligence (Persuasion) checks.

skill string

AbilityScore

FieldTypeLabelDescription
ability string

score int32

AbilityScoreIncrease

FieldTypeLabelDescription
constraint AbilityScoreIncreaseConstraint

number int32

magnitude int32

correlation_key string

Allowed correlations: ABILITY_SCORE_INCREASE (exclusion), SAVING_THROW_PROFICIENCY

prompt string

AbilityScoreIncreaseConstraint

FieldTypeLabelDescription
type AbilityScoreIncreaseConstraint.Type

specific_ability_score string repeated

correlation_key string

TODO: Rename to exclusion_key, or exclusion_correlation_key?

AbilityScoreIncreaseEnchantment

FieldTypeLabelDescription
ability string

bonus int32

AnimalInfo

FieldTypeLabelDescription
speed int32

carrying_capacity_pounds int32

ArmorInfo

FieldTypeLabelDescription
category ArmorCategory

base_armor_class int32

stealth_disadvantage bool

strength_prerequisite int32

metallic bool

Background

FieldTypeLabelDescription
name string

info_source InfoSource

background_element BackgroundElementCategory repeated

feature Feature repeated

BackgroundElement

FieldTypeLabelDescription
category_name string

description string

BackgroundElementCategory

FieldTypeLabelDescription
name string

singular_name string

option string repeated

option_variation BackgroundElementCategory.OptionVariation repeated

BackgroundElementCategory.OptionVariation

FieldTypeLabelDescription
text string

index int32

BackgroundList

FieldTypeLabelDescription
background Background repeated

BranchingFeatureOption

BranchingFeatureOptions for classes should be specified in the classes file, while those for feats

should be specified in the feats file.

FieldTypeLabelDescription
source BranchingFeatureOption.Source repeated

name string

e.g. "Life". Must be unique among all BranchingFeatureOptions.

description string

info_source InfoSource

feature Feature repeated

display_name_override string

Use this when the desired display name is generic (such as the name of a class), and would violate the name uniqueness rule.

BranchingFeatureOption.Source

FieldTypeLabelDescription
source_name string

e.g. "Cleric", but could also be the name of a non-class feature source

feature_name string

e.g. "Divine Domain" (refers to the source_id_key of the source feature)

CastingTime

FieldTypeLabelDescription
type CastingTime.Type

magnitude int32

Only used if type is MINUTE or HOUR

trigger string

Only used if type is REACTION

Character

FieldTypeLabelDescription
id int32

name string

race string

subrace string

primary_class string

class_level ClassLevel repeated

background CustomizedBackground

thumbnail ImageSource

ability_score AbilityScore repeated

The character's base ability scores chosen at creation. Additional ability score bonuses are represented as FeatureSelections of type ABILITY_SCORE_INCREASE

feature FeatureSelection repeated

equipment Equipment repeated

Represents the current equipment owned by this character.

resource_state ResourceState repeated

The amount remaining of each resource (ki, rages, sorcery points, breath weapon, etc.) for each of this character's RESOURCE features.

current_hit_points int32

inspiration bool

successful_death_saves int32

failed_death_saves int32

stable bool

dead bool

CharacterList

FieldTypeLabelDescription
character Character repeated

Class

FieldTypeLabelDescription
name string

short_description string

info_source InfoSource

thumbnail ImageSource

feature Feature repeated

hit_die int32

ClassLevel

FieldTypeLabelDescription
class_name string

level int32

ClassList

FieldTypeLabelDescription
class Class repeated

class_option BranchingFeatureOption repeated

multi_option MultiFeatureOption repeated

ClassSpells

FieldTypeLabelDescription
class_name string

spell string repeated

ClassSpellsList

FieldTypeLabelDescription
class_spell ClassSpells repeated

ContainerInfo

TODO: Comment on mixed fraction constraints: https://www.compart.com/en/unicode/decomposition/%3Cfraction%3E

FieldTypeLabelDescription
solid_capacity_tenth_cubic_feet int32

liquid_capacity_ounces int32

weight_capacity_pounds int32

strappable bool

Items can be strapped to the outside of a strappable container (backpack) provided the overall weight limit is not exceeded.

extradimensional bool

Extradimensional items such as bag of holding or portable hole are allowed to have a higher capacity than their external size. Additionally, extradimensional items cannot be placed inside each other. Attempting to do so will destroy both items and open a portal to the Astral Plane.

item_capacity ContainerInfo.ItemCapacity

ContainerInfo.ItemCapacity

Capacity for holding specific items, e.g. Crossbow Case or Quiver

FieldTypeLabelDescription
type ContainerInfo.ItemCapacity.Type

specific_item string

item_type Item.Type

quantity int32

CustomizedBackground

FieldTypeLabelDescription
name string

element BackgroundElement repeated

backstory string

alignment Alignment

DamageResistance

FieldTypeLabelDescription
type DamageResistance.Type

magic_ignores_resistance bool

silver_ignores_resistance bool

damage_type DamageType repeated

Darkvision

FieldTypeLabelDescription
range int32

see_through_magical_darkness bool

improve_existing_darkvision bool

e.g. Goggles of Night

Duration

FieldTypeLabelDescription
type Duration.Type

magnitude int32

Only used if type is MINUTE, HOUR, DAY, or YEAR.

concentration bool

Equipment

FieldTypeLabelDescription
name string

quantity int32

unit Unit

state ItemState repeated

source EquipmentSource

EquipmentOption

FieldTypeLabelDescription
option EquipmentPackage repeated

EquipmentOptionConstraint

FieldTypeLabelDescription
type EquipmentOptionConstraint.Type

specific_item string

Note that spellbooks are a special case, which MUST be in their own starting equipment entry with no options allowed.

weapon WeaponDescription

item_type Item.Type

EquipmentPackage

FieldTypeLabelDescription
name string

equipment EquipmentPackageElement repeated

EquipmentPackageElement

FieldTypeLabelDescription
constraint EquipmentOptionConstraint

quantity int32

unit Unit

prompt string

item_state ItemState repeated

EquipmentSource

TODO: Both Equipment and SpellState need to have EquipmentSource. This needs to be set for

all items and for spellbook spells.

FieldTypeLabelDescription
type EquipmentSource.Type

source_description string

source_id SourceId

package_name string

For type FEATURE if there are multiple options.

ExpandedSpellList

FieldTypeLabelDescription
class_name string

spell string repeated

Feat

FieldTypeLabelDescription
name string

short_description string

info_source InfoSource

prerequisite FeatPrerequisite

feature Feature repeated

FeatList

FieldTypeLabelDescription
feat Feat repeated

feat_option BranchingFeatureOption repeated

FeatPrerequisite

FieldTypeLabelDescription
type FeatPrerequisite.Type

ability string repeated

armor_category ArmorCategory

Feature

TODO: Incorporate Resources and the effect of spending that resource in the same Feature?

FieldTypeLabelDescription
type Feature.Type

source_id_key string

NOTE WELL ALL YE WHO ENTER HERE: source_id_key must be unique within a given feature source (e.g. race, class, branching_feature, etc) There are no uniqueness constraints for display_name. source_id will be populated by the Rules when the feature is retrieved.

display_name string

source_id SourceId

show_in_feature_list bool

Whether to show this feature on the Features tab. Features like "Tides of Chaos" should set this to true, while features like "Base Walking Speed" should default to false.

level int32

The level at which this feature becomes active. For features sourced from a Class, this is the level in that class. Otherwise, it is the overall character level.

multiclass_characteristics Feature.MulticlassCharacteristics

talent_proficiency TalentProficiencyOption

saving_throw_proficiency SavingThrowProficiencyOption

weapon_proficiency WeaponProficiency

armor_proficiency ArmorCategory

ability_score_increase AbilityScoreIncrease

spellcasting_progression SpellcastingProgression

spells_known SpellsKnown

Used for SPELLS_KNOWN and SPELLBOOK

spells_prepared SpellsPrepared

expanded_spell_list ExpandedSpellList

equipment EquipmentOption

speed_bonus int32

resource Resource

hit_points HitPoints

passive_skill_bonus PassiveSkillBonus

initiative_bonus int32

unarmored_defense UnarmoredDefense

multi_feature_group MultiFeatureGroup

FeatureList

FieldTypeLabelDescription
name string

feature Feature repeated

FeatureSelection

Although this is called "FeatureSelection", it can also include feature types for which the

player does not select any option, such as SHIELD_PROFICIENCY, or where the constraint is such

that the player has no actual choice in the matter, as with many ABILITY_SCORE_INCREASE features.

FieldTypeLabelDescription
type Feature.Type

Type of the source feature

source_id SourceId

ID of the source feature

display_name string

Display name of the source feature

show_in_feature_list bool

selection string

HitPoints

FieldTypeLabelDescription
type HitPoints.Type

hit_points_per_level int32

ImageSource

FieldTypeLabelDescription
type ImageSource.Type

storage_path string

asset_path string

InfoPage

FieldTypeLabelDescription
title string

content string

InfoSource

FieldTypeLabelDescription
type InfoSource.Type

storage_path string

asset_path string

uri string

Item

FieldTypeLabelDescription
name string

indefinite_name string

plural_name string

short_description string

full_description string

type Item.Type

info_source InfoSource

unit string

This is a little broader than the fluid unit used to quantify fluid equipment. This is used to describe the costs and weights of objects in terms of the unit, for example the amount a chain weighs "per foot".

unit_cost_cp int32

unit_weight_lb int32

unit_weight_quarter_lb int32

weapon_info WeaponInfo

armor_info ArmorInfo

equipment_pack_contents Equipment repeated

container_info ContainerInfo

animal_info AnimalInfo

speed_miles_per_hour int32

fluid bool

ItemEffect

FieldTypeLabelDescription
correlation_key string

Used if this is associated with an ItemEnchantment. Correlates with the MagicItemResource used to activate this effect.

ItemEnchantment

TODO: Handle Curses

FieldTypeLabelDescription
type ItemEnchantment.Type

description string

OTHER

table Table

A table such as that describing Alchemy Jug or Apparatus of Kwalish

activation_condition string

Bonuses with 'activation_condition' set are not always active, but the condition will appear as a suggestion when the user enters the appropriate context. For example, if a weapon gives +1 against dragons, this will be indicated when the player taps their attack block.

requires_attunement bool

Whether the specific enchantment requires attunement to use. Some items can be attuned to, but have some basic effects that are active regardless of whether or not the user is attuned.

bonus_magnitude int32

ATTACK_AND_DAMAGE_BONUS, SAVING_THROW_BONUS, AC_BONUS, DAMAGE_BONUS, PROFICIENCY_BONUS_INCREASE

bonus_damage_die_value int32

DAMAGE_BONUS

bonus_die_die_quantity int32

DAMAGE_BONUS

bonus_damage_type DamageType

DAMAGE_BONUS TODO: Specify when damage type is the same as that dealt by the weapon?

ability string

MINIMUM_ABILITY_SCORE

minimum_ability_score string

MINIMUM_ABILITY_SCORE

damage_resistance DamageResistance

DAMAGE_RESISTANCE, DAMAGE_IMMUNITY

slaying Slaying

SLAYING

ability_score_increase AbilityScoreIncreaseEnchantment

ABILITY_SOCRE_INCREASE

max_ability_score_increase MaxAbilityScoreIncrease

MAX_ABILITY_SCORE_INCREASE

ability_check_advantage AbilityCheckAdvantage

ABILITY_CHECK_ADVANTAGE

saving_throw_advantage SavingThrowAdvantage

SAVING_THROW_ADVANTAGE

darkvision Darkvision

DARKVISION

talent string

TALENT_PROFICIENCY

hit_points_per_level int32

HIT_POINTS

spell_name string

SPELL_AT_WILL

effect ItemEffect

EFFECT

jump_multiplier int32

JUMP_MULTIPLIER

walking_speed int32

WALKING_SPEED, MINIMUM_WALKING_SPEED

movement_speed MovementSpeed

CLIMBING_SPEED, SWIMMING_SPEED, FLYING_SPEED

unarmed_strike_enhancement UnarmedStrikeEnhancement

UNARMED_STRIKE_ENHANCEMENT

condition Condition

CONDITION_IMMUNITY

ItemList

FieldTypeLabelDescription
item Item repeated

ItemState

FieldTypeLabelDescription
type ItemState.Type

source EquipmentSource

name string

spell SpellState

equipment Equipment

Contained equipment

description string

MagicItemResource

FieldTypeLabelDescription
charges int32

recovery_type MagicItemResource.RecoveryType

recovery_die int32

Used for DIE recovery type. This is allowed to be a number like d3 (1d6 / 2)

correlation_key string

If present, this key must correlate to an ItemEnchantment of type EFFECT to indicate which effect is activated by a use of this resource. If it's empty, it's presumed that the effect is of type "OTHER" TODO: Figure it if correlation to the OTHER effect is needed, and if so, how to implement

MaterialComponent

FieldTypeLabelDescription
description string

cost int32

consumed bool

required bool

True if the component is required, even though it is not consumed and has no specified cost

MaxAbilityScoreIncrease

FieldTypeLabelDescription
ability string

increase int32

MovementSpeed

FieldTypeLabelDescription
type MovementSpeed.Type

specific_speed int32

MultiFeatureGroup

FieldTypeLabelDescription
name string

e.g. Maneuver

plural_name string

TODO: This is probably not globalization-friendly. e.g. Maneuvers

level_quantity MultiFeatureGroup.LevelQuantity repeated

replacement_policy MultiFeatureGroup.ReplacementPolicy

One selection can be changed at level-ups where the specified condition is met.

locked_selection string repeated

Any selections specified here must be selected when this feature is gained, using the quantity quota specified for the level at which it is gained. However, they may still be replaced at later levels, according to the replacement policy.

MultiFeatureGroup.LevelQuantity

FieldTypeLabelDescription
level int32

quantity int32

MultiFeatureOption

FieldTypeLabelDescription
source MultiFeatureOption.Source repeated

name string

e.g. "Commander's Strike". Must be unique among all MultiFeatureOptions.

description string

info_source InfoSource

feature Feature repeated

MultiFeatureOption.Source

FieldTypeLabelDescription
source_name string

e.g. "Fighter", but could also be the name of a non-class feature source

feature_name string

e.g. "Combat Superiority" (refers to the source_id_key of the source feature)

MultiPageInfo

FieldTypeLabelDescription
page InfoPage repeated

PassiveSkillBonus

FieldTypeLabelDescription
skill string

bonus int32

Race

FieldTypeLabelDescription
name string

short_description string

parent_race string

info_source InfoSource

thumbnail ImageSource

feature Feature repeated

standalone_name string

Specified in Subraces only - e.g. if the subrace is "Stout" and the parent race is "Halfling", the standalone_name would be "Stout Halfling".

RaceList

FieldTypeLabelDescription
race Race repeated

subrace Race repeated

Range

FieldTypeLabelDescription
type Range.Type

magnitude int32

Only used if type is FOOT or MILE

annotation string

e.g. "15-foot cone" in "Range: Self (15-foot cone)", as in burning hands

Resource

FieldTypeLabelDescription
quantity Resource.Quantity

recovery Resource.Recovery

die_progression Resource.ResourceDie repeated

Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority

correlation_key string

If not empty, corresponds to the correlation key in a SPELLS_KNOWN feature. This resource is used to cast the spell associated with this key, and the display name of the resource will change to the name of the spell selected via that feature. TODO: Use correlation key for other effects than casting a spell. e.g. rage effect?

Resource.Quantity

FieldTypeLabelDescription
type Resource.Quantity.Type

level_progression Resource.Quantity.LevelQuantity repeated

ability string

TODO: Should abilities be an enum? Only applies to type ABILITY_SCORE

extra_uses int32

Only applies to type ABILITY_SCORE

class_level_multiplier int32

Only applies to type CLASS_LEVEL_EXACT. Values less than 1 are treated as 1.

Resource.Quantity.LevelQuantity

FieldTypeLabelDescription
start_level int32

type Resource.Quantity.LevelQuantity.Type

quantity int32

Resource.ResourceDie

FieldTypeLabelDescription
start_level int32

die int32

ResourceState

FieldTypeLabelDescription
source_id SourceId

Refers to the source_id of the corresponding RESOURCE feature.

quantity int32

The current quantity of the resource remaining.

SavingThrowAdvantage

FieldTypeLabelDescription
type SavingThrowAdvantage.Type

ability string

SavingThrowProficiencyOption

TODO: Just rename to SavingThrowProficiency, and put everything in this proto?

(Just like WeaponProficiency)

FieldTypeLabelDescription
constraint SavingThrowProficiencyOptionConstraint

SavingThrowProficiencyOptionConstraint

FieldTypeLabelDescription
type SavingThrowProficiencyOptionConstraint.Type

specific_ability string repeated

correlation_key string

Slaying

FieldTypeLabelDescription
target string

save_dc int32

damage_die_value int32

TODO: Think about using a DamageDice message containing these two fields

damage_die_quantity int32

SourceId

A trail of IDs that both uniquely identifies the feature source for a given feature or bonus,

and provides the identifying names of the features.

FieldTypeLabelDescription
id_unit SourceIdUnit repeated

SourceIdUnit

FieldTypeLabelDescription
feature_name string

Descriptive, e.g. 'Dragonborn Strength'

type SourceIdUnit.Type

e.g. RACE

source_name string

e.g. 'Dragonborn'

level int32

For Race, Class, and Branching Feature, the level at which the feature is gained.

Spell

FieldTypeLabelDescription
name string

The name of the spell. Don't wear it out!

short_description string

This is where you get to be creative! Write a description that summarizes the effects of the spell. Take a look at a few of the descriptions I wrote to get a sense of what I think is important. In particular, make sure to note the amount of damage a spell does, for damage spells. (I also like to explicitly use the word 'attack' when it's an actual spell attack, rather than a saving throw).

full_description InfoSource

This is a submessage indicating where the markdown file for this spell is located. 'type' will always be ASSET for built-in content, and 'asset_path' needs to be set. 'storage_path' should remain unset for built-in content.

level int32

The level of the spell. 0 for cantrips.

school School

The school of magic the spell belongs to. ABJURATION, EVOCATION, etc.

ritual bool

Whether the spell can be cast as a ritual. This is indicated in the players handbook by a parenthetical '(ritual)' after the level and school. You may leave this out if a spell cannot be cast as a ritual.

casting_time CastingTime

How long the spell takes to cast. For reaction spells, the trigger should be included, and phrased as if to complete the sentence: "You may cast this spell as a reaction <trigger>", and be copied from the Player's Handbook. For spells whose casting time is one action, you may omit the casting time.

range Range

The range of the spell. You may omit this field if the spell has a range of 'self'.

has_verbal_component bool

Indicated by a 'V' in the Player's Handbook. You may omit this field if false.

has_somatic_component bool

Indicated by an 'S' in the Player's Handbook. You may omit this field if false.

material_component MaterialComponent repeated

The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.

material_component_text string

This is used rarely - only if the material component text in the book can't be neatly decomposed into a comma-separated list of components. Search for "material_component_text" in spells.textpb to see the existing examples.

duration Duration

How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.

attack_roll bool

Whether the spell involves making a spell attack. You may omit this field if false.

SpellList

FieldTypeLabelDescription
spell Spell repeated

SpellState

FieldTypeLabelDescription
spell_name string

inscribed_by_owner bool

Whether or not the spell was inscribed on the object by its current owner. Only spells where this is true can be prepared by a Wizard, or cast as a ritual.

SpellsKnown

FieldTypeLabelDescription
type SpellsKnown.Type

spell_list string

Should be populated, regardless of the source type.

number int32

specific_spell string repeated

level_constraint SpellsKnown.LevelConstraint

correlation_key string

This spell may be cast using a consumable resource specifying the same correlation key. Note that all non-cantrip spells acquired by means other than a class MUST have correlation key set.

requires_attack_roll bool

This feature may only be used to learn a spell that requires an attack roll.

requires_ritual bool

This feature may only be used to learn rituals.

SpellsKnown.LevelConstraint

FieldTypeLabelDescription
type SpellsKnown.LevelConstraint.Type

specific_level int32

SpellsPrepared

FieldTypeLabelDescription
type SpellsPrepared.Type

quantity SpellsPrepared.Quantity

Not used for source: SPECIFIC

spell_list string

ability string

Not used for source: SPECIFIC

specific_spell string repeated

Only used for source: SPECIFIC

Table

FieldTypeLabelDescription
headings Table.Row

row Table.Row repeated

Table.Row

FieldTypeLabelDescription
entry string repeated

Talent

FieldTypeLabelDescription
name string

category string

ability string

hidden bool

Hidden talents can't be selected normally, but must be granted as a feature, e.g. Druidic or Thieves' Cant

TalentList

FieldTypeLabelDescription
talent Talent repeated

TalentProficiencyOption

FieldTypeLabelDescription
constraint TalentProficiencyOptionConstraint

proficiency_level ProficiencyLevel

number int32

default_selection string repeated

TalentProficiencyOptionConstraint

FieldTypeLabelDescription
type TalentProficiencyOptionConstraint.Type

category string repeated

specific_talent string repeated

UnarmedStrikeEnhancement

FieldTypeLabelDescription
magic_weapon bool

attack_bonus int32

damage_die_value int32

damage_die_quantity int32

UnarmoredDefense

FieldTypeLabelDescription
ability string

shields_allowed bool

WeaponDescription

FieldTypeLabelDescription
category WeaponCategory repeated

The chosen weapon must fall into one of the specified categories. If no categories are present, any weapon category is allowed.

range_class WeaponRangeClass repeated

The chosen weapon must fall into one of the specified range classes. If no range classes are present, any range class is allowed.

WeaponInfo

TODO: Allow custom WeaponInfo for magic weapons?

FieldTypeLabelDescription
category WeaponCategory

range_class WeaponRangeClass

damage string

TODO: Consider making this a separate class instead of a string

damage_type DamageType

ammunition bool

finesse bool

heavy bool

light bool

loading bool

reach bool

special bool

thrown bool

two_handed bool

versatile bool

standard_range int32

long_range int32

versatile_damage string

special_description string

WeaponProficiency

FieldTypeLabelDescription
type WeaponProficiency.Type

specific_weapon string repeated

category WeaponCategory repeated

number int32

TODO: Change 'number' to 'quantity' everywhere. Only used for type ANY

AbilityCheckAdvantage.Type

NameNumberDescription
ABILITY 0

SKILL 2

AbilityScoreIncreaseConstraint.Type

TODO: Remove EXCLUSION and just allow either type to have an exclusion key.

NameNumberDescription
SPECIFIC 0

Bonus must be one of the specified ability scores.

EXCLUSION 1

Bonus cannot be for the same ability as another bonus with the specified correlation_key.

ANY 2

Alignment

NameNumberDescription
LAWFUL_GOOD 0

NEUTRAL_GOOD 1

CHAOTIC_GOOD 2

LAWFUL_NEUTRAL 3

NEUTRAL 4

CHAOTIC_NEUTRAL 5

LAWFUL_EVIL 6

NEUTRAL_EVIL 7

CHAOTIC_EVIL 8

ArmorCategory

NameNumberDescription
ARMOR_CATEGORY_NONE 0

ARMOR_CATEGORY_LIGHT 1

ARMOR_CATEGORY_MEDIUM 2

ARMOR_CATEGORY_HEAVY 3

CastingTime.Type

NameNumberDescription
ACTION 0

BONUS_ACTION 1

REACTION 2

MINUTE 3

HOUR 4

Condition

NameNumberDescription
BLINDED 0

CHARMED 1

DEAFENED 2

FRIGHTENED 3

GRAPPLED 4

INCAPACITATED 5

INVISIBLE 6

PARALYZED 7

PETRIFIED 8

POISONED 9

PRONE 10

RESTRAINED 11

STUNNED 12

UNCONSCIOUS 13

ContainerInfo.ItemCapacity.Type

NameNumberDescription
SPECIFIC 0

ITEM_TYPE 1

DamageResistance.Type

NameNumberDescription
ALL 0

DAMAGE_TYPE 1

DamageType

NameNumberDescription
ACID 0

BLUDGEONING 1

COLD 2

FIRE 3

FORCE 4

LIGHTNING 5

NECROTIC 6

PIERCING 7

POISON 8

PSYCHIC 9

RADIANT 10

SLASHING 11

THUNDER 12

Duration.Type

NameNumberDescription
INSTANTANEOUS 0

ROUND 1

MINUTE 2

HOUR 3

DAY 4

YEAR 5

UNTIL_DISPELLED 6

UNTIL_DISPELLED_OR_TRIGGERED 7

EquipmentOptionConstraint.Type

NameNumberDescription
SPECIFIC 0

WEAPON 1

ITEM_TYPE 2

EquipmentSource.Type

NameNumberDescription
DESCRIPTIVE 0

The equipment came from a source specified by the player.

FEATURE 1

The equipment came from an EQUIPMENT feature, such as starting equipment from class or background, or from the Ritual Caster feat.

FeatPrerequisite.Type

NameNumberDescription
ABILITY_SCORE_MINIMUM 0

The character must have at least one of ability_scores greater than or equal to 13.

ARMOR_PROFICIENCY 1

The character must have proficiency in the category of armor denoted by armor_category.

SPELLCASTING 2

The character must have the ability to cast at least one spell.

Feature.MulticlassCharacteristics

NameNumberDescription
ANY 0

FIRST_CLASS 1

MULTICLASS 2

Feature.Type

Note that each of these types must be present in FEATURE_SOURCE_TYPES and the ConstraintMap.

NameNumberDescription
OTHER 0

The character gets some other feature which is not encoded, but merely expressed in text.

BRANCHING_FEATURE 1

Allow the character to select a BranchingFeatureOption, such as a Fighting Style or a Martial Archetype

TALENT_PROFICIENCY 2

Proficiency with skills, tools or languages, such as from class, race, or background features.

SAVING_THROW_PROFICIENCY 3

Proficiency with specific saving throws, such as from class features or the Resilient feat.

WEAPON_PROFICIENCY 4

Proficiency with certain types of weapons, such as from class or race features.

ARMOR_PROFICIENCY 5

Proficiency with a certain type of armor, such as from class or race features.

SHIELD_PROFICIENCY 6

Proficiency with shields.

ABILITY_SCORE_INCREASE 7

An ability score increase, such as from racial traits.

FEAT 8

A feat, such as when variant human is selected.

ABILITY_SCORE_INCREASE_OR_FEAT 9

An ability score increase or feat, such as when a character reaches level 4.

SPELLCASTING_PROGRESSION 10

Progression of spell slots, granted by spellcasting classes or class archetypes.

SPELLS_KNOWN 11

Spells known, such as for Bard or Warlock, as well as cantrips for all spellcasting classes.

SPELLBOOK 12

Spellbook feature for wizards / ritual casters. This feature MUST be accompanied by a totally constrained EQUIPMENT feature that grants them a 'spellbook'. TODO: Rename to SPELLBOOK_SPELLS, add "SPELLBOOK" feature type for the ability to add spells you find on your adventure.

SPELLS_PREPARED 13

Spells that can be prepared, such as for Clerics and Druids.

EXPANDED_SPELL_LIST 14

Expansions to the class's spell list, as for Warlocks.

EQUIPMENT 15

Options for choosing starting equipment, e.g. "(a) a martial weapon and a shield or (b) two martial weapons"

SPEED 16

Walking speed increases

RESOURCE 17

Consumable resources that regenerate after a short or long rest.

HIT_POINTS 18

Provides either a fixed number of hit points, or a certain number of hit points per class- or character-level.

PASSIVE_SKILL_BONUS 19

A bonus to passive checks for a particular skill, such as granted by the Observant feat.

INITIATIVE_BONUS 20

A bonus to initiative, such as granted by the Alert feat.

UNARMORED_DEFENSE 21

A bonus to AC while not wearing armor, such as given to Monks and Barbarians.

MULTI_FEATURE_OPTION 22

Allow the character to select one or more options associated with the feature. Includes the Fighter's Maneuvers, the Monk's Disciplines, the Sorcerer's Wild Magic, and the Warlock's Invocations

HitPoints.Type

NameNumberDescription
CHARACTER_LEVEL 0

CLASS_LEVEL 1

Requires that the feature is ultimately sourced from a class.

ImageSource.Type

NameNumberDescription
STORAGE 0

ASSET 1

InfoSource.Type

NameNumberDescription
STORAGE 0

ASSET 1

URI 2

Item.Type

TODO: Consider an enum like this for talent categories?

NameNumberDescription
GENERAL 0

WEAPON 1

ARMOR 2

AMMUNITION 3

ARCANE_FOCUS 4

DRUIDIC_FOCUS 5

HOLY_SYMBOL 6

EQUIPMENT_PACK 7

CONTAINER 8

ARTISANS_TOOLS 9

MISCELLANEOUS_TOOLS 10

GAMING_SET 11

MUSICAL_INSTRUMENT 12

ANIMAL 13

LAND_VEHICLE 14

WATER_VEHICLE 15

AIR_VEHICLE 16

FOOD_AND_DRINK 17

TRINKET 18

MONEY 19

ItemEnchantment.Type

TODO: Dictate in the Rules which ItemEnchantment Types can be applied to which Item Types.

TODO: Dictate rarity of each ItemEnchantment Type (except OTHER) in the Rules.

NameNumberDescription
OTHER 0

Used for effects that are not handled by the Character Sheet app itself, but are instead merely described textually. It is up to the player and the DM to implement the effect. Example magic items include "Amulet of Proof against Detection and Location".

ATTACK_AND_DAMAGE_BONUS 1

For weapons and ammunition, grants the attack and damage bonus only when the attack uses that weapon or ammunition. For all other items, all weapons and ammunition are affected. TODO: May need other restrictions. E.g. a magic gauntlet might only apply bonuses only to attacks with that hand

DAMAGE_BONUS 2

AC_BONUS 3

SAVING_THROW_BONUS 4

ADAMANTINE 5

For armor, turns critical hits into normal hits. For weapons, deals automatic critical hits to objects, and bypasses resistance and immunity to nonmagical weapons when specified in the monster's stat block.

MINIMUM_ABILITY_SCORE 6

Increases the specified ability score to the specified minimum. Has no effect if the character's specified ability score is already greater than or equal to the specified minimum.

DAMAGE_RESISTANCE 7

DAMAGE_IMMUNITY 8

SLAYING 9

ABILITY_SCORE_INCREASE 10

MAX_ABILITY_SCORE_INCREASE 27

E.g. Manual of Bodily Health, Hammer of Thunderbolts

ABILITY_CHECK_ADVANTAGE 11

SAVING_THROW_ADVANTAGE 12

DARKVISION 13

TALENT_PROFICIENCY 14

HIT_POINTS 15

SPELL_AT_WILL 16

TODO: Merge into "EFFECT"?

EFFECT 17

JUMP_MULTIPLIER 18

IGNORE_ENCUMBRANCE_SPEED_PENALTY 20

IGNORE_ARMOR_SPEED_PENALTY 21

WALKING_SPEED 28

MINIMUM_WALKING_SPEED 19

CLIMBING_SPEED 22

SWIMMING_SPEED 23

FLYING_SPEED 24

IGNORE_DIFFICULT_TERRAIN 33

UNARMED_STRIKE_ENHANCEMENT 25

IGNORE_PROFICIENCY_RESTRICTIONS 26

IGNORE_STRENGTH_RESTRICTIONS 30

E.g. Mithral Armor

PROFICIENCY_BONUS_INCREASE 29

DISEASE_IMMUNITY 31

CONDITION_IMMUNITY 32

SPELL_ATTACK_BONUS 34

SPELL_SAVE_DC_BONUS 35

ItemState.Type

NameNumberDescription
NAME 0

The item has a name, as a book or a legendary weapon might.

SPELL 1

The item has a spell inscribed on or in it.

CONTAINER 2

The item is a container with other items inside.

EFFECT 3

The item is the subject of a permanent or temporary magical or mundane effect.

DESCRIPTIVE 4

The item has a descriptive property with no specific rules associated with it.

MagicItemResource.RecoveryType

TODO: Handle Cloak of Invisibility style of recovery

NameNumberDescription
ALL 0

DIE 1

NONE 2

MovementSpeed.Type

NameNumberDescription
EQUAL_TO_WALKING_SPEED 0

SPECIFIC 1

MultiFeatureGroup.ReplacementPolicy

NameNumberDescription
NEVER 0

ON_SELECTION 1

EVERY_LEVEL 2

ProficiencyLevel

NameNumberDescription
NORMAL 0

HALF_ROUND_DOWN 1

HALF_ROUND_UP 2

DOUBLE 3

NONE 4

Range.Type

NameNumberDescription
SELF 0

TOUCH 1

FOOT 2

MILE 3

SIGHT 4

UNLIMITED 5

SPECIAL 6

Resource.Quantity.LevelQuantity.Type

NameNumberDescription
SPECIFIC 0

UNLIMITED 1

Resource.Quantity.Type

NameNumberDescription
TOTAL_LEVEL_PROGRESSION 0

level_progression.start_level refers to the character's total level

CLASS_LEVEL_PROGRESSION 1

level_progression.segment.start_level refers to the character's level in the source class Requires that the feature is ultimately sourced from a class.

ABILITY_SCORE 2

The resource can be used a number of times equal to the ability score modifier specified by 'ability' + 'extra_uses'

CLASS_LEVEL_EXACT 3

The resource can be used a number of times equal to the character's level in the source class Requires that the feature is ultimately sourced from a class.

Resource.Recovery

NameNumberDescription
SHORT_REST 0

LONG_REST 1

SavingThrowAdvantage.Type

NameNumberDescription
ALL 0

ABILITY 1

SavingThrowProficiencyOptionConstraint.Type

NameNumberDescription
ALL 0

ANY 1

SPECIFIC_ABILITY 2

CORRELATION 3

The proficiency must be for the same ability as an AbilityScoreBonus with the specified correlation_key.

School

NameNumberDescription
ABJURATION 0

CONJURATION 1

DIVINATION 2

ENCHANTMENT 3

EVOCATION 4

ILLUSION 5

NECROMANCY 6

TRANSMUTATION 7

SourceIdUnit.Type

NameNumberDescription
UNIVERSAL 0

RACE 1

CLASS 2

BACKGROUND 3

BRANCHING_FEATURE 4

MULTI_FEATURE 5

FEAT 6

SpellcastingProgression

NameNumberDescription
SPELLCASTING_PROGRESSION_NONE 0

SPELLCASTING_PROGRESSION_FULL 1

SPELLCASTING_PROGRESSION_HALF 2

SPELLCASTING_PROGRESSION_ONE_THIRD 3

SPELLCASTING_PROGRESSION_PACT_MAGIC 4

SpellsKnown.LevelConstraint.Type

NameNumberDescription
SPELL_SLOTS 0

Levels for which the character would have spell slots based only on their levels in the class from which this feature is sourced. E.g. Bard or Sorcerer spells known

SPELL_SLOTS_AND_CANTRIPS 1

Like SPELL_SLOTS, but cantrips are also allowed. E.g. Bard's 'Magical Secrets'

SPECIFIC_LEVEL 2

Only the specified level is allowed.

SpellsKnown.Type

NameNumberDescription
SPELL_LIST 0

'number' of spells from 'spell_list' may be selected.

SPECIFIC 1

The specified spells are known. The character may cast them as if they belonged to 'spell_list'

ANY 2

'number' spells from any spell list may be selected. The character may cast them as if they belonged to 'spell_list' (e.g. Bard's Magical Secrets feature).

SpellsPrepared.Quantity

NameNumberDescription
LEVEL_PLUS_MODIFIER 0

HALF_LEVEL_PLUS_MODIFIER 1

SpellsPrepared.Type

NameNumberDescription
SPELL_LIST 0

The character may prepare a number of spells defined by 'quantity' using the ability score modifier for 'ability'. The spells must come from 'spell_list'

SPELLBOOK 1

The character may prepare a number of spells defined by 'quantity' using the ability score modifier for 'ability'. The spells must come from the character's spellbook. The character may cast these spells as if they belonged to 'spell_list'

SPECIFIC 2

The specified spells are always prepared. The character may cast them as if they belonged to 'spell_list' TODO: Consider using SPELLS_KNOWN for this. Because that's literally what it is.

TalentProficiencyOptionConstraint.Type

NameNumberDescription
ANY 0

CATEGORY 1

SPECIFIC_TALENT 2

Unit

NameNumberDescription
ENTITY 0

OUNCE 1

PINT 2

QUART 3

GALLON 4

VIAL 5

FLASK 6

BOTTLE 7

BARREL 8

WeaponCategory

NameNumberDescription
WEAPON_CATEGORY_SIMPLE 0

WEAPON_CATEGORY_MARTIAL 1

WEAPON_CATEGORY_IMPROVISED 2

WEAPON_CATEGORY_UNARMED 3

WeaponProficiency.Type

NameNumberDescription
SPECIFIC 0

CATEGORY 1

ANY 2

WeaponRangeClass

NameNumberDescription
WEAPON_RANGE_MELEE 0

WEAPON_RANGE_RANGED 1

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
double double double float float64 double float Float
float float float float float32 float float Float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int32 int int int32 int integer Bignum or Fixnum (as required)
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int64 long int/long int64 long integer/string Bignum
uint32 Uses variable-length encoding. uint32 int int/long uint32 uint integer Bignum or Fixnum (as required)
uint64 Uses variable-length encoding. uint64 long int/long uint64 ulong integer/string Bignum or Fixnum (as required)
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int int32 int integer Bignum or Fixnum (as required)
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long int64 long integer/string Bignum
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int uint32 uint integer Bignum or Fixnum (as required)
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long uint64 ulong integer/string Bignum
sfixed32 Always four bytes. int32 int int int32 int integer Bignum or Fixnum (as required)
sfixed64 Always eight bytes. int64 long int/long int64 long integer/string Bignum
bool bool boolean boolean bool bool boolean TrueClass/FalseClass
string A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode string string string String (UTF-8)
bytes May contain any arbitrary sequence of bytes. string ByteString str []byte ByteString string String (ASCII-8BIT)