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

How do I properly use bar values?

I was playing around with my game settings and I found these settings near the bottom of the settings, the "Set Bar Value 1" and ""Set Bar 1 Max" etc. I was wondering how I could properly use them. I do usually go to the tokens specifically and edit them that way, but I want to be able to do it quicker, and if this is a way to do it, than I want to know how. Here is a screen-shot: 

May 09 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

Each of the Bar settings expects the name of an attribute on the Character Sheet (5th Edition DnD by Roll20).  You can look up the names of many of them here: https://wiki.roll20.net/5th_Edition_OGL_by_Roll20#Directly_Referencing_Attributes

There are 3 varieties of settings for each bar:

  • VALUE -- The current setting of the specified attribute will be taken and placed in the left half of the bar (the value side, the one that shows in the bubble).
  • MAX -- The current setting of the specified attribute will be taken and placed in the right half of the bar (the max side, the one that isn't shown but sets the top end of the bar)
  • LINK -- The value and max for the bar will be taken from this attribute.  Changes to the Attribute will be reflected in the bar, and changes in the bar will be reflected in the attribute. 


The Aaron said:

Each of the Bar settings expects the name of an attribute on the Character Sheet (5th Edition DnD by Roll20).  You can look up the names of many of them here: https://wiki.roll20.net/5th_Edition_OGL_by_Roll20#Directly_Referencing_Attributes

There are 3 varieties of settings for each bar:

  • VALUE -- The current setting of the specified attribute will be taken and placed in the left half of the bar (the value side, the one that shows in the bubble).
  • MAX -- The current setting of the specified attribute will be taken and placed in the right half of the bar (the max side, the one that isn't shown but sets the top end of the bar)
  • LINK -- The value and max for the bar will be taken from this attribute.  Changes to the Attribute will be reflected in the bar, and changes in the bar will be reflected in the attribute. 


Can you give some sort of example of how I would correctly input these values, or send a screenshot as an example?

May 09 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

This will set bar1's current value to whatever the max value for the hp attribute is, when the token is created.  So, this would be the value you would get from a token that represents a given character when you evaluate this expression in chat:

@{selected|hp|max}

Character sheet attributes use an appended _max to access the maximum half of the attributes, so "hp_max" instead of "hp|max".

Similarly, it will set bar1's maximum value to the same thing.  This is a pretty common way to set up "Mooks", or npc monster tokens.  That way, you can damage goblin 1 with out also affecting the hp of goblins 2, 3, & 4.

Conversely, bar2 is linked to the npc_ac attribute.  This is the value you'd get by evaluating this expression in chat:

@{selected|ac}

The difference here is that if you decided that all the goblins in your world suddenly went from an AC of 12 to an AC of 14 because of magical toughness bestowed upon all goblin kind by the goblin god, then you'd just update the ac attribute on a goblin or the goblin character sheet and all goblins would change to match.


Hope that helps.



Thanks for the help, if I have any issues, I'll ask more.


The Aaron said:

This will set bar1's current value to whatever the max value for the hp attribute is, when the token is created.  So, this would be the value you would get from a token that represents a given character when you evaluate this expression in chat:

@{selected|hp|max}

Character sheet attributes use an appended _max to access the maximum half of the attributes, so "hp_max" instead of "hp|max".

Similarly, it will set bar1's maximum value to the same thing.  This is a pretty common way to set up "Mooks", or npc monster tokens.  That way, you can damage goblin 1 with out also affecting the hp of goblins 2, 3, & 4.

Conversely, bar2 is linked to the npc_ac attribute.  This is the value you'd get by evaluating this expression in chat:

@{selected|ac}

The difference here is that if you decided that all the goblins in your world suddenly went from an AC of 12 to an AC of 14 because of magical toughness bestowed upon all goblin kind by the goblin god, then you'd just update the ac attribute on a goblin or the goblin character sheet and all goblins would change to match.


Hope that helps.





Yes, that indeed helps, and again, thank you for your input, but I do have one more question. It seems that this only works on certain npc's / compendium drag & drops. Could you possibly explain why it only works on some, and not all of them, or have I just done something wrong with my set up? I can send a screen-shot if necessary.


May 10 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

It will only be applied, as far as I know, on drops from the compendium. If you're dropping from the Journal, the tokens have already been created.


The Aaron said:

It will only be applied, as far as I know, on drops from the compendium. If you're dropping from the Journal, the tokens have already been created.


Ok, but what I'm saying is that it seems to only affect certain drops from the compendium, like some npc's seem to get the applied factors, while others seem to not have any applied. Again, only from dropping from the compendium.

May 10 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

Honestly, I've never used that feature, so we're beyond what I know...

May 10 (6 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

If you already have previously dropped a character from the Compendium (say, a goblin), a Compendium drop will actually place the goblin that is in your journals. You need to delete any creature in your Journal that you want to get a Compendium copy of.

Ah, ok, thanks