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 .
×

Token Bars Issue

1635776871

Edited 1635779425
I am DM'ing a Witcher game, in Witcher TTRPG system. So anyway, here is the problem. The STA (Stamina) bars of our players are not showing. When I assign them it is fine, when they do the bar disappears. I double checked everything and could not find anything I did wrong. The problem is, when the bars disappear I check what is wrong. I immediately caught what seems to be the problem, the max value disappears. So it is "40 / [no number]" so the bar disappears. The problem is, people have a maximum stamina, the bar just refuses to acknowledge its existence. I can happily provide a link if anyone is willing to help.
My guess is the sheet does not have a prper link to the token?  You could bypass this by just unlinking the bar and running it as a manual bar they have to manage themselves?
1635779373

Edited 1635779885
DM Eddie said: My guess is the sheet does not have a prper link to the token?  You could bypass this by just unlinking the bar and running it as a manual bar they have to manage themselves? I believe it does. My NPC sheets would have the same problems otherwise, and it would fail to recall anything whatsoever. I checked now and I can say they are properly linked. It is not even the bars, it is the variable assigned to "Bar 2" disappearing. However, it is just the player sheets. The strange fact is that when I use them, nothing happens. When the players do, token 2 does not have an assigned variable anymore. I guess I can make the players apply the bars when they change maps and stuff but that does not really solve the problem.
1635781983
Kraynic
Pro
Sheet Author
I'm not sure I am looking at the correct sheet, but if I am you will have this issue with the attributes as written into the sheet code.&nbsp; Normally, if the sheet has a current/max, you would have inputs named for each one.&nbsp; For stamina, it could be something like name="attr_stamina" and name="attr_stamina_max" as an example.&nbsp; That doesn't appear to be how this sheet is set up. &lt;td&gt;STA&lt;/td&gt; &lt;td&gt;&lt;input type="number" name="attr_STA" value="0"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="number" name="attr_CurrentStamina" value="0"/&gt;&lt;/td&gt; There is also this other pair: &lt;td&gt;&lt;input type="number" name="attr_CurrentStamina" value="0"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="number" name="attr_UsedStamina" value="0"/&gt;&lt;/td&gt; That means that the only way to set the maximum for any of those values is to find the stat on the Attributes &amp; Abilities tab and add the max value in there.&nbsp; Then you would have the max value for the attribute for the bar to appear.&nbsp; If I am looking at the correct sheet, it hasn't seen any code changes since 2018, so it must have been set up this way from the beginning. <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/The%20Witcher" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/The%20Witcher</a>
1635892823

Edited 1635892861
Kraynic said: I'm not sure I am looking at the correct sheet, but if I am you will have this issue with the attributes as written into the sheet code.&nbsp; Normally, if the sheet has a current/max, you would have inputs named for each one.&nbsp; For stamina, it could be something like name="attr_stamina" and name="attr_stamina_max" as an example.&nbsp; That doesn't appear to be how this sheet is set up. &lt;td&gt;STA&lt;/td&gt; &lt;td&gt;&lt;input type="number" name="attr_STA" value="0"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="number" name="attr_CurrentStamina" value="0"/&gt;&lt;/td&gt; There is also this other pair: &lt;td&gt;&lt;input type="number" name="attr_CurrentStamina" value="0"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="number" name="attr_UsedStamina" value="0"/&gt;&lt;/td&gt; That means that the only way to set the maximum for any of those values is to find the stat on the Attributes &amp; Abilities tab and add the max value in there.&nbsp; Then you would have the max value for the attribute for the bar to appear.&nbsp; If I am looking at the correct sheet, it hasn't seen any code changes since 2018, so it must have been set up this way from the beginning. <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/The%20Witcher" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/The%20Witcher</a> It has a max value. The problem is the token deletes the maximum number and the sheet. So say, you input "sta" to bar 1. When you open, it is no longer "sta" which seems to be the problem. The maximum amount also goes away. Anyway, I will let the players assign the bars themselves each time they call out their tokens. It will be a problem but whatever. Seems like there is indeed no way to get over that anyway. With that being said, NPC sheets working just fine without any of those problems will always be a mystery to me. Thanks for the response anyway.