Can't create pages, but you can modify them after creation. Here's a little snippet that sets pages to a default configuration (mostly obviated by the default settings stuff from earlier this year, but illustrates the point): on('ready',function(){
var masterPage = findObjs({type: 'page', name: 'MASTER'})[0];
if(masterPage) {
on('add:page',function(p){
log('got create page');
p.set({
showgrid: masterPage.get('showgrid'),
showdarkness: masterPage.get('showdarkness'),
showlighting: masterPage.get('showlighting'),
lightupdatedrop: masterPage.get('lightupdatedrop'),
lightenforcelos: masterPage.get('lightenforcelos'),
lightrestrictmove: masterPage.get('lightrestrictmove'),
lightglobalillum: masterPage.get('lightglobalillum'),
width: masterPage.get('width'),
height: masterPage.get('height'),
snapping_increment: masterPage.get('snapping_increment'),
grid_opacity: masterPage.get('grid_opacity'),
fog_opacity: masterPage.get('fog_opacity'),
background_color: masterPage.get('background_color'),
gridcolor: masterPage.get('gridcolor'),
grid_type: masterPage.get('grid_type'),
scale_number: masterPage.get('scale_number'),
scale_units: masterPage.get('scale_units'),
gridlabels: masterPage.get('gridlabels'),
diagonaltype: masterPage.get('diagonaltype')
});
});
} else {
sendChat('MasterPage','/w gm No page named MASTER found.');
}
});
You could imagine an interface where your STA needs to configure a page, so watches page creation and prompts the GM when one is made asking "Should STA configure this new page?" Most interface issues in Roll20 come down to coming up with clever ways to get around limitations. =D I used a similar script for creating a deck of cards. API can't create cards, but can manipulate created cards. When a deck of a given name had a card added, it would configure it to the next card that needed to be created. =D