#Macros for SWADE

1 messages ยท Page 1 of 1 (latest)

steel meadow
#

Macro for Summon Ally Mirror Self

lost steeple
#

Nice. Glad that worked out. Technically, it'll need to add Construct and Fearless ability items to the Actor as well.

steel meadow
#

I'm also trying fix a bug

#
async function createClone(selectedPCID) {
  const sourceData = game.actors.get(selectedPCID).toObject();


  sourceData.type = "npc";
  sourceData.system.wildcard = false;
  sourceData.name = `Mirror ${sourceData.name}`;

  const skills = sourceData.items.filter((i) => i.type === "skill");
  for (const skill of skills){
    if (skill.system.die.sides > 4) skill.system.die.sides = skill.system.die.sides - 2;
  }

  const output = await Actor.create([sourceData]);

  output[0].sheet.render(true)
}

Actor.create([sourceData]); is generating:

lost steeple
#

I can't as I have other things I'm working on, but #macro-polo could help.

Short version, create a new ability item with the appropriate name and add it to the actor data. They don't have any real mechanical effect in the system, but they're good reminders for the GM and players.

steel meadow
#

tks

lost steeple
#

No problem ๐Ÿ™‚

steel meadow
steel meadow
#

fix

oak karma
silent prairie
#

what is the future for this module ? (v11 compliance)