I do not want the temporary hit point property to be displayed in the token sheet unless the token has temporary hit points.
I keep getting an error in body of roll message when I run the macro.
Code: Select all
[h:status = input
(
"dmg|0|Damage recieved?"
)
]
[h:abort(status)]
[h:if(TempHP == ""),CODE:
{
[h:HP = HP - dmg]
[h:bar.HitPoints = HP / MaxHP]
};
{
[h:if(dmg >= TempHP),CODE:
{
[h:temp1 = TempHP - dmg]
[h:setProperty("TempHP", "")]
[h:HP = HP + temp1]
[h:bar.HitPoints = HP / MaxHP]
};
{
[h:TempHP = TempHP - dmg]
}
]
}
]
[r:token.name] takes [r:dmg] hit points.