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

Success/Failure based macro question

Hello folks! I have a hard time wrapping my head around the macro systems. I have a game system where players roll multiple d6s with 4+ being a success and the 1s cancelling the 6s out. So far, I've figured out how to make the macro to show every 1 as a fail or every role of 4+ as a success. Is there a way to make a macro that cancels out the 6s on a roll of a 1? Any help is greatly appreciated.
1521318872
The Aaron
Pro
API Scripter
That would not be possible without an API script, which would require the API Pro Subscriber Perk.
Ah, thank you!
1521858838

Edited 1521858923
actually, this might be possible using the true/false comparator, function, essentially: {{{A,B}<C}*((D+E)-E) if (A =< C) then (((D)+(E))-(E)) if (B =< C) then (((D)+(E))-(E)) if ((A > C) & (B > C)) then (((D)+(E))) A = Variable 1 B = Variable 2 C = Comparison D = True E = False for every Variable that meets the comparison value, do true, else do false. so, if you have: {{1d6,1d6,1d6}<1}*(((1)+(-1))-(-1)) {{1,2,3}<1}*((((1)+(-1))-(-1))+(((1)+(-1)))+(((1)+(-1)))) shorthand, that's a 1, because it adds 1, adds negative 1, then double negative 1, then adds 1 then subtracts 1, then adds 1, then subtracts 1 resulting in (1-1+1)+(1-1)+(1-1) (true)+(false)+(false) That being said, I don't fully comprehend how to turn D into a conditional statement, but I'm determined to figure it out, and I know it's gotta be possible, somehow. I'm also not really sure if it is required to be multiplied by D, or where E(false) is explicitly enforced. This type of math I'm not overly familiar with, i'm barely comprehending it, but, in theory, you can take that result, and use it to subtract 6 from the rolls, which you'd need to find some way to extract the values from the comparator, or some way to use them within the comparator, I'm not sure how this would be accomplished. I would also like to point out that there is no way to re-use a Dice Roll (outside of the aforementioned API at Pro Level), once it gets used, it's used, next use it gets re-rolled, even ?{this} doesn't save the result, just the Un-Parsed text. Hey, Aaron, I have an Idea, this is such a popular thing, why not make a 5e Character Sheet that has this functionality? I'm sure absolutely everyone and their mother would love it, you'd likely end up with the single most popular sheet on roll20 (lol as if you needed MORE fame) once word spread that you had such a capability included in your sheet. It probably wouldn't be too difficult, you could likely pick up where the Community 5e Sheet left off, and if anyone would have the know-how, it'd likely be you. I mean, you are pretty widely regarded as an API legend around here from what I can see (and for good reason I might add, you know your shit). I mean, that would allow the Users to access the API for this function with a limited interface to prevent screw-ups, just make the {{this}} a "repeatable", a slot for the math, the comparator, True, and False, write out the little example I mentioned in the first code block (or something similar), include a close button if you made it it's own window, or simply include it as a sub-menu in the "Core Stats, Skills, etc." section. For someone of your skills Aaron, I doubt the entire thing would take you even an hour, complete with the merge request with the Master Thread on GitHub, what do you think? The Sheet would have the API access required, right?
1521862056
The Aaron
Pro
API Scripter
Ha!  I think it would takes little longer than that!  Character Sheets are harder than you might imagine, API scripts are much easier. There’s a reason Actoba dropped support for the Community sheet. =D I do think you could make a series of comparator Roll Templates that let you do some of these general purpose things. If you made a fairly standard set of them, you could get sheet authors to include them in their character sheets so they’d become as ubiquitous as the default roll template.   That’s the direction I’d shoot for. :)
1521918775

Edited 1521919028
The Aaron said: Ha!  I think it would takes little longer than that!  Character Sheets are harder than you might imagine, API scripts are much easier. There’s a reason Actoba dropped support for the Community sheet. =D I do think you could make a series of comparator Roll Templates that let you do some of these general purpose things. If you made a fairly standard set of them, you could get sheet authors to include them in their character sheets so they’d become as ubiquitous as the default roll template.   That’s the direction I’d shoot for. :) heh, heh, heh, I didn't know you did comedy. I barely even comprehend how these things function, I have about 15 Macros built so far, 1 uses the comparator and it's not one I use for anything, it's in my "playtest" group (meaning I am trying to get it to do what I want and failing about as much as a Magikarp vs Ash's Pikachu in Pokemon Yellow), specifically: /ooc &{template:default} {{name=Abyssal Surge}} {{Effect=[[[[{{@{selected|constitution_mod},0}>1}*(@{selected|constitution_mod})]]d[[((@{selected|constitution_mod})*4)]]]]}} {{Action=***-@{selected|token_name} on Touch-***}} I still have no Idea how it actually functions, I just know the concept, I'm also still tweaking that. I somehow run into a parser error when I tweak it too much and it doesn't inline roll correctly, I have no idea how I keep breaking the Brackets, and I plan to weaken that effect somehow, but I have yet to figure out how. Fun fact: [[0/0]]=NaN Also, is there a Sheet you do recommend? I'm finding the Community 5e Sheet useful, and I find the OGL 5e Sheet missing a few too many elements for my liking, but the Community Sheet doesn't seem to handle the @{repeating_X_Y_Z} too well, and there's a LOT of Sheets on here.
1521919612
The Aaron
Pro
API Scripter
I used to used the Community Contributed Sheet, now I use the Shaped Sheet.  The Shaped Sheet really shines with it's companion API script, but it's still pretty great without it, you just miss out on some nice automation (automatic use of ammo, use of spell slots, recovery of arrows, long and short rest recharges, etc).
Ah, so I wouldn't actually be missing out on anything whatsoever at my level then huh?
1521950698
The Aaron
Pro
API Scripter
Just the automation aspects handled by the API script. Still a great sheet without them and a nice improvement over the Community sheet. All the functionality you have on the. Immunity sheet, you’ll pretty much have on the Shaped sheet, plus a whole lot more. 
I notice the Shaped Sheet is (last I checked) missing an adjustable value to use for leveling up. I wish I could access any of the Templates from any of the Sheets. The Community Sheet has some amazing Templates, but the Sheet is all over the place. OGL Sheet has a nice sheet, but the Templates (save the Spell Template) are all bland! Shapeless (last I checked) has no way to adjust the Exp needed to Level Up (not even to switch it to Milestone) so I'm not that big of a fan, they didn't even know how to handle Proficiency Bonus past Level 20 until recently (I filled em in), and Scrolls Sheet is... well, it's Scrolls. I'm pondering switching my Campaign over to the OGL Sheet, but I am currently trying to track down where I saw the at length demonstration of the various options for &{template:default}