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

Token bubble for NPC Hit Points

I am wanting to have one of my token-bubbles pre-populated with an NPCs HP from the 5e NPC record sheet. For characters, when I specify "hp" in the token bar value, it correctly puts the value in the bubble. However, for NPCs, when I specify "hp," it enters it into the "max" field, which doesn't show in the bubble. I know for encounter monsters & generic NPCs, it's better to enter a fixed value (so that it doesn't change for all of them), and I do this. What I'm interested in are my "Character" NPCs... (i.e. hirelings, allies, enemies, etc.), where they are unique, and so I'd like their HP "bubble" to updated automatically when I update their record sheet upon leveling, etc. Thanks!
1663363344

Edited 1663363929
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Stan! Try "npc_hp". Many of the attributes on the D&D 5th Edition by Roll20 Sheet have pc and npc versions, since many pc attributes are affected by equipment and class calculations, but most NPCs are just static arbitrary values. Edit: Nope, I just looked at a few unique NPCs on my own campaign, and they are linked to "HP" and seem to work fine. Just make sure you link to the attribute instead of filling the values in manually, and you should be fine.
Interesting, thanks... Yeah, that's weird. For my characters, that's exactly how it works. For some reason, for anyone I have on an "NPC" sheet, it only populates the "Max HP" entry, and leaves the "Value" empty. Thanks for letting me know! Maybe I'll start a fresh campaign and try just to see if there's not some artifact in my "base" npc somewhere. Thanks again!
1663373143
Andrew R.
Pro
Sheet Author
I would setup a “NPC Setup” macro in my Macro Mule using TokenMod to get all the settings correct. 
1663377359
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I have four token-mod setups. PC Generic NPC (Mook) Unique NPC Special NPC The last is just for folks who might need combat stats and are basically Mooks based on Commoner, Thug or Champion, depending on their threat level. The represented character is chosen via  Chat Menu . Each has different token bar assignments.
I'm still pretty novice at this, been using R20 for a while now, but up until a few weeks ago, was really just "simulating tabletop" and manually dice-rolling. Just recently started using the in-game record sheets, macros, action buttons, etc. I'm getting better, but not there yet! (I.e. not familiar with "TokenMod" & some of the other lingo. If it helps, this is what I'm seeing in my NPC Character "Attributes & Abilities" tab... (So when I update "hp" on the character sheet, it auto-fills the right-hand (hp|max) column, rather than the left-hand "Current" column, which is what populates when I change hp on a Player Character sheet. As a result, when I try to use "hp" as the reference for a bubble on the token, I get this: Where it populates the max, and not the value, hence, not the bubble...
check to see if you can find a attribute called HP instead of hp. Capitalization can matter in roll20.  
I did notice that in the screenshot @keithcurtis showed the attribute was in caps... "HP" My list of attributes (which is the default, since I haven't done any customizations), doesn't have that, just "hp" and "hp_temp"... I was wondering if "HP" in caps was something he did custom. Thanks for the suggestion.
1663393436
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This is accurate. There are several ways to autofill that, depending on your campaign settings. The settings I use are shown below. Note that these fill the token bars with values, but those values are not linked. The attribute on the character sheet is set to display the max value, likely because NPC statblocks typically represent many characters (1 goblin sheet, many goblin tokens). So the default is to only use the max for the statblock. Here are some resources for token setup that might clarify a few things: Here is the wiki article on  Linking Tokens to Journals Here is a  video  which demonstrates the procedure
Hey! Thanks for the reply. I think I've figured out my problem. Appreciate the help!
I'd like to know what you discovered. With some NCPs, my token mod macro does not populate the token bubble the first time I run the macro.
I'm not actually using a macro to populate the bubbles. I'm basically hand-entering the values (for character NPCs). At first, I thought it was behaving differently from character sheets, but the big difference I was overlooking is that character sheets have manual entries for "max" and "current" (on the sheet)... as opposed to NPC sheets, which just have the one "HP" entry (which is "max")... So, where I thought they were behaving differently, they actually weren't it was just a matter of perception. (So, essentially, I'm going to have to hand-update my NPC "character" sheets as they level, which is fine.)