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

Making a chat menu/macro with multiple choice

I'm trying to make either a chat menu or a macro that, when used, will present the player with buttons allowing them to pick which of their stat values are being added to a roll. I've been led around in circles by the wiki and most of the forum topics that seem even close to what I want are from game systems that require so much extra baggage that trying to pull what I want out of their code breaks everything. I just need a menu/option system that comes up and offers the player to add one of their stats to a 2d6 roll so that diving into the default sheets isn't a game-stopper. Can someone please, in very simple and beginner terms, explain how I would do this?
1643504469
Andrew R.
Pro
Sheet Author
It would help if you told us the game system and character sheet, if any, that you are using. 
I'm using the default attribute/ability sheets for a pbta system game - I've got all the other rolls working fine but there's one type of roll that, depending on the situation, could use any stat added to a 2d6.
1643506224
GiGs
Pro
Sheet Author
API Scripter
Andrew was asking because we need to know what code a roll for that system uses, what the attribute names are, etc. But the general rule is, you need a query in your roll, that has a label and attribute for each stat. So you'd start with a button like this [Attribute Roll](!
#MACRONAME) There's a bunch of different syntaxes you can use for the roll button, the above is one for a macro you have created. Then in the macro named MACRONAME, you would include a query for the stats. It might look like this: /roll 2d6+?{Choose Which Stat| Cool,@{selected|cool}| Hot,@{selected|hot}} The selected part means a token representing a character must be selected when you click the button. For chat buttons, you need someway to tell roll20 which character to take the attributes from.
This worked perfectly. Thank you for taking the time and breaking it down for me. This was similar to what I saw on the wiki but not explained nearly as clearly.