100% found this document useful (1 vote)
1K views5 pages

Macro To Roll Exalted 3e Die in Foundry VTT

This document contains macros for rolling dice pools in Exalted 3e using Foundry VTT. It provides different macros with variations on the dice rolled (double 10s, 9s, 8s, or 10s with 1s rerolled) and target number (all 7) to resolve actions. The macros display the number of successes rolled and allow input of automatic successes to calculate the total.

Uploaded by

tcherban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views5 pages

Macro To Roll Exalted 3e Die in Foundry VTT

This document contains macros for rolling dice pools in Exalted 3e using Foundry VTT. It provides different macros with variations on the dice rolled (double 10s, 9s, 8s, or 10s with 1s rerolled) and target number (all 7) to resolve actions. The macros display the number of successes rolled and allow input of automatic successes to calculate the total.

Uploaded by

tcherban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

//Macro to roll Exalted 3e die in Foundry VTT//

//Basic rolls, double 10s. TN 7. Copy everything below as a new macro.//

new Dialog({

title: "Rolls",

content: `<div>Dice Pool: <input name="diceRolls" style="width:50px"/></div>

<div>Automatic Successes: <input name="aS" style="width:50px"/></div>`,

buttons: {

roll: {

label: "Roll!",

callback: async (html) => {

let diceRolls = parseInt(html.find("[name=diceRolls]")[0].value);

let auto = parseInt(html.find("[name=aS]")[0].value);

let rolls = new Roll(`${diceRolls}d10`).roll();

let successes = Object.values(rolls.terms[0].results).reduce((acc, r) => acc += r.result < 7 ? 0 :


r.result < 10 ? 1 : 2, 0)

await ChatMessage.create({content: `You rolled ${successes} successes and ${auto}


automatic successes.

Total Successes: [[${successes} + ${auto}]].`})

rolls.toMessage();

},

default: "roll"

width: 125

}).render(true);

//DONT Double 10s. TN 7//

new Dialog({
title: "Rolls",

content: `<div>Dice Pool: <input name="diceRolls" style="width:50px"/></div>

<div>Automatic Successes: <input name="aS" style="width:50px"/></div>`,

buttons: {

roll: {

label: "Roll!",

callback: async (html) => {

let diceRolls = parseInt(html.find("[name=diceRolls]")[0].value);

let auto = parseInt(html.find("[name=aS]")[0].value);

let rolls = new Roll(`${diceRolls}d10`).roll();

let successes = Object.values(rolls.terms[0].results).reduce((acc, r) => acc += r.result < 7 ? 0 :


r.result < 10 ? 1 : 1, 0)

await ChatMessage.create({content: `You rolled ${successes} successes and ${auto}


automatic successes.

Total Successes: [[${successes} + ${auto}]].`})

rolls.toMessage();

},

default: "roll"

width: 125

}).render(true);

//Double 9s. TN 7//

new Dialog({

title: "Rolls",

content: `<div>Dice Pool: <input name="diceRolls" style="width:50px"/></div>

<div>Automatic Successes: <input name="aS" style="width:50px"/></div>`,


buttons: {

roll: {

label: "Roll!",

callback: async (html) => {

let diceRolls = parseInt(html.find("[name=diceRolls]")[0].value);

let auto = parseInt(html.find("[name=aS]")[0].value);

let rolls = new Roll(`${diceRolls}d10`).roll();

let successes = Object.values(rolls.terms[0].results).reduce((acc, r) => acc += r.result < 7 ? 0 :


r.result < 9 ? 1 : 2, 0)

await ChatMessage.create({content: `You rolled ${successes} successes and ${auto}


automatic successes.

Total Successes: [[${successes} + ${auto}]].`})

rolls.toMessage();

},

default: "roll"

width: 125

}).render(true);

//Double 8s. TN7 //

new Dialog({

title: "Rolls",

content: `<div>Dice Pool: <input name="diceRolls" style="width:50px"/></div>

<div>Automatic Successes: <input name="aS" style="width:50px"/></div>`,

buttons: {

roll: {

label: "Roll!",
callback: async (html) => {

let diceRolls = parseInt(html.find("[name=diceRolls]")[0].value);

let auto = parseInt(html.find("[name=aS]")[0].value);

let rolls = new Roll(`${diceRolls}d10`).roll();

let successes = Object.values(rolls.terms[0].results).reduce((acc, r) => acc += r.result < 7 ? 0 :


r.result < 8 ? 1 : 2, 0)

await ChatMessage.create({content: `You rolled ${successes} successes and ${auto}


automatic successes.

Total Successes: [[${successes} + ${auto}]].`})

rolls.toMessage();

},

default: "roll"

width: 125

}).render(true);

//Double 10s. Reroll 1s. TN 7 //

new Dialog({

title: "Rolls",

content: `<div>Dice Pool: <input name="diceRolls" style="width:50px"/></div>

<div>Automatic Successes: <input name="aS" style="width:50px"/></div>`,

buttons: {

roll: {

label: "Roll!",

callback: async (html) => {

let diceRolls = parseInt(html.find("[name=diceRolls]")[0].value);

let auto = parseInt(html.find("[name=aS]")[0].value);


let rolls = new Roll(`${diceRolls}d10x=1`).roll();

let successes = Object.values(rolls.terms[0].results).reduce((acc, r) => acc += r.result < 7 ? 0 :


r.result < 10 ? 1 : 2, 0)

await ChatMessage.create({content: `You rolled ${successes} successes and ${auto}


automatic successes.

Total Successes: [[${successes} + ${auto}]].`})

rolls.toMessage();

},

default: "roll"

width: 125

}).render(true);

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy