We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context; in Foundry v12.
Issue: Having trouble catching the skillcheck result within a macro. The result is injected into the chat as expected.
(async () => { const roll = await token.actor.rollSkill({skill:'nat', ability:'int'}, {fastForward: true}); ui.notifications.warn("The result is["+ roll.total +"]."); })();
'roll' returns output such as ["1d20 + 2 + 1"] but 'roll.total' is undefined.
(async () => { await token.actor.rollSkill({skill:'nat', ability:'int'}, {fastForward: true}, async (roll) => { ui.notifications.warn("The result is ["+ roll.total +"]"); }); })();
However the anonymous function doesn't execute, but references suggest this should work.
The text was updated successfully, but these errors were encountered:
It returns an array of rolls.
const rolls = await token.actor.rollSkill({skill:'nat', ability:'int'}, {configure: false}); ui.notifications.warn(`The result is [${rolls[0].total}].`);
Sorry, something went wrong.
No branches or pull requests
Context; in Foundry v12.
Issue: Having trouble catching the skillcheck result within a macro. The result is injected into the chat as expected.
'roll' returns output such as ["1d20 + 2 + 1"] but 'roll.total' is undefined.
However the anonymous function doesn't execute, but references suggest this should work.
The text was updated successfully, but these errors were encountered: