#Roll NPC Init
1 messages · Page 1 of 1 (latest)
this definitely adds all selected to the tracker and rolls for all non-player assigned actors
for ( let token of canvas.tokens.controlled) {
if (!token?.combatant) await token.toggleCombat()
}
game.combat.rollNPC({messageOptions: {rollMode: 'gmroll'}})
Very odd - it doesn't for me. When I ran the code with only npcs selected and no pcs in the tracker it works otherwise it just adds them to the tracker
ah ok i'll do a find the culprit after the session and see if it fixes it
because that doesn't
for me for some reason
try just with all disabled first, as a sanity check (when you can)