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 REQUEST] Random initiative between highest and lowest initiative

Hi everyone, I'm GMing a game where i roll all character initiative, and only when they encounter ennemies i add them to the turn order. So i was wondering if someone could code a macro who random the initiative of a selected token between the highest and lowest initiative already in the turn order ? Also it seems the turn order become invisible for my players when i change the map, what is the best way to change the map for my players ? Thanks for reading.
1441562777
The Aaron
Roll20 Production Team
API Scripter
There isn't a way for a macro to get the min and max numbers from the turn tracker. &nbsp;You could prompt for them: [[ ?{min|0}+1d(?{max|20}-?{min|0}) &{tracker}]] You'd need to have the token you want to add selected first. As for the turn order being invisible, Turn Order is tied to tokens, tokens are tied to pages. &nbsp;When you take the players to a new page, they won't see the turn order entries for the tokens on another page. &nbsp;The only way around this is to use custom turnorder entries, as they are not tied to a token/page. See: &nbsp; <a href="https://wiki.roll20.net/Turn_Tracker#Turn_Tracker_" rel="nofollow">https://wiki.roll20.net/Turn_Tracker#Turn_Tracker_</a>... With the API, you could write a script that detects the page change and swaps out the token ids for tokens on the new page with the same character represents entry.
Hmm i will just add custom item for the turn order issue, as im not really good with API. Is there a way to randomise the turn order except some, like custom items for example? Could go with an API for this one. To understand, i have a lot of ennemies in battles that i add with -left click- add to turn order- and i space them manually between my players. This takes lots of time and cut the action at the start of encounters :/
1441577430
The Aaron
Pro
API Scripter
I have a script called GroupInitiative that can roll initiative for all selected tokens, or reroll if they are in the initiative, or even reroll all the ones in the initiative without selecting them: &nbsp; <a href="https://app.roll20.net/forum/permalink/1908986/" rel="nofollow">https://app.roll20.net/forum/permalink/1908986/</a>