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 Elven Accuracy

Hi good morning, I was trying to implement a macro to make one of my players use Elven Accuracy, I found many codes on the internet like this:      {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[1d20|Elven Accuracy,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[2d20k1|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[1d20} But none work, they show me the choice box: normal, advantage, Elven Accuracy, or disadvantage. But the only thing that is printed in the chat then is this:      {{query=1}} {{advantage=1}} {{r2=[[1d20 How can I fix?
1682779719

Edited 1682780288
Gauss
Forum Champion
Hi Lyt,  1) Please go to the player's character sheet. 2) Click the attack button that will use Elven Accuracy.  3) Click the Chat box (where you type) on the Chat tab.  4) Hit the "up" arrow on your keyboard.  5) Copy the text in the Chat box It should look something like this:  @{Test|wtype}&{template:atkdmg} {{mod=+5}} {{rname=Rapier}} {{r1=[[ @{Test|d20}cs>20 + 3[DEX] + 2[PROF]]]}} @{Test|rtype}cs>20 + 3[DEX] + 2[PROF]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + 3[DEX]]]}} {{dmg1type=Piercing}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=}}   {{spelllevel=}} {{innate=}} {{globalattack=@{Test|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Test|global_damage_mod_type}}} ammo= @{Test|charname_output} 6) We will be changing the bolded section to this:  @{Test|wtype}&{template:atkdmg} {{mod=+5}} {{rname=Rapier}} {{r1=[[ {@{Test|d20}cs>20,@{Test|d20}cs>20}kh1 + 3[DEX] + 2[PROF]]]}} @{Test|rtype}cs>20 + 3[DEX] + 2[PROF]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + 3[DEX]]]}} {{dmg1type=Piercing}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=}}   {{spelllevel=}} {{innate=}} {{globalattack=@{Test|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Test|global_damage_mod_type}}} ammo= @{Test|charname_output} Note: this macro cannot be used when the player does not have advantage, it will give incorrect results if you use it while you do not have advantage. Edit: If you combine this with a Chat Menu you can give the player a single macro to select a normal attack vs an attack with advantage. I wouldn't try doing that with a query though due to the large amount of HTML substitution involved. 
It works, thank you very much.
Hello, sorry if I reopen the forum. But my player pointed out to me that this macro doesn't crit with 19 (while he could thanks to his subclass). How can I fix?
1683036225
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Lyt said: Hello, sorry if I reopen the forum. But my player pointed out to me that this macro doesn't crit with 19 (while he could thanks to his subclass). How can I fix? Hi Lyt! In that macro above, replace any instance of "cs>20" with "cs>19".
Ah perfect, it works perfectly. A thousand thanks