So I needed to call an attribute and add it to a roll, but cap it (as the attribute can go higher than the allowed bonus) I did some searching and found this 1d8+ @{Level} + (@{Level}-@{Maxlevel})*[[(floor(1/(floor(@{Level}/@{Maxlevel})+1))-1)]] but I have no idea how this is meant to work, and dispute returning the correct answer seems overly complicated Instead a simpler way is this: 1d8+([[@{Level}]]d1k[[@{Maxlevel}]]) The square brackets are not needed in this example, but if your level or max level requires any math like floor(@{Maxlevel}/3) then they are needed. But the question is if all those d1s would be overly resource heavy compared to the other method? anyway, thoughts? problems? an even better method?