
Hi all. Not sure what I'm doing wrong. I'm trying to script a macro that adds temporary HP when a player uses Fiendish Vigor in 5e. Currently using the D&D 5E by Roll20 sheet for character sheets and the latest version of the ChatSetAttr script by Jakob. I get a "no target characters" error when I attempt to use either variants of the script shown below. The script rolls the appropriate dice and shows the appropriate verbiage in the chat message. It even adds a hp_temp attribute to the character selected, but does not change the temporary value on the main character sheet nor the attribute field. I tried this on HP as well and it gives the same error. I'm running the script as a GM and I have the player token selected when running the script. Version 1 &{template:default} {{name=Fiendish Vigor}} !modattr --sel --hp_temp|[[1d4+4]]!!! {{Temporary HP=$[[0]]}} Version 2 &{template:default} {{name=Fiendish Vigor}} !modattr --sel --hp_temp|{{[[1d4+4]]=Temporary HP added to @{selected|token_name}!}}!!! I'm sure I'm just missing something simple :) -Pak