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 - How to Access the "Cast at What Level" Input Value? DND 5e character sheets

Is there a way to access the "cast at what level" variable that you're asked when you cast a spell with up-cast capabilities? I like writing my own macros, and I would love to be able to use that value. I would think it has  to be like a @{spell_level} or something. Does anyone know? Thanks!
1610577668

Edited 1610577730
Jordan C.
Pro
API Scripter
You just have to match the question exactly which would be  ?{Cast at what level?} Now where you put it is a different situation. For some use-cases you can insert it somewhere in the spell settings, but you can also access it on a new line of a macro. For instance here is what happens when I call Hold Person and use this macro: %{Huck|repeating_spell-2_-MMYAPTVMB0QfP8u3YQ5_spell} ?{Cast at what level?} I selected level 2 and it just outputs the variable. You can do other things like math operations on it or type "Casted at level ?{Cast at what level?}"
That syntax is exactly what I was looking for. Thanks a ton!