
Hi, I'm new to the Roll20 system and I'm trying to arrange an extra line in my weapon attacks (which I've housed as Abilities in the system) to give my character the following feat:
BERSERKING 1
Gain 1d6 physical DMG to melee hits for each 25% of character's Max HP (13= 3.25) they are currently missing.
I'm having trouble figuring out how to get the percentage read- I've been browsing other examples of macro codes but nothing has clicked yet. Here is an example of another code I way trying to play with: [[ floor(@{selected|Hit Points|max} * [[1d6+25]]/100) ]], but I don't understand *how* to get my 25% value. What I think I want is an if/then read, where "If -25% health, then add 1d6 dmg".
I have no character sheet (homebrew game), but my character's hp is listed as an Attribute.