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

Arcane Recovery Macro Query

I'm trying to make an AR macro calling the wizard level of a multi-class but can't get it to work for some reason. Stripped of flavour I'm using: /w @{selected|token_name} Click [**HERE**](#SpellSlotFix ) to recover up to [[ceil(@{attr_multiclass1_lvl}/2)]] spell levels. You'll need to click again for each spell **slot** to recover. There is a global macro for #SpellSlotFix to do the actual adjustment, that works just fine. The character is Fighter 1 (starting), Wizard 1 I'm getting the following errors: No attribute was found for @{charnameredacted|attr_multiclass1_lvl} SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "s" found. I'm at a loss as to what to try... all help appreciated!
1612190425
Jordan C.
Pro
API Scripter
You will need to drop the "attr" part of the attribute call. If you found that via inspect element there is often a leading identifier like that which isn't needed in the actual call. Try  @{charnameredacted|multiclass1_lvl}
Bingo, thanks. Tripped up by the easiest bit lol!