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 that rolls a random order

1687776590
Dustin
Forum Champion
Marketplace Creator
Hi guys. I am looking for a solution without API for a system that determines its initiative by randomly laying cards. There is one card in the deck for each SC or NPC. Normally (at the table) the cards needed would be searched in advance from the deck, shuffled and then randomly laid out. I don't see a solution for a pack of cards, because that would contain ALL cards and you would constantly draw the wrong cards. Several decks cannot be created logically either, because even the group of SC changes constantly. What I am looking for is an alternative solution or a better solution than my unfinished idea with a macro, which will probably come to nothing. Or is it possible to write a macro in such a way that it asks for a query ?{number of cards} and then takes that number, breaks it down into individual numbers and determines a random order. So: ?{number of cards} -> "4" -> 1,2,3,4 -> random throw -> 4,1,3,2 This way, the SL could at least put the cards down in advance by token and assign values according to the order and thus order the initiative from the result of the macro. Card 1 comes in second place, card 4 in first, etc. Or am I thinking completely wrong and someone has a good solution for something like this? As I said: without API. Thank you!
1687776740
GiGs
Pro
Sheet Author
API Scripter
The only way I think that you could do anything remotely like this is to use the API.