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

Roll twice and choose what suits u best in a macro

1652308748
I got a player that is allowed to roll initiative with advantage and choose  the result that he likes best. That dies not necessarily need to bee the higher result. I tried to do this with roll queries, but that did not seem to work. How would I do that? 
1652331021
vÍnce
Pro
Sheet Author
I would probably just duplicate(copy and paste) the character's token and just roll initiative for each.  Then let the player decide which one to keep.
1652332111
GiGs
Pro
Sheet Author
API Scripter
You can't do this with a macro, because the roll result is displayed only at the end. You can't give a player the chance to see the rolls and then choose the final result. Nor can you refer to the result of a previous macro. Vince's suggestion seems like a reasonable compromise.
1652341482
Would I be able to do something like that with API-access? Maybe if I split the functionality a little like this: I write a macro that rolls initiative twice and offers clickable macros to set the initiative in the chat? The player could then simply click on the result he wants....
1652343827
GiGs
Pro
Sheet Author
API Scripter
Yes, you could do that with the API if you were a pro subscriber. But writing API scripts is a lot more complex than creating macros. The ScriptCards API Script is probably able to do it, and learning how to use that might be the best bet. If you are willing to print the two results in chat, and let the player click a button for the one they want to you, I don't think you need the API.
1652431452
I'm a cs guy, so programming is not that daunting for me :-D Could you hint me, how i can print a result and use the same result for the button in chat?
1653135178

Edited 1653135266
If you have the compendium, you can drag and drop, on the concerned character's sheet, the "feral instinct" feat (in the other options and features tab, or typing feral in the search bar of teh compendium) that does that automatically.