CyborgLlama
LOELeague of Extraordinary FoundryVTT Developers
•Created by CyborgLlama on 1/12/2025 in #system-development
Trouble using actor.update with a DocumentID field
Hi All,
I have a link from on character to another with a doucment ID field.
When I drop on actor onto the other, I want to make the link.
This is my code snippet (irrelevant stuff cut to hopefully make it easy to read).
async _onDropActor(event, data) {
const uuid = data.uuid;
const droppedActor = await fromUuid(uuid);
const droppedActorId = droppedActor.id;
this.actor.update("system.placeholderID", droppedActorId);
I get this error
foundry-esm.js:11581 Uncaught (in promise) TypeError: Cannot create property '_id' on string 'system.placeholderID'
I have tried a few configurations / different things. What am I missing?
Thanks in advance
3 replies