Skip to content

Adding Temporary Hit Points

Fenris447 edited this page May 2, 2023 · 17 revisions

To add Temporary hit points to a class feature, do the following:

  1. Open the thing on the Editor.
  2. Add a new bootstrap, choose the item PoolWlkBls
  3. Insert the field "livename" and use it to put a name to the Temporary Hit Point Pool
  4. Add a new tag Value.X where X is an unique identifier (see the table below):
  5. Now, add a new Eval script to the thing with the following Settings:

Phase: Final/500
Script Name: Calculate dark one's blessing temp Hp

Code:
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.Disable] <> 0)

~do the math here
var temphp as number
temphp = (the amount of temp HP)

~Use this to add the result to the pool
hero.findchild[TempHpPool,"Value.X"].field[thpMinAllw].value = temphp
hero.findchild[TempHpPool,"Value.X"].field[thpMaxAllw].value = temphp

The idea behind the tag "Value.X" is to find the correct THP pool to add our values. Since some THP pools are added by feats, and due to the possibility of multiclassing, it is possible for a character to have more than one pool. So we use the Value.X tag to make sure we find the correct thp pool to edit.

The following table lists the values used, and where:

Class Feature Value Tag Source Book
Feat Inspiring Leader Value.2 Players Handbook
Battlerager's Reckless Abandon Value.3 Sword Coast Adventure Guide
Long Death Monk's Touch of Death Value.4 Sword Coast Adventure Guide
Primeval Guardian's Guardian Soul. Value.5 Unearthed Arcana - Ranger & Rogue Archetypes
Warlock Invocation Tomb of Levistus Value.6 Unearthed Arcana - Warlock & Wizard
Radiant Resilience Value.7 Unearthed Arcana - The Underdark
Symbiotic Entity Value.8 Guildmaster’s Guide to Ravnica
Defensive Field Value.9 Tasha's Cauldron of Everything
Grasping Tentacles Value.10 Tasha's Cauldron of Everything
Call the Hunt Value.11 Tasha's Cauldron of Everything
Guardian of Nature: Great Tree Value.12 Xanathar's Guide to Everything
Tenser's Transformation Value.13 Xanathar's Guide to Everything
Enhance Ability: Bear's Endurance Value.14 Player's Handbook
Undead Warlock Form of Dread Value.15 UA: 2020 Subclasses
Khrusor, Spear of Heliod Value.16 Mythic Odysseys of Theros
Blessing of the Morninglord Value.17 Icewind Dale: Rime of the Frostmaiden
Charm of the Adamant Value.18 Baldur's Gate: Descent into Avernus