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

Contested Keep Highest Rolls

Hi Everyone, So have been making a custom character sheet for the Smallville RPG system and have been working on making the various types of roll work. This has been going well so far but I've hit a bit of an impasse that I need some help with. /roll {@{resource_pool}+{@{challenge}+@{limit}+@{dice_pool}}kh2}>@{target_number} This roll adds the dice from the resource pool and then keeps two dice from the remaining attributes including the main dice pool. I would like this result to then be compared to a target number for successes, but when I do I get the error message: " G expression is not supported in a single sub-roll expression success check " which implies I cannot do this in a single roll. I would like to know if there is a way to make this work. Thanks, Everyone
1605964495
The Aaron
Roll20 Production Team
API Scripter
It sounds like the issue is in the Group, the {...}kh2 part. I'd suggest testing each part separately to try and track down the point of failure, then you can try to address it by making changes.  It's hard to know for sure what to recommend without knowing what is in each of the attributes. I'm guessing all the ones in the Group are dice expressions, like 2d6 or similar. That's probably not going to work as you'll end up with a group of one which is the sum of the dice, conceptually like {27}kh2, which won't have a "high two". 
1605969644
Oosh
Sheet Author
API Scripter
Does it work if you use commas instead of pluses? But yeah, the contents of the Attributes would help. You might need to add some dummy 0d0 rolls in there.
1605977339

Edited 1605977960
Thanks The Aaron. I did some testing and the point of failure is definitely adding the "<@{target_number}" or any "<" or ">" condition. when I take out the Kh statement I get left with the " Only one roll expression is allowed in a single sub-roll expression success check " error message. It's basically telling me that I can't get a success calculation on multiple factors at once. Edit: I tried doing it with commas instead and got " Cannot mix M and sum rolls in a roll group ". This does however work when applied to the example roll at the bottom so I'm not quite sure what's going on. As for the numbers being run I'll give an example to go along: /roll {@{resource_pool}+{@{challenge}+@{limit}+@{dice_pool}}kh2}>@{target_number} /roll {{2d4kh1}+{{3d8}+{3d6}+{d10+d12+d4}}kh2}>15