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 .
×

Writing Scrips

Hi all  I am a new coder and am looking to practise writing specific accurate code. I am not interested in uploading code for public use unless it is something that I can not find and it would be finished and completely working. I was wondering what language I would need to write in for the API. I would also like to know how to write my own code within the API as my sandbox does not seem to work unless i am adding prewritten code.  Any help would be great. 
1473284912

Edited 1473284968
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The API is a javascript environment. You have access to the functions from  underscore.js . Check out the  API wiki pages for details on what the API can access and change. As for the sandbox not working, what code are you trying out in it? EDIT: The API has access to some ES6 features, but not all of them. I'm sure Aaron will be by in a bit to specify what :)
Thank you for the links they have helped and will continue to help.  i have got my sandbox working now that i have tryed jarva in it so that was a great help as well
1473286225
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Great to hear. I completely understand the not wanting to throw your code out to be picked apart, but I would suggest taking a look at what is available on the forums and in the repository as there is some great stuff to use and/or learn from.
1473289022
The Aaron
Pro
API Scripter
I believe it's all the features of Node 5.12.0:&nbsp;<a href="http://node.green" rel="nofollow">http://node.green</a>