1 Attachment(s)
[Extension] Ongoing temporary hitpoints
Forge link: https://forge.fantasygrounds.com/shop/items/5/view
NOTE: Use the forge link for the FGU version; FGC version is attached below, but the FGC version won't receive new features anymore
Hi :)
Some days ago there was some request about an effect which applies ongoing temporary hit points, like REGEN but for temp HP while satisfying rules for temp HP (especially no stacking, highest value is taken as usually when you use the temp HP heal button). I uploaded this already on Discord days ago but I thought I can share it here, too. But since I normally not code for 5e, I would be happy when someone can take care of this extension (otherwise I try to remember that for each update, but no guarantee :P I adjusted the code in such a way that it should be as compatible as possible when it is about other extensions and updates).
The effect is TEMPO and its value is (D), so any number or die. It applies temporary hit points at the start of one's turn like in heroism. Be aware of that this extension is probably not compatible with every extension :)
The only "problem" might be some very edge case together with DMGO when it is about the order of when the effects should be applied; e.g., you have 5 HP, 4 wounds and the effects TEMPO: 2; DMGO: 1. When TEMPO gets applied first then you would not fall unconscious, but when DMGO would be applied first then you become unconscious and have to roll death rolls, since temporary hit points do not affect physical states (at least that is how FG treats it seemingly). I was not able to find any answer about what the correct order is in 5e, seemingly noone else asked this somewhere in the internet :D FG now handles the effects in the order at which they are handled in the code; first comes, first served (when both are dice, then the faster die will be served first and so on). But that is a very rare situation, I guess, so, it is hopefully useful for someone else :) A specific order can be forced by adjusting the initiative of the effects (like actor on init 15, then TEMPO at 15.1 for applying TEMPO first for example)
Best,
Kelrugem
UPDATE: After another request/motivation in the Discord, I added a new effect: ROLLON: [table name] <-c [column name]> <-d dice> <-hide>
What this is doing: Exactly as the macro /rollon but as an effect which gets triggered automatically at the beginning of one's turn :) The request was about automating confusion, with that you can let the effect automatically roll the outcome of confusion at the beginning of the turn :)
E.g.: ROLLON: test will automatically roll on the table named test (when exisisting) on the beginning of the carrier's turn :)