id | title | is_entry_point |
---|---|---|
dr-wiki-dice-macros |
Dungeon Revealer Dice Macros |
false |
You can embed dice rolls by using a dice notation formula surrounded by square brackets. Besides using them in macros, you can also simply type dice rolls into the chat.
Examples of dice rolls:
[1d20]
[3d6]
[(1d4 + 1) * 3 ]
[1d9000]
When toggeling from the editor mode back into the rendered note mode the above macro will be rendered as a clickable button with the text Attack with Axe
.
Click that button for sending the contents of the message
attribute (Attack with Axe [1d20] makes [2d6] Damage
) to the chat!
For more complex templates it is encouraged to use a template. Templates can be declared once per note and re-used with different variables:
A template can be declared by using the Template
tag. Make sure to set a unique id
attribute that can later be used for referencing the template.
Inside the template you can use the following html tags:
- div (Allowed attributes:
style
) - span (Allowed attributes:
style
)
As well as the following custom components for structuring content:
- Box (Box with grey border and rounded corners)
- BoxRow (Horizontal row)
- BoxColumn (horizontal row column)
Variables can bes set by using the variable name surrounded by curly brackets {{myVariable}}
.
The template can be used by setting the templateId
attribute to the Template id
. In addition variable values can be passed by setting them as attributes on the ChatMacro
and prefixing them with var-
.
E.g. the attribute for substituting the myVariable
variable is var-myVariable="My Custom Value"
.
This allows easily defining triggers for multiple skill checks or weapon attacks.