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

Creating a macro

Hello I want to create a macro with critical success of 5% and 96% critical failure here is where I am : 1D100 < [?{Compétence|mental,70|Physique,40|Social,30}+?{Bonus}+?{Focus|Non,0|Oui,10}] Thank you
1461156915
The Aaron
Roll20 Production Team
API Scripter
Do you mean that 5% and lower on a 1d100 would be critical success and 96% and higher would be critical failure? [[1d100cs&lt;5cf&gt;96]] See: <a href="https://wiki.roll20.net/Dice_Reference#Critical_Su" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Critical_Su</a>... So, something like this seems like it does what you want to do: [[ 1d100cs&lt;5cf&gt;96&gt;[[?{Compétence|mental,70|Physique,40|Social,30}+?{Bonus|0}+?{Focus|Non,0|Oui,10}]] ]]
Thank for help [[ 1d100cs&lt;5cf&gt;96]]&lt;[[?{Compétence|mental,70|Physique,40|Social,30}+?{Bonus|0}+?{Focus|Non,0|Oui,10}]] i have : 82&lt;70 and i want : 82 : fail (or 5 : critical sucess)
1461158470

Edited 1461158686
The Aaron
Roll20 Production Team
API Scripter
Let me explain a simpler case which you can then apply to your more complicated one: [[ 1d4cs1cf4&lt;2 ]] 1d4 &nbsp;-- rolls a number between 1 and 4: 1,2,3,4 cs1 -- sets critical success on a 1, which will result in a green border around the die This could be written as cs&lt;1, as &lt; means less than or equal to in this dice engine, so would match 1 and anything lower cs&lt;2 would result in 1 or 2 having a green border cs2 would result in only 2 having a green border cs1cs2 would be the same as cs&lt;2 cf4 -- sets critical failure on a 4, which will result in a red border around the die Similarly, this could be written as cf&gt;4, as &gt; means greater than or equal to in this dice engine, so would match 4 and anything greater cs&gt;3 would result in 3 or 4 having a red border cf3 would result in only 3 having a red border cf3cf4 would be the same as cf&gt;3 &lt;2 -- sets what values on a die are counted as successes.&nbsp; &lt;2 means any value less than or equal to 2, so a 1 or a 2 is considered success in this case Causes the result to be the number of successes, rather than the result of the dice rolled. For one die, this will be either a 1 (success, a value of 2 or less) or a 0 (failure, a value of 3 or greater). For the 4 possible results, here's what would be seen: 1 -- This is a critical success, so the border will be green, it is also counted as a success so the value will be 1 2 -- This is just a success, so will have the yellow border and a value of 1 3 -- This is a failure, but not a critical failure, so will have a yellow border and a value of 0 4 -- This is a critical failure, so will have a red border. &nbsp;It is also a failure, so will have a value of 0 Hopefully that clears up how this works and will allow you to implement what you are trying to make. &nbsp;Definitely let me know if it doesn't.&nbsp;