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

Trigger a button from RollQuery

1647542532
.Hell
Sheet Author
Hey folks, is it possible to trigger a button from a RollQuery? I want the user to make a selection of a fixed set where each entry has a button in the sheet. To reduce maintaince workload I dont want to copy the code of the button. Thanks in advance
1647542784

Edited 1647622926
Andreas J.
Forum Champion
Sheet Author
Translator
nothing in the limited (community) documentation suggest that, but who knows: <a href="https://wiki.roll20.net/JQuery" rel="nofollow">https://wiki.roll20.net/JQuery</a> misread the question, woops
1647556418
GiGs
Pro
Sheet Author
API Scripter
I might be misunderstanding the question, but if not... Roll buttons are just abilities if named properly, so they can be called the same way as abilities, using the %{character-chame|button-name} syntax. I think you always need to supply a name (which can be selected or target ), you cant simply use %{ability-name} . However, all macros and abilities get expanded in the original macro before that macro is triggered: this means if the ability is inside a query, and contains any of the characters that break a query (such as }, | and commas), the macro will break.