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

[PF] Embedding macros within a (query) macro

Hello, and apologies in advance for posting what is probably a repeat question. I have read many of the related posts, but could not quite find what I am looking for. What I am aiming to do is have a default macro to represent my PC's caster level. Then, within several different spell macros I want to refer to that caster level. I thought I had this licked, but it is just not working and any help would be very much appreciated. The base macro is simply titled "KCL" and within the macro body I simply typed "[[6]]" (tried "6" first but it also did not work). My actual macro is: Kandros attacks with *flame blade* AC [[d20>cs18+4]] for [[d8+.5*#KCL]] Threat? AC [[d20+4]] for +[[d8+.5*#KCL]] It gives me an error of " SyntaxError: Expected [0-9] but "c" found " If anyone can help I surely would appreciate it, as I'd like to have potentially dozens of spell macros that reference the caster level. Thank you in advance for any help! - Corey
1478983817
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I wouldn't make your caster level a macro. Make it an attribute on your character instead. Then what you're doing should work just fine.
Eh. I don't typically use character sheets; sorry to be difficult. Do we know if there is a way to accomplish what I'd like without the character sheet?
Corey said: Do we know if there is a way to accomplish what I'd like without the character sheet? Yes; insert a space after each #Macro call.
Yes! Got it, thank you both for your time!