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

Macros do not multiply

Hi there! I have encountered a strange problem with macro commands. While playing a campaign with many level-ups I've come across updating macros over and over again. I decided to create a lvl macro called #LVL (the formula being simply the number of my current level), so i could modify just this one instead of all level-dependant skills. Things were easy when something was equal to the lvl number, or needed adding a constant modifier. But all crashed when I tried to multiply. Say the spell lasts for 10 times the level. And say the level is 6. The command [[10*6]] gives a proper 60. But [[10*#LVL]] gives a 10... Tried loads of variations. The only one working was to go for /r 10*#LVL, which eventually gave 60, but with two additional lines of text ("rolling" and "10*6" to finally give "=60"). Is there actually a way to include #macro in a multiplying process or is it a no-goer? Would really appreciate all the help ;] P.S. We are not using character sheets, so answers according to those would not help!
1588258166
The Aaron
Roll20 Production Team
API Scripter
Because of the order of operations for formula, that won't work.  You aren't using Characters, but you can actually handle this with a general purpose character.  Just create one and name it something like "Numbers", and give it an attribute named "LVL", and set your level number or formula there.  then you can do: [[10*@{Numbers|LVL}]] And have the utility of variables you update in one place.
Ok, so multiplying #macro will never work, but @makro does. So it's a script limitation, right? Then that's beyond my understanding :D Thx, for the go-around :D Didn't think about that. Will gladly try it next time ;] Cheers