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 .
×

How can I use the attribute in the dice?

Hi. I'm making some dices for my friend's own game rule. I will give same attributes to all characters, and roll the dices with the value of the attributes.…(A) For Ex. ATT:15 / LUCK: 5 /roll (15-5) + 1D(3*5) (ATT + ( -LUCK ~ 2*LUCK )) I know @{character name|attribute}.  But if I use that macro I have to make the dices for each character. I think it's too inefficient. I tried @{selected|attribute}, but I only got the massage "You attempted to use a roll command looking for the value of a selected token, but no tokens are selected." (I pressed the macro button in the 'As character' state, but it didn't work.) I don't know how to fix this. And for such a long formula(like the example), is there a code that can mark a critical hit? 'cs>10' does not work for long formulas.…(B) I also want to know if there is a function that treats as 0 when the result of the formula is negative.…(C) What I really want to know is (A). (B) and (C) are less important. Thanks.
1603286346

Edited 1603286443
A) I know @{character name|attribute}.  But if I use that macro I have to make the dices for each character. You can try with selected or target in place of character name I tried @{selected|attribute}, but I only got the massage "You attempted to use a roll command looking for the value of a selected token, but no tokens are selected." (I pressed the macro button in the 'As character' state, but it didn't work.) This is because you must have selected the token of the character you want to roll the macro when you use the macro. If you se "target" it will ask you to select the token of the character you want to make the roll