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

Roll Macro for DSA Legacy

Hi together, my first post here and it is a question. I try to set a macro for my player of DSA Legacy, it should do the following roll. A Char wants to climb and roll a D20, then the roll should be compared with two attributes (Dexterity + climb), when the roll is equal or less the sum of the two attributes its a success otherwise a fault. The marco should show whether it is a success or a failure. Hope you understand my english I am no native english speaker. Greeting from Germany
1612883948
David M.
Pro
API Scripter
Assuming the attribute names are "climb" and "dexterity", try this: [[{1d20-(@{selected|climb}+@{selected|dexterity})}<0]] Should return 1 for success and 0 for failure
Thanks for the quick information
Another question, when the sum is 0 can I write "Failure" in the Chat and when it is 1 a success?
1612896718

Edited 1612897073
Kraynic
Pro
Sheet Author
I don't think you can as an inline roll (which would be when used in a roll template).&nbsp; If you just use the /roll syntax, then you can get success/failure. /roll {1d20-(@{selected|climb}+@{selected|dexterity})}&lt;0 <a href="https://wiki.roll20.net/Dice_Reference#Target_Number_.28Successes.29" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Target_Number_.28Successes.29</a> Edit:&nbsp; I guess it prints Successes, but will just say 0 successes on a failure.&nbsp; I thought it used to actually say failure...&nbsp; But I haven't used that syntax in a game for several years, so maybe I am remembering wrong.
1612899779

Edited 1612899993
David M.
Pro
API Scripter
You could also output in a template with a label like "Success?" or "Number of Successes" or something, like this: &amp;{template:default} {{name=Climb Check}} {{Success?=[[{1d20-(@{selected|climb}+@{selected|dexterity})}&lt;0]]}} Returned result would still always be 1 or 0, but might be more clear what the 1 or 0 are referring to.