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

Question on Twins

1661544703
Nick O.
Forum Champion
I'm using this version of the Mod&nbsp; <a href="https://gist.githubusercontent.com/shdwjk/0fb306a778711bc34d24407bfc36003e/raw/bf7f88bab8c483c7eeae6546fa51dc33acb14e57/Twins.js" rel="nofollow">https://gist.githubusercontent.com/shdwjk/0fb306a778711bc34d24407bfc36003e/raw/bf7f88bab8c483c7eeae6546fa51dc33acb14e57/Twins.js</a> I'm connecting two unrelated tokens - I have a PC token (connected to the PC's character sheet) on one map, and a Zombie token (connected to the 5e Zombie character sheet) on the other. (I'm doing a Scarecrow Fear Gas sort of scenario, where one PC thinks the other PCs have been turned into undead). I'm struggling to understand how properties get copied from one token to another. I've seen it happen where, when running !twins PCTokenID ZombieTokenID the PC's attributes get copied to the Zombie token (which is what I want), but I've also seen it happen where the Zombie's properties get copied to the PC (which is bad). Is there a trick to ensure that the PC's attributes are always the one copied? Do I need to set the Zombie token to Represents: None or anything like that? Thanks in advance!
1661548468
The Aaron
Roll20 Production Team
API Scripter
Hi Nick! The way Twins works is that if either twin is modified, all properties from the modified one are copied to the other one.&nbsp; That means if you move the zombie token, it would copy all it's properties onto the player one.&nbsp; It shouldn't copy until the first change, so I would say run the twins command, then move the player token to force an update to the zombie token, then everything should just be the same.
1661559174
Nick O.
Forum Champion
Thanks, Aaron! And thanks for making another fantastic script! :)