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

Campaign-Wide Rolls

I can program things and stuffs but I don't know what the commands are and/or if what I want to do is possible so, rather than waste my time on something that might not be doable, I thought I'd ask first. What I want to do is create a series of api's that all of my players can use in our Pathfinder game (such as initiative, saves, and Luck rolls). I have a blind player so, optimally, they would not require a player to select his/her token BUT I also have some players who have multiple characters so there needs to be a way to choose which character is rolling. Maybe it can use an if statement to differentiate the two (I'd really prefer to have 1 api per roll at most)? If someone could get me started, I believe I can build it to completion. Also, can character-specific Macros be called from the API? If they can, I definitely want to allow them to use their default attacks from the API. Thank you in advance!
1404592594
The Aaron
Roll20 Production Team
API Scripter
Hi Glospey. I've got a blind player as well, and I'm in the early stages of writing as script to give him some accessibility options. I'll PM you a link to the google doc where we're discussing it. As for your other questions: There isn't a way in the API to select tokens on the map. If your player api is a selection of !<command-name> commands, then everyone can use them. You can certainly set the "speaking as" for a player. Do you mean having something like !init Sir Firstchar & !init Sir Secondchar ? That's also possible. Macros cannot be executed by the API. You can certainly read the contents of them, and you could parse them yourself, and possibly even send the contents in chat messages with a callback to parse the results.
1 & 3: Known but I was thinking more of looking who the player can control and using those stats. Your third bullet point solves all of the listed problems elegantly though, so I'll go with that solution. 2: That's the intent. I already have the !heal one that's posted in the list of available api's. 4: Reading and parsing macros would require assistance but I think it would be worth it.