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 For Syncing Actions From One Page To Another

May 13 (2 months ago)

Hello! Was hoping some people much smarter than me could tell me if this is possible and if anyone has actually made a script for it before.

So i'm preparing an encounter where only one player at a time will see a token, this token has artwork so the invisible token trick wouldn't really work for me here. The tokens art must be visible to the player.

My initial idea was to set up 3 different pages for each player and the replicate the same actions across all 3, then move the token to different pages depending on which player is meant to see it. 

However...after doing some testing on my own...I realized this was going to be VERY difficult to keep up with and would slow the encounter down to a grinding halt.

I did some searching myself but couldn't find anything concrete, so I ask here. Does anyone know of any script that replicates actions from one page to multiple other matching pages?

May 13 (2 months ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Yes. The script you are looking for is called TokenSync, but I don't seem to be able to find it in the repo. It's listed as discontinued. Let me see what I can find out.

May 13 (2 months ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Try this post. The code here is from 4 years ago, but it's worth looking at.

May 14 (2 months ago)


keithcurtis said:

Try this post. The code here is from 4 years ago, but it's worth looking at.


Thanks! I gave it a shot though I don't seem to be able to get it working unfortunately, it was indeed worth a shot though.

May 14 (2 months ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

I'll see if I can summon the Aaron here. He might have insight, but it might be a Jumpgate incompatibility.

May 14 (2 months ago)
The Aaron
Roll20 Production Team
API Scripter

It should work just fine with Jumpgate. What problem did you run into?  Twins in the repo is another one that might work. 

May 14 (2 months ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Twins! That's the one I was trying to remember.

May 22 (2 months ago)

Terribly sorry for the delay, I was away all week.

For the first one I tried it just didn't seem to be working, I'd edit a synced token but nothing would occur. 

I haven't tried twins but I'll look into that now.

May 22 (2 months ago)

    Ok so after logging back into roll20 and hopping into my game.

For reasons I do not understand, because all I did was link some tokens.

The script synced EVERY single one of my maps into the same exact image, some random urban map I had in another page. All 62 maps I had set up.

So uh...yea that really really really really really sucks, don't know if there's a way to reverse it. 

The Aaron said:

It should work just fine with Jumpgate. What problem did you run into?  Twins in the repo is another one that might work. 


May 22 (2 months ago)


May 22 (2 months ago)

If either of you have an idea on how to fix this, I'd appreciate it, because that was probably 40+ hours of setup that's been destroyed.

May 22 (2 months ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

That sucks. Can you do a Rollback?

May 22 (2 months ago)


keithcurtis said:

That sucks. Can you do a Rollback?


Oh my GOD thank you, I was actually about to throw myself into a blender.

May 22 (2 months ago)

Thank you so much Keith you beautiful beautiful man