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 roll an attack : even or odd

January 05 (1 month ago)

Hello everyone


I'm trying to create a macro to roll for an attack (it's a D20 system more or less like dnd)

My goal is : on a D20 :

if the roll is even : it's the first weapons who strikes
if the roll is odd : it's the second weapon who strikes


can someone help me ?

January 05 (1 month ago)

Something like this?

&{template:default} {{Roll=$[[0.computed]]
[ ](#" hidden null=)}} {{[0](#)=}} {{[1](#)= Even weapon
}} {{[[[{1,3,5,7,9,11,13,15,17,19}=[[1d20]] ]]](#)= Odd weapon
}} {{[0](#)=[ ](#" hidden null=)}}

Without knowing more about what you want the macro to do and what sheet you're using, it's hard to do more.

January 12 (1 month ago)
thanks for the help : i ask it for "Chroniques Oubliées Fantasy" (Dnd like) (Roll20 has their sheet), i need this cause samurai's class has that skill (spinning attack) and if my dice is even = Katana damage (1d10+some bonus / as such, that weapon can crit with a roll of 20 and 19), if it's odd : Wakizachi (1d6+some bonus)