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

Players Switching Pages

 I'm working on an ongoing campaign across different media: An MMORPG, Roll20 and a forum. The campaign revolves around a small customizable town where players can visually, graphically and numerically review the group's progress. What I would like to include in the campaign is the players being able to view different pages  seperate from each other. I have been told this can be done with API. I am currently waiting for my creditcard to arrive so I can buy a subscription. Is that true? Where do I start with API?
1439673230

Edited 1439673347
Lithl
Pro
Sheet Author
API Scripter
Yes, this can be accomplished with the API. The API is written using JavaScript, with access to the  Underscore.js library. There are many places across the internet where you can learn how to write JavaScript. A Google search for JavaScript tutorials will get you many results. If you look around the forums a little, you'll probably see Aaron repeatedly recommending  JavaScript: The Good Parts . For specifics of the API which are unique to Roll20 (rather than being available in JavaScript in general), the  API articles on the Roll20 wiki have a bunch of information. To accomplish this, you would most likely want a chat:message event handler (so that your players can trigger the script with a chat command) which changes the value of the playerspecificpages property of the Campaign object.
1439680917
The Aaron
Pro
API Scripter
Great book!  :) I've got most of a script for this written. The biggest problem right now is the bug in the API that caused the API sandbox to stop between sessions. Hopefully that will get solved soon.