Formula Reference
Every value a formula can read with an @ reference, and which kinds of actor have it. For how to write formulas, see Formulas & References.
In the tables, Yes means the actor has the value. Late means the actor has it, but the system calculates it after some rules have already resolved their formulas (see Values calculated late). An empty cell means the actor does not have the value.
Shortcuts
| Reference | Value | Character | NPC, minion, solo monster |
|---|---|---|---|
@level | Character level. | Yes | |
@key | The highest modifier among the character's class key stats. | Yes | |
@strength, @dexterity, @intelligence, @will | Stat modifiers. | Yes | |
@strengthSave, @dexteritySave, @intelligenceSave, @willSave | Saving throw modifiers. | Yes | Late |
@arcana, @examination, @influence, @insight, @might, @lore, @naturecraft, @perception, @finesse, @stealth | Skill modifiers. | Yes |
Full paths
Write any of these with @ in front, for example @attributes.wounds.value.
<stat>is one of:strength(Strength),dexterity(Dexterity),intelligence(Intelligence),will(Will).<skill>is one of:arcana(Arcana),examination(Examination),influence(Influence),insight(Insight),might(Might),lore(Lore),naturecraft(Naturecraft),perception(Perception),finesse(Finesse),stealth(Stealth).
| Reference | Value | Character | NPC | Minion | Solo monster |
|---|---|---|---|---|---|
@abilities.<stat>.baseValue | Stat modifier as entered on the sheet, before bonuses. | Yes | |||
@abilities.<stat>.bonus | Bonus to the stat modifier from rules. | Yes | |||
@abilities.<stat>.mod | Stat modifier, with every bonus included. Same as @<stat>. | Yes | |||
@attributes.armor.value | Armor value, after armor, shields and Armor Class rules. | Late | |||
@attributes.dyingActionLimit | Actions the character can take while Dying. | Yes | |||
@attributes.hp.bonus | Bonus to maximum hit points entered on the sheet. | Yes | |||
@attributes.hp.max | Maximum hit points. | Yes | Yes | Yes | Yes |
@attributes.hp.temp | Temporary hit points. | Yes | Yes | Yes | Yes |
@attributes.hp.value | Current hit points. | Yes | Yes | Yes | Yes |
@attributes.initiative.mod | Initiative modifier. | Late | |||
@attributes.movement.burrow | Burrowing speed. | Yes | Yes | Yes | Yes |
@attributes.movement.climb | Climbing speed. | Yes | Yes | Yes | Yes |
@attributes.movement.fly | Flying speed. | Yes | Yes | Yes | Yes |
@attributes.movement.swim | Swimming speed. | Yes | Yes | Yes | Yes |
@attributes.movement.walk | Walking speed. | Yes | Yes | Yes | Yes |
@attributes.wounds.bonus | Bonus to maximum wounds, for example from a Max Wounds rule. | Yes | |||
@attributes.wounds.max | Maximum wounds: 6 plus @attributes.wounds.bonus. | Late | |||
@attributes.wounds.value | Current wounds. | Yes | |||
@currency.cp.value | Copper pieces carried. | Yes | |||
@currency.gp.value | Gold pieces carried. | Yes | |||
@currency.sp.value | Silver pieces carried. | Yes | |||
@details.level | Monster level. Stored as text such as 1/2, so put it in parentheses when you divide by it: 10 / (@details.level). | Yes | Yes | Yes | |
@inventory.bonusSlots | Extra inventory slots. | Yes | |||
@inventory.totalSlots | Total inventory slots: 10 plus STR plus bonus slots. | Late | |||
@inventory.usedSlots | Inventory slots in use. | Late | |||
@resources.highestUnlockedSpellTier | Highest spell tier the character can cast. | Late | |||
@resources.mana.baseMax | Base part of maximum mana, before class mana is added. | Yes | |||
@resources.mana.current | Current mana. | Yes | |||
@resources.mana.max | Maximum mana. | Late | |||
@resources.mana.value | Current mana. Same as @resources.mana.current. | Late | |||
@savingThrows.<stat>.bonus | Bonus to the saving throw from rules or the sheet. | Yes | Yes | Yes | Yes |
@savingThrows.<stat>.mod | Saving throw modifier. Same as @<stat>Save. | Yes | Late | Late | Late |
@skills.<skill>.bonus | Bonus to the skill from rules. | Yes | |||
@skills.<skill>.mod | Skill modifier, with every bonus included. Same as @<skill>. | Yes | |||
@skills.<skill>.points | Skill points spent on the skill. | Yes |
Values calculated late
The system prepares an actor in steps, and rules resolve their formulas at different steps.
- Early rules do not see late values. Stat Bonus, Skill Bonus, Save Bonus, Wounds, Hit Dice, Increment Hit Dice and Healing Potion Bonus resolve their formulas before the values marked Late are calculated, so they do not get the correct number from them.
- Later rules see most late values. Armor Class and Initiative Bonus resolve after them. The exception is
@attributes.armor.value, which is calculated after every rule. - Activation formulas are safe. Formulas in an item's activation (damage, healing, and similar) resolve when the item is used, after the actor is fully prepared. Every value on this page is safe there.
- Values marked Yes can still change. Other rules can change a value after an early rule has read it, for example a stat modifier or a speed. An early rule sees the value as it is at that moment.
- Calculate it yourself when you can. In an early rule, write
6 + @attributes.wounds.bonusinstead of@attributes.wounds.max. The bonus includes only the Wounds rules that have already run.