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

request - include stamina points for PF2e #9

Closed ditzer252 closed 1 year ago

ditzer252 commented 3 years ago

Great mod! Would you please consider tracking stamina points (an optional rule for PF2e) in the damage log. Thanks!

cs96and commented 3 years ago

The longer term plan is to let you track whatever you want, by letting you enter the path to the attribute you want to track. That could be stamina, gold, or whatever you want. It would also make the module completely system agnostic, and let you track HP in any system.

Some work towards this went into 1.4.0, but I still need to work out how the settings interface would look. I am also unable to do much work on the module until September.

ProfDoof commented 2 years ago

@cs96and, are you still planning on extending this to let you track whatever you want?

cs96and commented 2 years ago

Yes... I just haven't figured out how to do the settings page yet. I have however just made a change that makes this functionality much easier to do.

4c7f2e7cdaa41a1e657f790611ab590d4398a7af

ProfDoof commented 2 years ago

Your calculations only rely on certain possible attributes right? Could you do something like

User wants to be able to track another attributes changes

  1. They go to your configuration page
  2. There are two buttons Add System-Supported Attribute Tracking (1), and Add Manually-Defined Attribute Tracking (2)
    1. If they press a button 1, then you pull up the add/edit attribute modal with a dropdown that is populated with system-supported attributes
    2. If they press button 2, then you pull up the same modal with the attributes populated based on whether they have an actor selected or not. If they have an actor selected that has attributes, the dropdown is populated with the attributes. Otherwise, they just have to manually enter the attribute

The add/edit modal would then have other settings as well,

I like the idea of working on this if I can find time (but you know... work)

cs96and commented 1 year ago

4d230fdbe5ea616a07b3f1c4f3ea27657aed8c9b

cs96and commented 1 year ago

This is now in v1.10.0, sorry it took so long! This just adds support for Stamina Points, it doesn't implement the generic UI to track anything you want.