#Macros for SWADE
1 messages ยท Page 1 of 1 (latest)
Nice. Glad that worked out. Technically, it'll need to add Construct and Fearless ability items to the Actor as well.
Can you help with that?
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:
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.
tks
No problem ๐
SWIM already has a way to summon a mirror self. But thanks.
what is the future for this module ? (v11 compliance)