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

TokenCondition script behind token

I am working up a handout for the Full Thrust table top gaming group and am having an issue with a script.  I am using gifs and Token Condition to display damage on space ships.  The script seems to operate for some tokens and not for others.  Some tokens end up in front of the gif.  All three ships here have a gif attached by the script but the token in the center obscures the damage gif.  I tried 'send to rear' in case it did anything but no dice.  Thanks for the help.  
One thing that can affect the 'z-index' display order of tokens is based on which tokens the viewing player has control over. So if a token is on the Object layer and the player has control of that token, it will be pushed to the top of the visibility list for that player. If there are multiple tokens stacked on top of each other that the player has control over, then the order is based on the z-index for each of those tokens, then it's stacked by layer. So the first piece of advice is to make sure you're using a Dummy Account to get a true player's view of the VTT while you're testing things out.  That way you can see changes live while you make them, instead of trying to rely on 'Rejoin as Player' or Ctrl-L (which only provides a token's Line of Sight, not a player's view). Then check the Controlled By access for each of the tokens (the space ship and the overlaid gif).  See what happens on the Dummy Account when you make changes to the tokens.  It's also possible there is some other z-index ordering that happens for .gifs instead of .jpgs or .pngs, but I'm not sure about that.
1629976423
David M.
Pro
API Scripter
If assigning control of the gif token doesn't solve it, you can try giving sight to the gif token in addition to control. I seem to recall a "feature" introduced maybe a year ago that gave z-order preference to sighted tokens, presumably so players could more easily select their PC tokens. Haven't tested recently, so not sure if it is still a thing. 
Thanks guys.  One of the above fixed it.  Not 100% sure which.