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

Targeting Tokens

1386388889
Tom
Plus
Sheet Author
Is there a way to make tokens targetable in play without giving my players permission to edit/control them?
1386389219

Edited 1386389340
Gauss
Forum Champion
Yes but only on the Dev server right now. It is part of the Rugged Reroll which should be making the move to the Production server December 16th. @{target|attribute} is the basic format. There are variations for name and bars.
1386390538
Tom
Plus
Sheet Author
Ah! Great! Another reason to get excited about the upgrade.
1386406163
GiGs
Pro
Sheet Author
API Scripter
The Rugged Reroll is due for release on the 16th. Not long to wait!
1387309104

Edited 1387309152
Tom
Plus
Sheet Author
Ok, so just to be clear, if I want an Ability to target a token attribute, I just use the @{target|Attribute}, just as I previously would have used @[selected|Attribute}, right? (I've tested it out and it seems to work, but I want to make sure I'm doing it right.) Also, is there a way to keep a single target active through successive rolls? Say I target a token for an attack and succeed. Is there a way – in a macro – to roll damage against that same target without having to select it again?
1387310836

Edited 1387311782
Gauss
Forum Champion
All instances of "target" in a macro will target the same target. Example macro: Macro name: dual attack Macro body: /emas @{selected|token_name} attacks @{target|token_name} with his first attack! /roll 1d20 /emas @{selected|token_name} attacks @{target|token_name} with his second attack! /roll 1d20 Selected: Archer Target: Dwarf Macro output: Archer attacks Dwarf with his first attack! 1d20 is rolled Archer attacks Dwarf with his second attack! 1d20 is rolled Edit: to target multiple targets you can use @{target|target1|token_name} then @{target|target2|token_name} etc. And in case it wasn't clear, token_name is just one more attribute for this purpose. :)
1387312338
Tom
Plus
Sheet Author
Right, but the thing is due to the way damage works in Witch Hunter (excess successes to hit are applied to damage), I have to use two different macros for each exchange: an attack and a damage macro. Alternatively, is there a way to get a macro to execute in two parts? :)
1387312651
Gauss
Forum Champion
You can embed a macro in another macro or combine the macros but if you are pressing two macros then the answer is no. It sounds like you have to press two macros and cannot combine them.
1387313157
Tom
Plus
Sheet Author
That's pretty much what I figured. It's one more step, but it works just as well. Ah well, gives me something to shake my fist and demand for Rugged Rollout 2! ;)
1387313841
Gauss
Forum Champion
Well, that level of cross-macro automation is possible with the API. I would check with the API forum. Note: the campaign owner will need to be a Mentor to use the API.
1387314201
Tom
Plus
Sheet Author
We're two sessions in and about to go to Supporter level. Let's see if the campaign has legs before we invest beyond that.