!wammo @{selected|character_id} hit_dice -?{Hit Die|} Hit Die
!setattr --name @{selected|character_name} --mod --hp|+[[?{Hit Die}d@{selected|hitdie_final}]]|
!setattr --silent --sel --class_resource|@{selected|class_resource|max} I have a macro that rolls hit die and adds the rolled amount to the players hp bar but as of right now it will give them too much hp if they roll more than their max and they have to go back through and reset it to their max number. Ex. Player has 15hp. Takes 10hp in damage and now has 5hp. Rolls 12hp on the hit die during a short rest. The macro makes his hp 17 instead of stopping at 15, the max. Does anyone know if I can create a formula to prevent it from surpassing the characters max hp value?