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

How to activate API in game

I cannot find anywhere the specific way to ACTIVATE an api script within my game.  For example, I have the "torch" script and I load it up in my api editor for the game but I don't undertstand how to USE it in the game.  Or my "group initiative tracker" that I have loaded up.  It's running, but I don't know what commands to USE it in the game.
Hello Omegaman, quick answer is put a ! in front of the command. So you select a token on the map, and type in !torch 40 20 for example, and the script will give the torch light to that radius. To get rid of the light, select the token and type in !snuff.
Thank you SOOOO much.  I don't know why that seems so hard to figure out.
You can often find documentation for API Scripts within the API forum or the Roll20 Wiki . A quick search of the API forum yielded this thread, which contains the documentation for the Torch script: [Script] Torch -- A simple script for giving lights to tokens and turning off and on dynamic lighting.
1458423350
The Aaron
Pro
API Scripter
Plus, feel free to ping me about any of my scripts. Most have an in game help and configuration accessible via !<command> --help I'm working on a massive overhaul to make this more standardized and easier to access.