#M&M Macro #6: Player Overview

1 messages · Page 1 of 1 (latest)

autumn ice
#

This Macro whispers a message to the GM to give them a quick overview of all the players, their current Hero Points, Injury Levels, and any Active Effects they have on them. The basic structure was written by Freeze and I added some minor bits and made some formattng decisions.

//Player Overview by Freeze with minor tinkering by Devioushearts.

//This Macro whispers a message to the GM to give them a quick overview of all the players, their current Hero Points, Injury Levels, and any Active Effects they have on them. The basic structure was written by Freeze and I added some minor bits and made some formattng decisions.

// Player List with Hero Points, Injuries, and Active Effects
const message = game.users.players.reduce((acc, { character }) => {
  if (!character) return acc;

  // Get the active effects for the character
  const activeEffects = character.effects.map((effect) => effect.data.label).join(', ');

  acc += `<h3><strong>${character.name}</strong></h3>
    <p><strong>Hero Points:</strong> ${character.data.data.heroisme}, <strong>Injuries:</strong> ${character.data.data.blessure}</p>
    <p><strong>Active Effects:</strong> <em>${activeEffects}</em></p>`;

  return acc;
}, "<h2><strong>Player Overview</strong></h2>");

await ChatMessage.create({ content: message, whisper: [game.user] });```

Please enjoy gaming and I hope this helps! 🙂