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] Calling Sheet Rolls within a Roll Query.

1501272448

Edited 1501272812
We are using the 5th Edition (Community Contributed) character sheet. The idea is to have most of my Sheet Rolls on my macro bar, but compress them in a way so I actually have room for all of them. Saving throws is the easiest example. The button would simply be labeled "Save" and would call a roll query to select a specific save. The query would call the appropriate Sheet Roll depending on the selection. I first tested with this: ?{Save| Con,ConSave| Dex,DexSave} This works how I would expect, so I understand the basic concept of the roll query at least. The problem comes in when I try to substitute in the call of the Sheet Roll. ?{Save| Con,%{Darkheart|Constitution_Save}| Dex,DexSave} Darkheart is my character name. I'm not using "selected"  for simplicity's sake. At least for now. This does not prompt me with the roll query, and instead immediately throws an error, followed by a chat message. No ability was found for %{Darkheart|Constitution_Save}| Dex,DexSave} Darkheart: ?{Save| Con,Darkheart|Constitution_Save}| Dex,DexSave
1501272864
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
In order to do this you would need to replace problem characters in the ability with their html encoding. Since this is not possible to do with sheet roll buttons (since they are embedded in the button for most sheets), you can't use roll queries for this. There is an alternative though. Look into making menus of  ability command buttons
Well I feel super dumb now! Thank you so much for showing this to me!
1501273108
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
NP, There's a lot the Roll20 environment can do (especially if you get creative), but it can be hard to find the exact functionality that will help you, especially when you are looking to do something non-standard.
Hmm... Started messing around with these Ability buttons. I'm not quite sure I understand how they work or how to use them. Can I get these onto my macro bar? Or do I need to write a macro to dump a bunch of buttons in chat, and then choose one of those buttons?
Yes, you will need to dump them into chat and then pick the button you want to use. You could also whisper this to yourself or the play so as not to crowd the chat of everyone else.
Well, clearly I stayed up way too late watching Critical Role. Whispering the buttons to myself is a perfect solution. Thank you very much!
1501273908
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
So, you would write a custom macro on your character sheet in the attributes/abilities tab that would look something like this: Saves: &{template:default} {{Name=Saves}} {{[Strength](~Darkheart|Strength_save) [Dexterity](~Darkheart|dexterity_save) [Constitution](~Darkheart|Constitution_save)=[Intelligence](~Darkheart|Intelligence_save) [Wisdom](~Darkheart|Wisdom_save) [Charisma](~Darkheart|Charisma_save)}} You can set this to be on your macro bar by checking the appropriate box on the macro after you've made it. It will then output a menu of buttons to roll your saves.