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

Using API as a player

I want to know how much you can do with API as a player. How easily can you use it in abilities, items, etc? Does everyone using it need pro subscription or could you have the dm do all the programming and just call his scripts as a player? For example I would like to make an eversmoking bottle that releases smoke in an area around the character but it makes the most sense for whoever is using it to press the macro or ability button. In our party there are loads of items and abilities that would be useful to have API for but we wouldn't all want to pay for the highest subscription. Any help is appreciated aswell as any suggestions
1505160030

Edited 1505160114
Everyone can call the API in the chat, if the creator of the game has the Pro subscription. It just depends on the API itself as to whether or not it allows non-GMs to run the command.
1505160225
The Aaron
Pro
API Scripter
Background: Access to the API as a feature is determined by the current active subscription of the Game Creator.  If the person that created the Game has a currently active Pro subscription, that game will be able to use the API feature. The API feature lets GMs of the game load API scripts into the game, which then perform the actions for which they are written. The Answer: Player access to API scripts depends entirely on the script.  Scripts are all Event Driven.  Something happens in the game, and they react to it.  Many scripts react to the event of an API Command being entered into the chat.  API Commands are text beginning with a !: !create --ever-burning-bottle Every API Command must be explicitly handled by an API Script by catching the chat:message event.  In the code handling that event, the script would make the choice of whether or not to perform any action.  The most common check is whether the executing player is currently a GM. Conclusion: It depends on the script.