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

Getting started with scripts

I'm pretty new to Roll20 and completely new to using scripts and wondering if there is a good tutorial on learning how to use them in Roll20.   Two scripts that I'd like to create or find already written are; 1.  I played in a Roll20 game where a box would appear in the messages thread with a clickable "Done" button that a player could presss that would advance the initiative turn order. 2. A rollable treasure table. Any info would be appreciated.  Thanks!
1557746614
The Aaron
Roll20 Production Team
API Scripter
TurnMarker1 has an EoT button (and command), there are several others.  RecursiveTable was designed for doing things like nested treasure rolls.  (Sorry, I'd give you more info but I'm in an airport about to board.)
1557747155
Ziechael
Forum Champion
Sheet Author
API Scripter
As Aaron started to say (as he dashed down the concourse screaming "Wait for me! I just wanted to reply to a thread..."), most of the common time saving/function enhancing things you can think of have already had scripts written. You'll require a Pro subscription (as a creator, or be co-GM in a game started by a Pro) to make use of the API, but then it is as simple as selecting a script from the drop down menu in the API area and 'adding' it. For scripts not yet in the one-click list (like TurnMarker1) you can get the code from the github repository and add the script manually. Most scripts, certainly the more popular ones, come with detailed documentation on how to use them. Some can be complex at first but you can make macros to make it easier for in game use... and if all else fails the forums are always a good place to get help, this community never fails to help :)
Where is this one-click script option?
1557755191
Ziechael
Forum Champion
Sheet Author
API Scripter
One-click scripts are found in the API screen:
1557756974
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
When you've got that worked out, here are a few threads started by other users new to the API that have lots of recommendations and advice: <a href="https://app.roll20.net/forum/post/4746039/script-recommendations-for-someone-new-to-the-api" rel="nofollow">https://app.roll20.net/forum/post/4746039/script-recommendations-for-someone-new-to-the-api</a> <a href="https://app.roll20.net/forum/post/5751596/ways-you-use-api-slash-macros-in-your-game" rel="nofollow">https://app.roll20.net/forum/post/5751596/ways-you-use-api-slash-macros-in-your-game</a> <a href="https://app.roll20.net/forum/post/6543153/new-to-the-world-of-apis-some-guidance-would-be-helpful-dot-dot-dot-and-appreciated" rel="nofollow">https://app.roll20.net/forum/post/6543153/new-to-the-world-of-apis-some-guidance-would-be-helpful-dot-dot-dot-and-appreciated</a>
If you have any interest in writing scripts in the future, I'd recommend taking a look at&nbsp; Mock20 &nbsp;or&nbsp; Airbag .&nbsp; Or both.