PDA

View Full Version : 5E Token Health Not Updating with Total



MeAndUnique
February 23rd, 2021, 23:25
To reproduce:

Add any NPC to CT.
Place added NPC on any map and note that the token shows a healthy status color.
On CT, set NPC HP to 19 and Wounds to 9.
Increase Wounds to 10 and note that the color changes on both the CT and token.
Set Wounds back to 9.
Reduce HP to 18 and note that the color changes on the CT but not on the token.

This seems to be caused by "hp" being used rather than "hptotal" in manager_token2.lua in the call to TokenManager.addDefaultHealthFeatures.

LordEntrails
February 23rd, 2021, 23:49
Update and disable your extensions. manager_token2.lua is (I'm almost certain) no longer used in any ruleset. Test and verify in a vanilla campaign and then update all your extensions until you find the one causing the problem.

Moon Wizard
February 23rd, 2021, 23:50
TokenManager2 is used pretty widely to provide game system specific changes to token behaviors. I'll investigate shortly.

Regards,
JPG

LordEntrails
February 23rd, 2021, 23:55
TokenManager2 is used pretty widely to provide game system specific changes to token behaviors. I'll investigate shortly.

Regards,
JPG
Oh, thanks for the info. I thought it went away with the ruleset update. But obviously you know the truth!

OP, please do verify it's not an extension issue to help save Moon some time troubleshooting this.

MeAndUnique
February 24th, 2021, 00:37
Sorry! I should have had step 1 as "Create a new campaign with no extensions" as this issue happens without extensions.

Moon Wizard
February 24th, 2021, 17:54
Thanks for the very detailed steps; and even the correct fix!

I'll include in the next 5E ruleset update.

Regards,
JPG