#how do i DM you, disc wont open a chat
1 messages · Page 1 of 1 (latest)
Run that script with "Xvart Warlock (Nezzmir)" as the name, in case you didn't already
i did
Full name, not just "Nezzmir"?
yup
Weird - it works for me when I do that
Xvart Warlock (Nezzmir)
const actor = game.actors.getName("Xvart Warlock (Nezzmir)");
for (const item of actor.items) {
const casts = item.system.activities?.getByType("cast") ?? [];
for (const cast of casts) {
const spell = cast.cachedSpell ?? fromUuidSync(cast.spell.uuid);
if (!spell) await cast.delete();
}
}
it lets you open the sheet?
Yeah
hm
lemme try again
shit, i gotta get ready for work. I'll give this a go later and let you know
thanks for the help
nope
Hm alright, last ditch, I'll export the version I have that seems to be working and send it over
what version of 5e are you running
4.3.4
aright, I'll give it a whirl after work
thanks again
if that doesn't work, I'm just going to chalk it up to mysterious migration issues. the NPC is dead anyway, i was just trying to look at what loot i left on it
Yeah I think it should work