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

[5e Shaped] Selecting own token after targeted attack on another token?

1508627434

Edited 1508627740
Hi! I am new to Roll20, I am not a GM and I have nothing to do with the API, but we have a little issue I'd love to fix. We are playing a West Marches Campaign and have all our characters on a "Character Vault" and export them to the different DM's tables for games, that is why we cannot use "token identifiers" for our makros, because the tokens have different names on each table. That's why our attachers link to traits/feats/spells of the selected token and not of a specific token. One of our DM's helped me set up a "attacher" for my "Superiority Dice" and it works perfectly, **IF** I have my own token selected while clicking the attacher on my attack rolls, the problem is the following: When he as a DM attacks (controlling my token) another token with a targeted attack, then roll20 automatically reselects my character for him and he can just click the pink text attacher in chat to roll the superiority dice. When I as a player attack another token with a targeted attack, I do not have any token selected after the attack and have to click on it on the map again, before I can click the attacher. Is there a way to automatically reselect your own token after making a targeted attack? Via API or Makro or simple keyboard shortcut?  I'd love to get some help on this one, so we can resolve this minor issue on our table. (It wouldn't bother me to reselect my token, if I would not shoot from 600ft range frequently) Thanks for your help!
1508646706
The Aaron
Pro
API Scripter
That’s weird, it should re-select your token after the target click. There isn’t a way to select a token from the api, from a macro or from the keyboard. The mouse is pretty much it. 
Shot in the dark: are you double-clicking to select a target? You only need to single-click.
No I am not, my token gets unselected whenever I click an offense ability. It does not matter if I do it from the popout sheet or the not popped out sheet or from the printout in chat. As soon as I hit the ability to attack my token gets unselected (which makes sense because I need to target something), then I single click my target and after that I don't have anything selected. Even if I wait for a while and do nothing.  But always assume the dumbest solution =) usually that's working ;)
1508689482

Edited 1508689587
A selected Token should not become deselected unless you are clicking on the tabletop itself. Like Aaron said, Tokens are automatically reselected after targeting. If this you experience otherwise, I would suggest beginning troubleshooting by working through the first three steps of our guide to Solving Technical Issues : Step 1: Make sure to use the right browser Please check if these issues persist when using both Chrome and Firefox. Step 2: Ensure that there are no extensions/addons interfering with Roll20 Please disable all add-ons/extensions and anti-virus programs. Step 3: Clear your cache
1508719340
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The Aaron said: That’s weird, it should re-select your token after the target click. There isn’t a way to select a token from the api, from a macro or from the keyboard. The mouse is pretty much it.  Don't you have a bookmarklet that maps token actions to the keyboard?
1508763830

Edited 1508764321
Tried all these things, even uninstalled anti-virus program and installed Firefox in addition to chrome (what I usually use), still doesn't reselect my token. =( I'm a little sad now. I even tried 3 different character sheets/tokens and it works for none of them. Edit: It gets even weirder. It did reselect my token on 2 of my characters. I was just spamming the same attack over and over again and it suddenly did reselect the token but only on ~1/~20 attacks.
1508764170
The Aaron
Pro
API Scripter
keithcurtis said: The Aaron said: That’s weird, it should re-select your token after the target click. There isn’t a way to select a token from the api, from a macro or from the keyboard. The mouse is pretty much it.  Don't you have a bookmarklet that maps token actions to the keyboard? Yeah, suppose you could try that: javascript:(function(){ "use strict"; let keyCode2Index=function(c){ switch(c){ case 48: return 10; case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: return c-49; case 173: return 11; case 61: return 12; } }; $('body').keydown(function(e) { var n,o,t; if( e && e.altKey && (((48 <= e.keyCode) && (58 >= e.keyCode)) || 173===e.keyCode || 61===e.keyCode) ){ n=keyCode2Index(e.keyCode); o=$('#secondary-toolbar ul.mode.tokenactions'); if(o && 'none' !== o.css('display')) { t=o.children()[0].children[n]; if(t) { t.click(); } } } }); }()); Bookmarklet:  In Chrome, create a bookmark and use the above as the URL or Link or whatever it's called.  When in a Roll20 game, click the bookmark.  You can then use alt-1 through alt-0 to activate the first 10 Token Actions on the selected token.
Alt 1 + Alt 2    is using our makros for Initiative and the sheet printout (multiple times it seems). and Alt 3-0 do nothing at all =(
1508770833
The Aaron
Pro
API Scripter
Hmm...  I'm out of ideas.  I suggest a bug ticket.