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 add players to the Init tracker with specific init values

In my D&D 5e campaign, I am utilizing the optional initiative rule from page 274 of the DMG to  determine the initiative order for my group in certain circumstances outside of combat, i.e for movement.  Is it possible to have a macro that will populate the tracker with each character and a specific predetermined init value? Ideally, I'd like to run the macro and have it fill in all my players' characters with their specific init value by clicking one button on the macro bar. Is this possible? What would the syntax for the macro command for a character look like? Thanks for any help
If you are using Dexterity like the Variant Rules, then you could use this: /em @{selected|token_name} rolls [[@{Selected|dexterity_mod} &{tracker}]] for initiative! It will insert the player into the Initiative Tracker with their Dexterity Modifier. or this: /em @{selected|token_name} rolls [[@{Selected|dexterity_base} &{tracker}]] for initiative! It will insert the player into the Initiative Tracker with their Dexterity Score. (Both will also say the value in chat)
1671297904

Edited 1671297948
I'm not sure which variant rule you refer to, but if you want to set an explicit number, here's a simple macro to do it: Setting @{selected|token_name}  initiative to [[ ?{Init|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20} &{tracker} ]] Just select the token first, then run the macro as a token-bar macro and it will pop up a dialog asking for a number from 0 to 20, which will then be set on the tracker next to the selected token's name. It also puts a note in chat to tell everyone what was set. If you don't want people to see the chat message (they can still see the number in the tracker window), you can prefix it with /w gm as in /w gm Setting @{selected|token_name}  initiative to [[ ?{Init|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20} &{tracker} ]] edit: fixed typo
The Foegetter said: If you are using Dexterity like the Variant Rules, then you could use this: /em @{selected|token_name} rolls [[@{Selected|dexterity_mod} &{tracker}]] for initiative! It will insert the player into the Initiative Tracker with their Dexterity Modifier. or this: /em @{selected|token_name} rolls [[@{Selected|dexterity_base} &{tracker}]] for initiative! It will insert the player into the Initiative Tracker with their Dexterity Score. (Both will also say the value in chat) Thanks. Yes, I was using a similar simple macro much like your example. But it is tedious to use as I need to run it 8 times; once on each selected token. My goal is to have one macro that will add all player tokens on the map to the tracker with the correct values.  I did find an API script, "Initiative Assistant" that functions in that exact manner, but it is older javascript code that hasn't been updated in 2 years, and so no longer works. I messaged the code author and am awaiting an update.
1671315027
Andrew R.
Pro
Sheet Author
You could easily write a ScriptCards macro to do that. It can add custom turns to the Turn Tracker. I posted an example in the current ScriptCards thread for a monster that has multiple turns.  I suspect you could also do it with the MetaScripts like Muler & Fetch, etc.,