mclemente / healthEstimate

See the state of a character's health with a simple mouse-hover.
MIT License
22 stars 34 forks source link

An option to specify which estimation settings apply to tokens #247

Closed OxTailSafu closed 4 months ago

OxTailSafu commented 4 months ago

Hey there, great mod and look forward to trying it some more. I was wondering if there could be a setting in place that'd allow the dm to choose if certain health estimations apply to player characters or npcs.

image

For example, here I have it set so that there are 3 ranges for the game. I understand that you can choose if the estimates apply to either player characters & npcs, however there I think it'd be great if you can further specify if say for instance, only the 50% health estimate applies to npcs while pc's can utilize all 3.

Apologies if I'm not making much sense or if this is already a setting in place, but I appreciate the consideration all the same!

mclemente commented 4 months ago
  1. Add another table
  2. Only input the 50% estimate
  3. Set its JS Rule to type === "npc"
OxTailSafu commented 4 months ago

Oh this is great! Thank you so much, and just for future reference. For player characters, would it be `type === 'pc'?

mclemente commented 4 months ago

It depends on the system. On dnd5e, it is character. You can check all the actor types in a system by inputting Object.keys(CONFIG.Actor.sheetClasses) on the console, ignoring the base.

You're welcome. If that's all, I'll be closing this issue.