Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
How would one go about setting a constant initiative role. (5e)
Post Body

I'm running a session with modrons and I want them to always roll a 10 on initiative. So far, I've tried various combinations of passive effects using the following keys:

  • data.attributes.init.bonus
  • data.attributes.init.total
  • data.attributes.init.value

But these only seem to modify the d20 roll after it happens, when what I need is to set the final result. Is this something that can be done with a macro?

Mid-write edit. I seem to have come up with a macro that can do something like this, but it kind of works. Anyone have suggestions on how to improve it.

(async () => {
    if (canvas.tokens.controlled.length === 0) return ui.notifications.error("Choose tokens to roll for");
    await canvas.tokens.toggleCombat();
    let chosenTokens = canvas.tokens.controlled;
    let initiatives = chosenTokens.map(t => {
        let chosenActor = t.actor;

        let roll = new Roll(`d20min10max10`);
        roll.toMessage({speaker: ChatMessage.getSpeaker({token: t})});
        let combatantId = game.combat.combatants.find(c => c.name === t.name).rollInitiative('10');
    });
    await game.combat.updateCombatants(initiatives);
})();

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
45,596
Link Karma
14,091
Comment Karma
31,386
Profile updated: 5 days ago
Posts updated: 8 months ago
GM

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago