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

Character Sheet Initiative macro not linking to character token

Hi all!  I am a first time DM who's been hosting a 5e campaign for three players and we've been playing for over half a year now. Recently we started encountering a problem that involves rolling initiative and character tokens.  When two of my players click the initiative button on their character sheet, their linked tokens do not get added to the turn order list. Additionally, the error " You wanted to send the result of this roll to the turn tracker, but no valid token was selected!" would appear in chat. Their tokens are linked to their sheets and I also get the same issue and error when I click their initiative button. Our third player has not been experiencing this issue as their token appears in the turn order when they click the initiative button. Lastly, I noticed when I have a token selected and click the initiative button on someone else's sheet, that token gets placed in the turn order in place of their token. Odd issues I have here but help in solving them would be greatly appreciated! 
1718586875

Edited 1718587367
Gauss
Forum Champion
Hi Jerry,  First the last problem: Clicking on a token and then clicking initiative on any sheet. Yes, it is correctly sending that token to the Turn Tracker.  The default behavior is as follows:  Click on a token (any token) and then run an initiative command to send the selected token to the tracker. That the initiative command belongs to another sheet doesn't matter. The system is looking for a selected token.  Here is the template:  @{Charactersname|wtype}&{template:simple} {{rname=^{init-u}}} {{mod=@{Charactersname|initiative_bonus}}} {{r1=[[@{Charactersname|initiative_style}+@{Charactersname|initiative_bonus}@{Charactersname|pbd_safe}[INIT] &{tracker}]]}} {{normal=1}} @{Charactersname|charname_output} As you can see, "Charactersname" (a placeholder I am using for the name of the character) is all over the place. However, it is not in the one place which controls putting the token on the turn order: &{tracker}  That command doesn't care about the name of the character, or the token you select, only that one is selected.  Recently however the Devs instituted a system where if you don't select a token the system will look for an associated token. This is the first problem you are listing.  My guess, the token is not properly saved to the sheet. I am guessing you connected the token to the sheet, but you did not then set the token as the default token for that sheet.  To do that, edit the sheet, select the token, click the "Use Selected Token" button.  Warning: that system will not work  if you use a macro of the intitiative button (such as a macro containing the template above). It only works if you push the button on the sheet directly. So if you make a macro with the template above, it will not then find the token associated with the sheet. If you make a macro with the initiative command "%{Charactersname|initiative}" (without quotes) it will also not find the associated token. The token must be selected. This is because there is extra stuff built into the sheet that does not show up in the macro command or template. It handles things before the command is activated.  You can think of it as:  Button on sheet is pressed Sheet does some stuff to find the associated token and sets that as the "selected token" if there is not one selected already.  Command (or template) is then activated.  If you make a macro of the command (or template) you are bypassing the magic of the sheet.
Hi Gauss, Sorry for delayed response, had to wait for the next time my players and I played again. We have sorted through the issue and were able to fix it! Thank you so much for the help!