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

How do I make a macro for Clockwork soul?

Is there any macro that I could change the core die roll to that makes it so all rolls below a ten become a ten? Any help would be appreciated.
1607120000

Edited 1607120050
The Aaron
Roll20 Production Team
API Scripter
Like this? [[{1d42,10d1cs0cf0}kh1]]
Yeah, I tried inputting it in and it works great for skills and saves, but it has a weird interaction where if I do an attack roll, and It rolls below a ten, the attack roll removes modifiers and just outputs ten, if there's no fix for this it's fine, just was curious why it was happening.
1607120769
The Aaron
Roll20 Production Team
API Scripter
If you give a bit more detail about where you're using this roll, it would be easier to try and find a solution for it.
I'm inputting the macro into the "Core Die Roll" section, in the general options part in the settings of the sheet, this is for a roll20 5e sheet.
1607123053
The Aaron
Roll20 Production Team
API Scripter
Ah, that's not going to work out.  I don't think there's a way to make that work the way you want.  Maybe someone else has an idea.  I tried it with a weighted table, but you can't put rollable tables in that field.
Ah ok, thanks for all the help, I don’t mind if it requires a few workarounds, at least it’s something :D
1607136957

Edited 1607139504
Oosh
Sheet Author
API Scripter
It's going to be broken by the Advantage/Disadvantage query, unfortunately. The sheet has the required code in the sheetworkers for Reliable Talent, and I did make a request for that to be made available to the user (like @{rtype}, but an @{rtypeRT} which has the necessary leading { brace inserted dynamically so the user can use grouped rolls etc.), but it was ignored. You could try again over in the 5e sheet thread, but I've given up. What kind of game are you in? Is API available? The most straight-forward method is to use !chatSetAttr to make these changes: You'd need a custom @{rtype} based on your preferred advantage rolling type - I'll use Query Advantage as an example, as it's the most complicated one. Your clockwork soul version would look like this: {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[@{d20CSnest}|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[@{d20CSnest}} You also need to edit both the core d20, and the @{d20CSnest} we've referenced above. @{d20} becomes this: {1d20cs20,1d0cs0cf0+10}k1 while @{d20CSnest} becomes this: {1d20cs20,1d0cs0cf0+10}k1 the "cs0cf0" is optional, it gives it a blue colour which isn't used much, a nice reminder that Clockwork Soul has kicked in. I prefer the 1d0 + 10 to the 10d1 which Aaron had above, just because it makes a bit less mess in the tooltip. With no API, it becomes much more tedious to implement. You can manually paste all of the above into the Attributes on the sheet, which has the advantage of working with all the sheet rolls. The obvious disadvantage is the amount of busywork for a 1 minute ability. Touching anything on the sheet that triggers a related sheetworker will also kill your changes. If you find that you're mostly just attacking while the ability is up, you can save the @{rtype} above as @{rtypeCS}, and the core die rolls as @{d20CS} and @{d20CSnest}, then make a new version of your core attacks referencing those 3 Attributes instead of the default sheet ones: always reference @{d20CS} from base macros, @{d20nest} from within a Query (like the advantage query). You've then got permanent Attributes that the sheet won't touch, but you'll need custom macros for any ability check/attack/save which you want to function with it. If you use "always roll advantage", you don't need the second, HTML-escaped die roll Attribute, and it's a little simpler. Again, tedious stuff, made more irritating by the fact that sheetworkers exist which do all the work we need, and throw it together for Reliable Talent rolls, but we don't have access to it.