cs96and / FoundryVTT-damage-log

FoundryVTT module to report all damage and healing to a separate chat tab
MIT License
9 stars 9 forks source link

Anyway to customize the value used for "hp"? #39

Closed Belgaron closed 1 year ago

Belgaron commented 1 year ago

I use the wp system in 3.5e and while its not fully integrated it is functional with other mods that allow me to customize their "hp" field.

Just wondering if this would be possible as I would love a damage log that works with wp or other custom values.

cs96and commented 1 year ago

I'm not that familiar with D&D 3.5e. What mods do I need to install to use wp? Can you give me a brief example of it's usage? i.e. how do I damage an actor's wp? Do both PCs and NPCs use wp?

Belgaron commented 1 year ago

I mean, all that would be needed for this to work is an option to change the attributes.hp.value and attributes.hp.max to custom values.

If you just want to use wp in your game then all you really need is the "token health" mod. This let's you customize what attribute it adjusts. It's not perfect, but it works enough to keep combat flowing. I just have my PCs heal manually from their token hud.

There is an option in the 3.5e settings to have just players use wp or players and npc. So that's up to the dm.

Also, you technically don't "need" mods to use wp, it's a setting in the 3.5e options. But all the automation uses hp. So we use "token health" to quickly adjust wound and vigor points.

Belgaron commented 1 year ago

This is just a screenshot of the options used in the token health mod. I'm sure it's more complicated than "just add a customize option". But it would be really helpful and less "system specific" so other systems could potentially use it.

If you allowed custom paths and custom labels... any system could theoretically use this mod (I think).

The default hp path is attributes.hp.value and attributes.hp.max and I changed them to use the built-in 3.5e wp and vigor rules [technically inherited from the PF1e code its based on].

What I'm looking for is the option to just change the attribute/path/number being tracked (Not a coder, idk the correct terminology or jargon).

image

cs96and commented 1 year ago

I always had a plan to make Damage Log more generic, by allowing you to track whatever you wanted, but I've just never got round to implementing it.

The quickest solution to your problem will be for me to just hard-code support for vp/wp. But one day (one day!) I do still intend to make the module more generic.

Belgaron commented 1 year ago

Cool. If its a hassle then don't worry about it. I will survive. Probably the only person who uses it anyway. (the wp system, i think everyone would want this mod)

cs96and commented 1 year ago

5d68985c20ae9a15f3de67abddfa82bab049e6b5

cs96and commented 1 year ago

Now available in v1.14.0