Hi everyone. Thanks so much in advance for checking this question out, and double thanks if you end up helping me out! I've been getting pretty solid with macros over the past year in my 5e D&D game, but this one is stumping me. We're not using any Roll20 character sheets or APIs, but instead are using custom attributes to allow for customized Token Actions while running our character sheets off Beyond. (Most of us do not like the integration through Chrome, by the way, so that's off the table). I want to write a token action that rolls my barbarian's damage, and queries for critical hits, versatile weapons, and whether I'm raging or not. I have the following character sheet ability "%Longsword-Damage": /em deals [[?{Critical?|No,1|Yes,2}d?{One or Two Hands?|Two,10|One,8}+@{ModStr}[Str]+?{Raging?|No,&#8203|Yes,@{RageBonus}[Rage Bonus]}]] slashing damage! What I'd like to do is have @{RageBonus} automatically update with my Barbarian level, allowing me to have one manually-set variable cover a number of automatically-adjusting values (such as Divine Fury and any ability which references character level as well), rather than me having to manually set multiple related values. To that end I've written the following for @{RageBonus}, where @{LvlBarbarian} is manually set. This macro works, so we'll start from there. [[{2,floor(@{LvlBarbarian}**0.5)}kh1]] where "@{LvlBarbarian}" is manually set. If I manually call this version of @{RageBonus} it prints the correct value, for every level 1 through 20, so I know it works by itself . The problem is, when I use this version of @{RageBonus}, it breaks %Longsword-Damage. If the "Raging?" query is set to "no" it spits out incorrect variables and some junk ripped from after the attribute call, and if it's set to "Yes" the macro breaks entirely and doesn't resolve. Is there a way to "trick" the roller into resolving this the way I intend—maybe I'm missing some HTML replacements?—or is the Order of Operations or something else I'm unaware of completely buggering what I'm trying to accomplish? For the record I did try a version with the text from @{RageBonus} in the original macro: /em deals [[?{Critical?|No,1|Yes,2}d?{One or Two Hands?|Two,10|One,8}+@{ModStr}[Str]+?{Raging?|No,&#8203|Yes,[[{2,floor(@{LvlBarbarian}**0.5)}kh1]][Rage Bonus]}]] slashing damage! with and without the double brackets around the implanted text, to no success. This is what prompted me to look at the Order of Operations, and decide that I needed help to either fix it, or tell me it can't be done.