
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:
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:
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.
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?
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".