Advertisement Create a free account

[Script Update] GroupInitiative -- Added --adjust for all turns, added bonus to --reroll

1473947368
The Aaron
Forum Champion
API Scripter
GroupInitiative v0.9.20 New Commands --adjust &lt;number&gt; [minimum] -- Adjusts all initiative scores by a fixed amount to an optional minimum value. --reroll [bonus] -- I've added a bonus number to the --reroll command, allowing for a reroll of all initiative scores with an applied bonus. Examples: Reroll with a +10: !group-init --reroll 10 Adjust all scores down by 5: !group-init --adjust -5 Adjust all scores down by 10 to a minimum of 0: !group-init --adjust -10 0 Set all scores to 10: !group-init --adjust -10000 10 Adjust all scores up by 1d10 ( Note : the same value is applied to each score. i.e. the die is only rolled once ): !group-init --adjust [[1d10]] Enjoy! Git:&nbsp; <a href="https://github.com/shdwjk/Roll20API/blob/master/Gr" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Gr</a>... Previous Forum Post: <a href="https://app.roll20.net/forum/permalink/1908986/" rel="nofollow">https://app.roll20.net/forum/permalink/1908986/</a> Support my work on If you use my scripts, want to contribute, and have the spare bucks to do so , go right ahead. However, please don't feel like you must contribute just to use them! I'd much rather have happy Roll20 users armed with my scripts than people not using them out of some sense of shame. Use them and be happy, completely guilt-free! Disclaimer: This Patreon campaign is not affiliated with Roll20; as such, contributions are voluntary and Roll20 cannot provide support or refunds for contributions.
Does that get pushed to the library version, any delay?
1474027895
The Aaron
Forum Champion
API Scripter
Yes to both questions. It usually take about a week for it to get merged into the Roll20 repo. I think it's a Monday/Tuesday sort of activity.&nbsp;
1474991402

Edited 1474991704
Hey im loving this API! Quick question though, im playing D&D 5e where several classes get advantage on initiative rolls (roll 2d20 and keep the higher of the two). I cannot figure out for the life of me how to set up group-init to calculate everyones initiative normally, but give the player with advantage a different dice value. Closest I got was to set a dice count attribute but that just adds a second dice, doesnt drop the lower of the two. Is there any way to make this work or would it require new options to get added?
1475172677
The Aaron
Forum Champion
API Scripter
This is something I'm going to look into soon.&nbsp;
Easier solution would be to give them the +5 default for now.
Ran a session last night with just 2 people as others were busy, but it allowed us to slow a bit and use the tools more carefully. Using your beta copy is working well for ShadowRun. The only thing it can't do is on the rare occurrence someone has more than 10 initiative than everyone else they get two goes in a row at the start of the turn, rather than at the end of the turn where the system would give it to them. This is a minor issue. The reroll and sorting are working great. &nbsp;The other macro - Movement Tracker, seems to tie in well as long as you avoid a few timing issues. &nbsp;So all in all things are working really good. I did ask about having a score modifier for the selected token, rather than the active initiative token, players can take actions out of order and lose 5 or 10 init score because of it (similar to an opportunity action), but you can do this manually easily enough. Thanks for all the help.