CarlosFdez / pf2e-persistent-damage

Keeps track of persistent damage on actors for PF2E for Foundry VTT
5 stars 4 forks source link

PF2E Persistent Damage

Small module that kept track of Persistent Damage before the feature was built into the core system. Unless you're running an older version of the Pathfinder system, this module can now be removed.

How to Install

Manual Install

In Foundry setup, click on the Install Module button and put the following path in the Manifest URL. You could also use a path from a specific release.

https://github.com/CarlosFdez/pf2e-persistent-damage/releases/latest/download/module.json

Persistent Damage

The module comes with a compendium with two macros, Add Persistent Damage and Process Persistent Damage.

Add Persistent Damage

Use to add persistent damage effects to selected tokens. These effects can be removed either in the sheet or by right clicking in the "effects panel". Make sure the effects panel is enabled in the left toolbar to see it.

image

Once added, persistent damage value can be edited via the effect:

image

Process Persistent Damage

Use to inspect selected tokens for all persistent damage effects and create chat messages for them. On each chat message, clicking on the crosshair button will select the token, making it easier to use the chat damage buttons to apply damage.

image

Inline Roll Dragging

Any inline roll with persistent damageType flavor text such as [[/r 1d6 #persistent mental]] will be converted to draggable links that apply persistent damage. Many compendium entries in PF2e already have these inline rolls.

https://user-images.githubusercontent.com/1286721/122157689-4ae65980-ce39-11eb-85b5-dbf789dfbd29.mp4

Fast Healing

There are some sample fast healing effects in the compendium, but fast healing itself is supported in the core pf2e system, and this module is no longer required to perform fast healing.

Incompatibilities

Modules known to cause issues running alongside this one.

How to Build

It is recommended to use VSCode for the project, but anything else that can handle typescript will work. Node 14 or higher is required.

1) Open a terminal in the root folder 2) npm install 3) npm run watch for development or npm run build for a one time build 4) Build will be in the dist folder. Create a symlink to the foundry modules folder for development.