Inline Rolls Reference
Last updated
Last updated
The system includes a helpful dialog to show common attributes used in inline rolls. To access it, go to the Settings tab of Foundry's right sidebar and then click the Attributes and Inline Rolls Reference button to open the dialog. It shows the most common properties used by powers in the system's included compendiums, along with an example attack roll and damage roll for martial characters.
Inline rolls can be placed inside any text or text editor field in powers you add to your character or world, along with monster actions. The parsing for inline rolls happens in chat messages during render, so you can even put them directly in the chat box!
Before we go into detail on the available attributes, here's a few examples:
Attack: [[d20+@str.mod+@std+@atk.m.bonus]] vs. AC
What that's saying is d20
+ Strength modifier + standard bonuses (level, escalation die, attack penalties) + melee magic item bonuses.
Hit: [[@wpn.m.dice+@str.dmg+@atk.m.bonus]] damage
Miss: [[@lvl]] damage
Your character sheet has a setting where you can define the weapon dice associated with it, such as a d10, an the @wpn.m.dice
attribute will be your damage dice per level, such as 5d10 for a 5th level fighter with a heavy greatsword. Similarly, @str.dmg
will be your strength bonus multiplied per tier, such as +8
for a strength of 18 at 5th level.
But what if you have something like the cleric's Hammer of Faith ability and need to use a different damage die? There's also a @wpn.m.die
attribute that will give you a single die, so you could do this to do your level in a different damage die:
Hit: [[(@lvl)@wpn.m.die+@str.dmg+@atk.m.bonus]] damage
Hit: [[(@lvl)d12+@str.dmg+@atk.m.bonus]] damage
You can also perform basic math in your rolls, such as [[2d10*10]]
or [[floor(d12/2)]]
If you need to select between two ability scores, you can use min()
to select the lower, or max()
to select the higher. For example:
[[d20+max(@str.mod,@dex.mod)+@std+@atk.m.bonus]]
for a ranger's melee attack roll.
Attribute | Description |
| Ability score modifiers, such as +5 for a 20. Variants:
|
| Ability score modifiers multipled by tier, such as +10 for a score of 20 at 5th level. Variants:
|
| Your level |
| The current escalation die value for the current combat/scene |
| Your initiative bonus |
| Standard bonuses for attack rolls. This is calculated as |
| A number that can be used for cases where you need to multiply by tier. |
| The single die associated with your melee damage rolls, such as Variants:
|
| The total dice per level associated with your melee damage rolls, such as Variants:
|
| The item bonus for your magic item's attack and damage rolls. Variants:
|