Foundry: TOR 2e - Journey Events

Tables are from Strider Mode
 avatar
9littlebees
plain_text
2 years ago
526 B
358
Indexable
Never
// 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].data.text;

const content = `<div style="text-align:center">
      ${result1}
      </div>`;
ChatMessage.create({content});