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

[Script Request] Assign players to pages when they are not online

Hello all, I'm pretty new to building things in Roll20, and could use some help. Essentially, I'd like to be able to 'split the party' when only I am online in the game space. I'm using Roll20 for some play-by-email games, and there will rarely be a time when everyone is logged in together. Being able to split a person off to another page without them having to be logged in would be really handy. Thanks!
1431014999
Lithl
Pro
Sheet Author
API Scripter
I'm not certain that's doable. However, you could store the page people are supposed to be on in state, and automatically move them to that page when they log in, which is almost as good.
1431015235
The Aaron
Pro
API Scripter
It is doable: <a href="https://wiki.roll20.net/API:Objects#Campaign" rel="nofollow">https://wiki.roll20.net/API:Objects#Campaign</a> playerspecificpages false An object (NOT JSON STRING) of the format: {"player1_id": "page_id", "player2_id": "page_id" ... } Any player set to a page in this object will override the playerpageid.
1431015314
The Aaron
Pro
API Scripter
I have a script that does this for the whole party, I need to expand it to doing individuals. <a href="https://github.com/shdwjk/Roll20API/blob/master/Mo" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Mo</a>...
1431052721
Lithl
Pro
Sheet Author
API Scripter
The Aaron said: It is doable: <a href="https://wiki.roll20.net/API:Objects#Campaign" rel="nofollow">https://wiki.roll20.net/API:Objects#Campaign</a> playerspecificpages false An object (NOT JSON STRING) of the format: {"player1_id": "page_id", "player2_id": "page_id" ... } Any player set to a page in this object will override the playerpageid. But have you tried doing this using offline player ids? That's the part I'm not certain about.
1431059894
The Aaron
Pro
API Scripter
Seems to work fine...