Journey Events - Edit
// 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 result0 = table1.results[0].icon; const result1 = table1.results[0].getChatText(); const content = `<div style="text-align:left"> <img class="result-image" src="${result0}" style="width:32px;height:32px;float:left;margin-right:15px;margin-bottom:10px;"> ${result1} </div>`; ChatMessage.create({content});
Leave a Comment