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

[Help]All existing Bump API tokens are no longer linked in my campaign.

All of my existing bump tokens that worked last tuesday night no longer work.  The invisible token with the auras don't move with them but still maintain their mirrored settings from before the break.  They do not mirror changes now though.  What went wrong with !Bump?  Bumping the token again creates a new token, but um....thats alot of stuff to have to rebump and delete the old broken ones for.  
1645542422
The Aaron
Roll20 Production Team
API Scripter
Bump stores all of that information in the State object.  If something wiped the state (or used the state.Bump property), that would blow up all the links.  If you have a lot of tokens that are Bumped, I can probably write a script to find and relink them.
1645556974

Edited 1645557013
Would that make bump not work if the bumped tokens were transmogged into the session?  Being laid down on the map that gets transmogged in? 
If its going to happen to all bumped tokens that are bumped in another session then your script probably won't help me, I'll need to find an alternative method or just use manual changing of layers.  
1645595725
The Aaron
Roll20 Production Team
API Scripter
Ah, that would break it. The pairing is stored in the state. Hmm. Let me think on that, I'm sure I can make a modification to Bump that either stores the pairing on the tokens, or repairs them after transmogrifing. 
Fwiw, Teleport api uses tokens too and they seem to some how carry over between sessions and maintain function, if you wanna peek at the code there maybe?
I also have another question about another one of your scripts that I noticed an issue with tonight.  MHD, is there a way to make it not roll hps for tokens controlled by a player?  They are rerolling the HD of my druid player's shapes when I copy/paste them, is that because its me doing it and not her?  Should I make her drag her token out manually on page swaps?