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

Roll20 tabletop interface

    Wanted to just check if there is a way to make an API that changes the way token macro's appear in the game for myself and my players? or anything I could do to change that? Any time I try to make a macro with a roll query, that then does a character sheet roll it wants to mess up/not work as intended and unfortunately no amount of guessing what HTML code replacement characters seems to be working so my goal would to just be able to have token macro's organized in a drop down, that way if i have 40 of them that it's a little easier to maintain and keep clean for myself and users. Thank you for your time.
1592427857
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You can make them more compact with this style: More Compact Token Action Toolbar You can also go with a chat menu: NPC Statblock Chat Menu for D&D 5e sheet — No API required!
Thank keith, those are some nice suggestion. I already implemented the token macro one for me as that is just plain useful in general. :) I don't know where I saw it but someone who used roll20 and posted a youtube video (for the life of me I can not find it, was during a time I was just overwatching anything that had to do with macro's and API) where someone literally had a token macro button, but instead of clicking it, it had an arrow in the button and it was a literal dropdown menu. My guess is that could also be done with the stylus extension? although my CSS is limited to reading and maybe copying :P no so good with knowing proper syntax... Anyway thanks for the suggestions. Trying all the possible work around for Query rolls as they do not play nice with API, macro, abilities or character sheet rolls when you attempt to put them in. I have try a dozen times using the "nested Query example" of placing the end result directly into a Query with no success... Again order of execution and operation when the page gets loaded alludes me. If you have any reading material you would suggest on how to get better at learning CCS/Javascript/Roll20 API syntax (with and without sheet workers) that would be great. I am abysmal at properly searching for things and end up just finding the same material that wasn't helpful to me to begin with. I want to say thank you again though, read many posts by you in the forums, and you are very helpful :)
1592441426
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thank you kindly. :) Codeacademy.com and w3schools.com are both great on-line learning sources. The best teacher is necessity, though. Find a specific project you want to accomplish that will motivate you to tough it out through the "boring parts". And yeah, I avoid nesting queries whenever possible. They make my eyes water.