Published
Edited
Jul 27, 2021
1 star
Also listed in…
API
Insert cell
Insert cell
md` Documentation https://greenimp.github.io/rpg-dice-roller/guide/#how-it-works`
Insert cell
dr = {
const dr = new roll.DiceRoll('4d8+1');
return dr
}
Insert cell
dr.output
Insert cell
dr.total
Insert cell
roller = {
let roller = new roll.DiceRoller()
yield roller
roller.roll('4d6', '2d10 * 3', '4d20k1');
console.log('log',roller.log)
}
Insert cell
{
let foo = '';
for(let i=0; i<roller.log.length; i++){
foo+=` <div> ${roller.log[i]} </div> `
}
yield html`${foo}`
}
Insert cell
roll = require("rpg-dice-roller")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more