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

Just need help or advice with a simple macro

1433652623

Edited 1433701723
Hi everyone, sorry if this has been asked before. I am trying to make my life simpler by writing a macro for my healing spells, instead of creating them in the spellbook for each spell level I have available. This is for D&D 5e, and I am a Cleric of Life, hence the extra 2 + 1 / level. For my Cure Wounds, I managed to cough up this macro: /me casts Cure Wounds at Level [[?{Spell Level|1}]], healing @{target|token_name} for [[?{Spell Level|1}d8+@{ ******* |wisdom_mod}+2+?{Spell Level|1}]] hit points, and healing myself for [[2+?{Spell Level|1}]]. It works quite perfectly in the sense that I just have to type in a single number and then it does everything else automatically, except one thing.. My question is, is there any way for me to replace the ****** part by something that would acquire my own wisdom_mod without necessitating the use of @{selected}? For some reason, inputing my character name in there does not seem to work, as it says there is no character by this name.. Because I don't always think of selecting my token, and if I run this macro without selecting my character first, it spams the *&"%*% out of the chat window with error messages. Thanks in advance, if there is a solution, otherwise I'll just suck it up and make sure to click my token first.
1433655838
Gen Kitty
Forum Champion
That's weird, using your character name should work, but I'll let someone else troubleshoot that. The workaround is to make it a token action, thus you can't activate it without having your token selected. If you need assistance with that, I'll happily walk you through it.
1433660039

Edited 1433660560
Alright, I found the problem. On my character sheet, there was a blank space at the end of the name, and so it was throwing the macro off because there was no blank space in the macro code. It's just silly like this..