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 .
×
Stuck in a login loop? Try manually signing out and back in before launching your game. Otherwise, contact the Help Center!
Create a free account

Macro : get the player token

Hello, I have a macro that roll dices and take in account an attribute (awe in below example) of the player character. At the moment, i have made that macro as "token action" so that it can get the attribute value. /roll 1d6 + @{selected|awe} ==> It means that it is mandatory that at first the player select its character token before launching the macro. But as the players only have 1 character, and thus only 1 token, i would like that selecting the character token is not needed anymore. I would like to remove the "selected" in the macro and replace it by something else that link automatically to the player token. But i can't find that in the macro documentation. Do you know if this is possible and how ? Thanks in advance.
If the macro is on the character sheet itself, you can just use @{awe} and it will only pull from that character. Or you can use @{charactername|awe} instead. Like @{Bob|awe} or @{MJ|Strength}.
The problem is that i don't want to use "selected" or the character name, i want the macro to be generic (the macro is not on the character sheet) and automatically use the character token of the player.
1471783705
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
There is no way to do this with global macros. Just adjust it as skycaptain suggested and copy-paste it into an ability for each character.
Ok i understand, thank you both for your help :-)