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

Macro for attacks

Hi everyone: I want to know if someone could help me. I want a macro for my players to make attacks agains AC of my evil minions. Its possible to do? its impossible? Thank you very much I suposse that i need to define some kind of "AC field" for my evil minions.
1387578513

Edited 1387578535
Gauss
Forum Champion
Your players can end their attack roll with: >@{target|AC} Yes, your minions will need an Attribute named "AC"
1387579908

Edited 1387579922
Here's a macro I use: /em reluctantly thrusts the killy end of his sword in the general direction of the @{target|NAME}. Attack roll [[d20 + @{Johnny Steele|ToHit}]] vs. AC @{target|AC}!. In the unlikely event that damage occurs it is [[d6 + @{Johnny Steele|ExDam]] points. In order for this macro to work the character sheet for Johnny Steele needs to have attributes named "ToHit", and "ExDam". Additionally the character sheet behind the token that Johnny Steele is attacking must have attributes named "NAME" and "AC". This macro is set as a token macro so when I click Johnny Steele's token a button pops up in the upper left. Clicking the button prompts me to select a target and once I've done that it rolls and inserts all the correct variables.
Khrain, did you know that @{target|token_name} pulls the name off the token, so you don't need a name attribute.
I dont see an usefull way. It works better if you can write: /roll 1d20+4>(one of the three bars of the evil token) followed by some kind of conditional to roll damage. Its possible to do?
@{target|bar3} will pull bar 3's value. However, macro's don't have any conditionals so you'd either have to have a separate damage macro or just put it in the attack macro and ignore it if you don't hit.
1387661715
Sam
Pro
Sheet Author
I always run my damage macros in conjunction with my attack macros. It's nice to have the damage right there with just the one click and if the attack missed then the damage portion is really easy to ignore.
Then i understand that its impossible to roll an attack vs the minion AC (in bar3) with this macro. /roll 1d20+1>@{target|bar3}
1387735200
Gauss
Forum Champion
jose luis m. , the following will work: /roll {1d20+1}>@{target|bar3} or /roll [[1d20+1]]>@{target|bar3}
Brandon W. said: @{target|bar3} will pull bar 3's value. However, macro's don't have any conditionals so you'd either have to have a separate damage macro or just put it in the attack macro and ignore it if you don't hit. I ended up using one attack and two damage macros for each attack. The first damage macro would be for a successful normal hit, the second would be set up for if the attack was a crit (max value on damage dice, extra damage dice, an added "save ends" effect, or whatever applies)