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

[Celtic Legends: First Legend] roll with a margin of success

Good morning, sir, In the role-playing game Celtic Legends: First Legend, the success of an action depends on the Margin of Success of a roll of a d20. Example: Harald, has a score (MS) of 19 on the long sword, during an attack, a roll of 1d20 and gets a 5. His Margin of Success (Mr) is therefore 19-5=14. However, a rule states that if a character/creature gets a natural "1" (called: "perfect success"), he can roll again the d20 and add the new Mr to the first one. Example: let's take Harald again, he rolls the d20 and gets a natural "1". His Mr is therefore for the moment 19-1=18! Having obtained a perfect success, he rolls his d20 again and gets a "12", his second Mr = 19-12=7. Adding the two throws together, his final Mr is 18+12=30! Here is my question: How do you translate that into a macro? The unlimited throw function cannot be applied because it adds the result and subtracts it from the MS. Sincerely Harald Alvin
1587404886
GiGs
Pro
Sheet Author
API Scripter
I dont think you'll be able to do that with a roll20 dice macro, Its the more complex kind of roll you need the API for, a Pro subscriber perk.
You can maybe split it up to 2 macros where 1 first one will also print and API button to the second macro which you will use only in case of a natural 1, although you would need to also input the result of the first macro by hand
1587435105

Edited 1587435241
Hope this is what you looked for or at least it can help you Part1: /w gm [[?{Margin Of Success?|0}-1d20]] /w gm [Nat1](!#Part2) Part2: /w gm ?{First result?|0} /w gm Final Mr [[?{First result?}+[[?{Margin Of Success?}-1d20]]]] I entered 19 in the Margin of Success like your example and this is the result The first result was 18 so I entered 18 in Part2 and the 27 at the end is 18+9 (where the 9 is the Margin of Success(entered again as 19) - 1d20)
Thank you! The idea is appealing... I'll try it at my next session. Thank you very much for your answers, everyone.
What does [Nat1] mean? Is it an API? If so, I haven't upgraded my account yet, I'm still in free mode.
it's an API button, It acts as a link for in-game, you can use it even if you have a free account like me, but the pro membership allows you to do much more with API