Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Macro outputs including function text instead of value

I am trying to roll 1d6 + my character's level divided by 2. The formula I am using is this: 1d6 + floor(@{myname|level}/2) While the command works, the problem is that it actually outputs the "floor" command, rather than the value being added. For example:   My character is level 6, but I would like the output to instead read this: Any way anyone can think of doing this? This is just one particular example, but I've got a number of macros I am making with similar problems.
1581310804

Edited 1581310926
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Try this: 1d6 + [[floor(@{myname|level}/2)]]
That works perfectly! Thanks :)