Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Macro to roll initiative for each token selected?

I have this macro for individual tokens: @{selected|character_name}'s initiative is [[1d20 + @{selected|dexterity_mod}&{tracker}]] But is it possible to have a macro that does this for every token selected?
1548967540

Edited 1548967556
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
There is a script that does this (Group Init), but it requires a Pro subscription. Beyond that, it needs to be once per token.
How would i implement that if i had a pro subscription?
<a href="https://wiki.roll20.net/API:Use_Guide" rel="nofollow">https://wiki.roll20.net/API:Use_Guide</a> From your game's Scripts page use the dropdown "One Click Script Installer" to search for GroupInitiative You can then read about the script and install it to your game if you desire. Make sure you set the applicable BONUS stat &nbsp;as per the script instructions.
1548982053

Edited 1548982391
EDIT: &nbsp;Never mind, i got it! Evan said: <a href="https://wiki.roll20.net/API:Use_Guide" rel="nofollow">https://wiki.roll20.net/API:Use_Guide</a> From your game's Scripts page use the dropdown "One Click Script Installer" to search for GroupInitiative You can then read about the script and install it to your game if you desire. Make sure you set the applicable BONUS stat &nbsp;as per the script instructions. I've been messing around with it for like 30 minutes and i can't get it to work for DnD 5e. Right now it's adding their entire dex score to their initiative, not just the dex modifier. I set the Bonus Stat Group &nbsp;to be dexterity|current. It says that i can use !group-init -- Stat-DnD&nbsp; dexterity|current &nbsp;to calculate the bonus as if the value were a DnD Stat. But i keep getting: Not a valid command:&nbsp; Stat-DnD
1548983225

Edited 1548983278
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That script has a wiki page which includes common setups . For the Roll20 5e DnD sheet, put these commands in chat: !group-init --del-group 1 !group-init --add-group --bare initiative_bonus And welcome to Pro status! Once you start playing with all the marvelous toys, you'll never want to go back.