#pc-roll-for-not-owned-token
1 messages · Page 1 of 1 (latest)
🤔 calling a roll function for another token?
I want the player to select his token and target another one.
He'll roll the dice from his token and also from the target token.
I can't trigger the roll function as a player
It's swade system roll fucntion
const targetToken = game.user.targets.values().next().value
targetToken.someFunction(args)
But if the swade system itself requires the caller to be an owner, I can't dodge around that. Warp Gate can modify unowned tokens/actors, but can't modify internal system calls.
I'm trying to use warpgate. But, with this I couldn't add an AE.
myActiveEffect = { // AE!!!
icon: icon,
label: aename,
changes: [{
key:aekey,
value: aevalue, mode: aemode
}]
};
for (let tokenD of Array.from(game.user.targets)) {
let activeEffectClass = getDocumentClass("ActiveEffect");
const output = await warpgate.mutate(tokenD.document, myActiveEffect, {}, {permanent: true});
}
@craggy gull Can you help make warpgate add an AE?
Yea, head up to #macro-polo . There was a recent discussion of that. I'll be available a bit later and can help if you don't some it before then. Also take a look at the mutating goblin example on the warpgate wiki