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

[5e Shaped] Dropdown menu?

Hey guys! I've been struggling with this for awhile now and I can't for the life of me figure it out. So it got me thinking and I was wondering if it's even possible to make a dropdown style macro for the 5e Shaped sheet that would allow a token to choose between weapons or spells like so; and then have the chosen action display the proper result as if I were clicking the action using the sheet instead? Also, the dropdown I made in the picture was just a simple; ?{Weapon|Longsword (1H), #Longsword (1H)|Longsword (2H), #Longsword (2H)}
1473625820

Edited 1473628533
Kryx
Pro
Sheet Author
API Scripter
You could do that, just reference a different weapon. For example: ?{Weapon|Longsword (1H), %{NAME|repeating_attack_XXXX_attack}}|Longsword (2H), %{NAME|repeating_attack_XXXX_attack}} See the&nbsp; documentation for the shaped sheet on how to access repeating sections and roll's query macros documentation:&nbsp; <a href="https://wiki.roll20.net/Macros#Nesting_in_a_Roll_Query" rel="nofollow">https://wiki.roll20.net/Macros#Nesting_in_a_Roll_Query</a>
1473626512
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You won't be able to do it by referencing the sheet made macros for your weapons/spells (unless the shaped sheet allows you to directly edit the macro text). You'll need to do lots of html escaping. Another resource besides the wiki link Kryx posted above is this sheet that I made for easily nesting macros/roll queries:&nbsp;<a href="https://app.roll20.net/forum/permalink/3905546/" rel="nofollow">https://app.roll20.net/forum/permalink/3905546/</a>
1473626715
Kryx
Pro
Sheet Author
API Scripter
Ah, roll20 removed my escaping. It definitely works if you escape them. Use & # 1 2 5 ; without the spacing
1473627951
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Kryx said: Ah, roll20 removed my escaping. It definitely works if you escape them. Use & # 1 2 5 ; without the spacing Kryx, are saying to replace the } in the call to the macro? so %{NAME_repeating_attack_XXXX_attack&amp;#125; instead of&nbsp;%{NAME_repeating_attack_XXXX_attack}?
1473628563

Edited 1473628647
Kryx
Pro
Sheet Author
API Scripter
Actually, you're right. Those macros also have closing brackets. This is why I have to create some macros via sheetworkers. It cannot be done in a roll query. I'd suggest using chat macros instead for this very reason.
I know what you are trying to do but the sheet has an amazing macro already for attacks called shaped_attacks. It whispers to you all the attacks for your character and then you can click on what you want.&nbsp; This may be what you want or need as well. good luck H
I didn't know that the sheet had ready macros for what I wanted to do so I'll use that instead. Thank you for your suggestions! :)
1473752821

Edited 1473752828
Kryx
Pro
Sheet Author
API Scripter
You can find the buttons for them on the settings tab.
I was just about to ask if they were the blue buttons in the settings tab. Thank you for confirming it for me :)