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

Need help/information with/about the "target" macro function

1387128836

Edited 1387129332
Hello, I've seen in the macro tutorial a paragraph called "using a targeted token with macro" which I'd like to use. I can't make it work with a "simple" macro though, here is the code I'm using : /roll 1d20>@{target|AC} And with a more complicated macro : /r {1d20!>18+@{Octave|BaB}[BAB]+@{Octave|EnhBonus}[EnhBonus]+@{Octave|Str}[Str Mod]}>{@{target|AC}} What I'm willing to accomplish, as I'm usually a player, is to have a macro enabling me to select a target when I use it that would automatically pit the target's AC against my attack and tell me if it is a success or not. It seems to be what it is made for as far as I can understand it. A question I would be asking myself about that is : Would the AC of the target be hidden if the GM doesn't want it to appear to other players? The macro results in the following error though : No attribute was found for @{target|AC} If that's not how it's supposed to work, can someone please explain me how to use it? Thanks in advance, Octave
1387129979

Edited 1387130005
Gauss
Forum Champion
This is part of the Rugged Reroll that is currently available on the Dev server and should be available on the Main server tommorow. Please try it tommorow. :)
Ok ;) Will it hide the AC of the creature to the players?
1387183215
Alex L.
Pro
Sheet Author
Octave A. said: Ok ;) Will it hide the AC of the creature to the players? As far as I can tell from my testing no. My suggestion would be just not have it or give it a odd name if you are using it for reference.
Well what I would like to do on the player side is to be able to roll against the hidden AC of a creature and to know whether my attack is successful or not
1387231176
Gauss
Forum Champion
Octave, for that you will probably need the API (a Mentor level feature).
Incidentally - I found that I got the "Could not find attribute called AC" error all the time until I copy & deleted tokens that predated rugged reroll on the map and pasted them back on - then it could find the attribute. But yeah, you apparently need api access to make much use out of the new Target class
About that, I'm willing to pay the 10$ a month to get the API feature but can someone explain to me how this can be useful for someone who does NOT GM?
Unfortunately, the API scripts have to be run from a mentor GM account. At best in a non-GM capacity as a Mentor, you could host the game and promote the actual GM to co-GM status, then log in as a player. That would allow API scripts to be used in the campaign.
I find that (at least in your GM-available attack macros) if you put a second line or even a second macro with /w GM @{target|AC} you have a much easier time finding the AC of a target without having to look up character sheets or asking players what their AC is. also, good for spells ( /w GM FORT:@{target|fort}, REF:@{target|ref}, WILL@{target|will} or similar).