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

Switching between using @selected to specifying a specific token

Hi all, I have this macro below, but it bugs the players because they have to click the token to roll the dice. Is there a way to modify the macro to select the correct token by name or another method?  The macro below displays the AC that the weapon would hit. /em Shamino Slashes with Stormbringer the Bane of Darkness @{selected|token_name} Hits AC [[-1*{1d20+@{selected|strengthhit}+3-@{selected|ThAC0}}]] Thanks for any help!
1464968594
The Aaron
Roll20 Production Team
API Scripter
Assuming your character is named " Shamino ", you should be able to just use: /em Slashes with Stormbringer the Bane of Darkness@{Shamino|token_name} Hits AC [[-1*{1d20+@{Shamino|strengthhit}+3-@{Shamino|ThAC0}}]] Note that /em  will preface with the character name.
1464987486
Ziechael
Forum Champion
Sheet Author
API Scripter
or replace all instances of @{selected|...} with @{target|...} and they will be prompted to click on the token after running the macro to tell it which one to call on attributes for rather than having to remember to have their tokens selected first. Not a lot of difference but takes those 'dammit forgot to select my token first' moments away?
The Aaron said: Assuming your character is named " Shamino ", you should be able to just use: /em Slashes with Stormbringer the Bane of Darkness@{Shamino|token_name} Hits AC [[-1*{1d20+@{Shamino|strengthhit}+3-@{Shamino|ThAC0}}]] Note that /em  will preface with the character name. Fantastic answer, really appreciate it.  Reducing the statement to a single emote is simply excellent.  I've updated all my macros, and outside of initiative, they are much faster.  I considered rolling entire party initiative with one roll, and throwing it to the tracker, but I suspect my players would prefer to mash their own magic initiative button. Have an ale at the Robin's Breast Inn for your trouble.
Here's a tip for you as the GM, since players don't have access to these chat commands... or you could use the default roll template. /emas The shambling mound lurches forward and tries to slam you into the ground. /as "Slam" Reach 10 ft /as "Attack" [[1d20+5]] /as "Damage" [[1d8+3]]
1465011322
The Aaron
Pro
API Scripter
Zorachus said: The Aaron said: Assuming your character is named " Shamino ", you should be able to just use: /em Slashes with Stormbringer the Bane of Darkness@{Shamino|token_name} Hits AC [[-1*{1d20+@{Shamino|strengthhit}+3-@{Shamino|ThAC0}}]] Note that /em  will preface with the character name. Fantastic answer, really appreciate it.  Reducing the statement to a single emote is simply excellent.  I've updated all my macros, and outside of initiative, they are much faster.  I considered rolling entire party initiative with one roll, and throwing it to the tracker, but I suspect my players would prefer to mash their own magic initiative button. Have an ale at the Robin's Breast Inn for your trouble. I think the fact that it's on one line was completely accidental. =D. But as long as you like it!   Happy Rolling!
You could just make it a token action, why don't they like to select their token, how do they move it?
1465162467
Gold
Forum Champion
Zorachus said: The Aaron said: Assuming your character is named " Shamino "  I considered rolling entire party initiative with one roll, and throwing it to the tracker, but I suspect my players would prefer to mash their own magic initiative button. Zorachus, there is also an API script called "Group Initiative" that has some cool options (letting Player or GM roll initiatives). Also it sounds like you've figured out how to program your own version of the same, using just Macros, which can be done like you said. The reason I'm replying. I thought the same as what you said, assuming that Players would want the agency of rolling their own individual initiatives. Then one day I tried rolling Group Initiative for the Players and the Monsters, all at once, and they all pop open the Turn Tracker. I asked my players, "But do you want to mash your own initiative?" They loved it when I did the init roll for all at once. They said it saved everyone time hunting for their Init macro button, and the time of waiting for the 1 person who would be away-from-keyboard.  They said that since it was still using the RNG (random number generator from Roll20) they didn't feel it was unfair or depersonalized from their characters. And they still felt that they got to roll plenty of their own, since getting the initiative out of the way usually meant that we were starting a combat where they would be needing to roll dice anyway. Last, I agree with Al in making macros that have @{selected should be made as a Token Action macro. This way your Players would have their token selected in-order to pop up that macro button.  So if it's a macro that requires Selected token, make it a Token Macro, this way you know they will be Selected when they click it.
1465165118
vÍnce
Pro
Sheet Author
I use groupinititiative and set it up as a token macro for each player.  I highlight my baddies and roll for them as the DM, while each player gets to roll for themselves.  Everyone is happy.