Closed LudoBermejoES closed 1 week ago
Adding id to the button to support this kind of macro:
if(!canvas.tokens.controlled.length) return; const listOfNames = canvas.tokens.controlled.map(o => o.name); const button = document.getElementById('StatBlockImporterButton'); button.click(); setTimeout(() => { const textArea = document.getElementById('statBlock'); textArea.value = listOfNames.join(','); }, 1000);
Adding id to the button to support this kind of macro:
if(!canvas.tokens.controlled.length) return; const listOfNames = canvas.tokens.controlled.map(o => o.name); const button = document.getElementById('StatBlockImporterButton'); button.click(); setTimeout(() => { const textArea = document.getElementById('statBlock'); textArea.value = listOfNames.join(','); }, 1000);