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

Copying Games

Hey there, Is there a way to carry API scripts over when you copy a game?  I have not been able to figure this out yet, but it seems as though they should come along somehow.  I would like to create a game template "game" that has all the APIs I use configured the way I like them. Thanks.
1478832762
The Aaron
Pro
API Scripter
No, but I have a Bookmarklet to make it easy to copy scripts that aren't in the 1-click install: javascript:$('<textarea></textarea>').attr({id: 'TheAaronAllScripts'}).css({width:'100%',height: '30em'}).text($('.script .editor').map(function(idx,e){return e.env.editor.getValue();}).toArray().join("\n/* ############################### */;\n\n")).appendTo('body');
That sounds awesome! Unfortunately I'm not sure how to use this! Could you give me some instructions (sorry!)? Thanks Aaron.  From Aaron :)
1478842776
The Aaron
Pro
API Scripter
No worries.  In Chrome, create a new bookmark (name it something like "copy all scripts") and set the link (url) to the block of code above. Save that and go to the API scripts page of your Game.  Click the bookmark. It will create a block at the bottom of your page with all your scripts concatenated together.  Click in it, hit ctrl-A to select all (cmd-A on mac), copy it, then past it as a script in the copied game and save it. Poof! All you existing scripts are copied over to the new game.
1478880165

Edited 1478880209
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Aaron, does this now also work with the one-click's? Nvm, helps if I actually read the entire thread. - doh.
1478881719
The Aaron
Pro
API Scripter
Yeah, I looked into adding support for copying 1-click scripts too, but it was prohibitively complicated for limited utility.