---
title: "Note Widgets"
description: "Various widgets allow you to write directly roll formulas or create ones that you can then reference."
canonical: "https://www.questportal.com/documentation/jjW1NFm6Nq/note-widgets"
section: "Documentation / Dice / Roll Formulas"
source: "Quest Portal documentation"
version: 237
---

# Note Widgets

Various widgets allow you to write directly roll formulas or create ones that you can then reference.

## Roll Button

Roll buttons are inline buttons, `1d20`, that have a single roll formula and when the button is clicked the roll formula is evaluated or 'rolled'.

## Modifier

Srength: 15Strength Modifier: floor(( @{g_0F-S}[Srength]  - 10)/2)

Modifiers are more complex way to define a roll formula. A modifier defines two roll formulas, the value and the 'roll formula'. It is possible to reference the value in other formulas by using the modifier name. The 'roll formula' is the formula that is used when 'clicking' on the modifier.

The example above defines the strength attribute and has only the value field of 15. The Strength Modifier has the value \`floor((Strength - 10)/2)\` and the roll formula \`1d20 + self\` therefore calculated value is 2 and when the modifier is clicked the  will roll a 1d20 and add 2 to the result. The reference 'self' is only accessible within a roll formula modifier and allow referencing the value field.

## Collection Modifier

These work the same way as normal modifiers except that the name is defined by the combination of the row name + column name.

**Attributes**

| Name | Score | Modifier |
| --- | --- | --- |
| Strength | 15 | floor(( @{\_2cOum}\[Strength, Score\] - 10)/2) |

## Points

Health: 10/10

This widget does not allow writing a roll formula but it is possible to reference the value by using the widget name.

## Slots

Spell Slots: 5 slots

Same with slots. The Slots widget tracks the number of 'checks' therefore if a slots widget has 3 checked slots then the value is 3. If halves are enabled (from the three dot menu) then each half check is 0.5.

---

Part of the [Quest Portal documentation](https://www.questportal.com/documentation.md) (Documentation / Dice / Roll Formulas). HTML version: <https://www.questportal.com/documentation/jjW1NFm6Nq/note-widgets>.
