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

[PF] Strange formula in HP?

In an earlier post in a different forum, I described a problem regarding the Max HP formula on a Pathfinder character sheet which, despite typing in correctly and deleting/re-adding the statistics both on the sheet and on the Attributes tab (suggested by Vince), the max HP remained gray and blank. So, since my game is due to play tomorrow, I figured the easiest thing to do was make whole new character sheets for each player and copy the info over. Makes sense, right? Wrong! Now, even though I started with a completely blank character sheet and manually entered in all the information (no cut and paste), the max HP remains blank. The Attributes tab consistently does not show the max HP value, and even when I input it manually it does nothing. The formula is accurate. When I attempt to link the HP to a token in Bar 1 (or any bar), it shows: " 0 / ((floor((16 + 0 + 0 + 0) / 2) - 5) * (8 + 0 + 0 + 0 + 0)) + (86 + 0 + 0 + 0 + 0))" Um, what the heck is that formula doing there? I have diligently searched the character sheet and cannot find the darn thing. It's only visible on the edit token page. I don't see it on the sheet anywhere, or on the attribute tab. The only way I can make this work is to change the Bar to "None", which will work for this game, but it also means I will need to update it every level for the players. Now, I can do this, but I am disturbed that this is happening now to all of their sheets. Please advise. I am using the Google chrome browser, I've cleared my cache, all the regular junk. I am the sole GM, so no one else is messing with it. Up until a couple months ago, this never happened (and then, it was weirdly resetting the HP max to the amount the characters first had when they originally began the game).
1452372425

Edited 1452372697
Trinette H. said: When I attempt to link the HP to a token in Bar 1 (or any bar), it shows: " 0 /  ((floor((16 + 0 + 0 + 0) / 2) - 5) * (8 + 0 + 0 + 0 + 0)) + (86 + 0 + 0 + 0 + 0)) " Um, what the heck is that formula doing there? I have diligently searched the character sheet and cannot find the darn thing. It's only visible on the edit token page. I don't see it on the sheet anywhere, or on the attribute tab. That would be: Vince said: I inspected the default HP formula " (@{CON-mod} * @{level}) + @{total-hp} " which appears to be missing a closing ")". The formula should be " (@{CON-mod} * @{level}) + @{total-hp}) ". The bolded part. i.e. floor((16 + 0 + 0 + 0) / 2) - 5 is @{Con-mod}, (8 + 0 + 0 + 0 + 0) is @{level} and (86 + 0 + 0 + 0 + 0) is @{total-hp} Actually, I think the formula should be (@{CON-mod}) * @{level} + @{total-hp}
I understand that. That's what it says on the character sheet and the Attributes tab. What I am saying is that, when assigning it to a token bar, the darn thing shows the weird floor formula. Which it shouldn't.
Ok, I apologize for finally reading the last line of your post. What I am saying is, I don't understand why that formula is showing up on my edit token page, when for months before it simply showed the maximum number?
1452372790
vÍnce
Pro
Sheet Author
Trinette H. said: I understand that. That's what it says on the character sheet and the Attributes tab. What I am saying is that, when assigning it to a token bar, the darn thing shows the weird floor formula. Which it shouldn't. Try removing the formulas from both HP fields on the sheet (PC and NPC).  This will force the macros to reset to their default values.  Also, I updated the Legacy sheet last night to fix the HP formula and it was merged this morning.  Should be live soon.
In addition, the max HP refuses to show up on token, Bar, sheet or attribute page. At all.
I will attempt this now. Thank you.
Ok, tried deleting the formula from both character sheets, NPC and PC, and removing it from the Attributes tab, even though they appeared accurate. They are back, and still no max HP is listed on either sheet (NPC or PC). Somehow I have taken something and actually made it worse (since before it was just factoring in an old maximum), which is interesting because it literally used to work before September just fine. I'm not trying to write my own codes or formulas or anything, I promise...I know I'm not good enough for that. I don't even know enough to tweak an existing formula. 
1452373365

Edited 1452373413
vÍnce
Pro
Sheet Author
Silvyre said: That would be: Vince said: I inspected the default HP formula " (@{CON-mod} * @{level}) + @{total-hp} " which appears to be missing a closing ")". The formula should be " (@{CON-mod} * @{level}) + @{total-hp}) ". The bolded part. i.e. floor((16 + 0 + 0 + 0) / 2) - 5 is @{Con-mod}, (8 + 0 + 0 + 0 + 0) is @{level} and (86 + 0 + 0 + 0 + 0) is @{total-hp} Actually, I think the formula should be (@{CON-mod}) * @{level} + @{total-hp} Actually this should be " ( (@{CON-mod} * @{level}) + @{total-hp} ) "  And I only added a closing " ) " oops.  I'll make the correction. Since this is a user editable field you can enter anything you want into the field, even a flat number for max. 
1452373665
vÍnce
Pro
Sheet Author
I just used ( (@{CON-mod} * @{level}) + @{total-hp} ) in both hp formula fields and it is giving me the correct value for max on my token.
**cries** Oh for the love of.....I was missing the extra "(" in front of the formula. I am on my way to a less-insane day. Thank you. Thank you. Because this is the kind of thing why the rest of us normal people wring our hands and cry desperately for tech support. Thank you very much and now I can fix this.
I'm going to go eat a whole chocolate cake and be thankful that my players don't actually use the forums here....
1452374343
vÍnce
Pro
Sheet Author
lol  Been there.  I'll update the Legacy sheet as well.
Haha, glad this was finally resolved.
1452375292
vÍnce
Pro
Sheet Author
Fix: &nbsp;Pathfinder (old/legacy) Corrected HP formula value to be included within "( )" #1299 <a href="https://github.com/Roll20/roll20-character-sheets/" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/</a>...