TOR 2e Macros for Foundry v12

 avatar9littlebees
Public2 years ago5 snippets
Foundry-TOR-2e-Lore-Table-(FVTT-v12).js
Foundry-TOR-2e-Fortune-Table-(FVTT-v12).js
Foundry-TOR-2e-Revelation-Episode-(FVTT-v12).js
Foundry-TOR-2e-Journey-Events-(for-Foundry-v12).js
Foundry-TOR-2e-Telling-Table-(for-Foundry-v12).js
Tables are from Strider Mode
Foundry-TOR-2e-Lore-Table-(FVTT-v12).js
// MACRO NAME: LORE TABLE
// MACRO TYPE: script

// REQUIRED TABLES: Lore-Action, Lore-Aspect, Lore-Aspect

// copy and paste from below this line:

const table1 = await game.tables.getName("Lore-Action").roll();
const table2 = await game.tables.getName("Lore-Aspect").roll();
const table3 = await game.tables.getName("Lore-Focus").roll();
Tables are from Strider Mode
Foundry-TOR-2e-Fortune-Table-(FVTT-v12).js
// MACRO NAME: FORTUNE TABLE
// MACRO TYPE: script

// REQUIRED TABLES: Fortune, Ill-Fortune

// copy and paste from below this line:

let message;
async function printMessage(table) {
    let roll = await table.roll()
Tables are from Strider Mode
Foundry-TOR-2e-Revelation-Episode-(FVTT-v12).js
// MACRO NAME: REVELATION EPISODE
// MACRO TYPE: script

// REQUIRED TABLES: Revelation-Episode

// copy and paste from below this line:

const table1 = await game.tables.getName("Revelation-Episode").roll();
const result1 = table1.results[0].text;

Tables are from Strider Mode
Foundry-TOR-2e-Journey-Events-(for-Foundry-v12).js
// MACRO NAME: JOURNEY EVENTS
// MACRO TYPE: script

// REQUIRED TABLES: Journey-Events (itself a nested table containing these tables: Event-Misfortune, Event-Despair, Event-Ill-Choices, Event-Mishap, Event-Shortcut, Event-Meeting, Event-Joyful)

// copy and paste from below this line:

const table1 = await game.tables.getName("Journey-Events").roll();
const result1 = table1.results[0].text;

Tables are from Strider Mode
Foundry-TOR-2e-Telling-Table-(for-Foundry-v12).js
// MACRO NAME: TELLING TABLE
// MACRO TYPE: script

// REQUIRED TABLES: Telling-Certain, Telling-Likely, Telling-Middling, Telling-Doubtful, Telling-Unthinkable

// copy and paste from below this line:

let message;
async function printMessage(table) {
    let roll = await table.roll()