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

keyword for "active" character as opposed to "selected"

I have a macro that works if the character selects their token first, this: @{selected|level}D8 of Damage , which rolls 1D8 per level of the character. What I want is to eliminate the step of selecting the token, and have it detect which character is executing the macro and automatically refer to that characters sheet and look up the level. Possible? thanks
1540567824
GiGs
Pro
Sheet Author
API Scripter
There's no way to do that. You could replace selected with target , which will prompt them to select the token after starting the macro.
thanks, that was my fall back plan, which will work but I was hoping to stream line this a bit.
Actually you kind of can. You would have to make a separate macro for each character, but if you replace "selected" (or "target") with the character's name, they would not need to select a token. for example, if character Brian (character, not player) wants to use your macro, the macro for him should be @{Brian|level}d8 damage. You could put this macro on their character sheet, and keep all character specific macros there. If you include a character name (instead of selected or target), anyone using that specific macro would use the level of the Brian character for their roll.
1540606460

Edited 1540606503
The Aaron
Pro
API Scripter
This is really what Abilities in Characters are for. If you put this in a Character Ability instead of a Macro, it always assumes you mean the character it is on, so you’d just write: [[@{level}d8]] Damage You can then set them as a token action, or drag them down to the macro bar (or otherwise create a macro to call them with the %{ } syntax). 
1540634900
GiGs
Pro
Sheet Author
API Scripter
I was under the impression Jude wanted a single universal macro, that would automatically detect which player was using it. There is no way to do that. However, as  Pro user, Jude, you could use a Script to copy an Ability to every PC's character sheet, so that it doesnt require selected or target.