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

Question about the macros

So me and my players are playing in a d100 game where you need to roll under a certain number and are hoping to roll high for more successes  example  Player is rolling a d100 and wishes to roll underneath 65 however he also wishes to roll high as possible while still remaining below 65 as the tens number represents how many successes the player has with a minimum of 1 success should he roll a success below ten. So say the Player rolls a 45 that would be 4 successes or if he were to roll a 4 that would be a single success.  So is it possible for the RollD20 macro to calculate that and if so would anyone know how to make it where I could add in the option for them to input their own values? so in case they need to roll a 55 or 85? Please and thank you for looking at this and any help you may provide.
1498039271

Edited 1498039292
Loki
Sheet Author
Hi. You can rebuild this functionality if you create an own roll template (for which you have to have a Pro subscription). Then you can pass the value of 65, the value of 65-10, 65-20, 65-30 etc. to the roll template and than decide with rollGreater and rollLess if the roll result is between e.g. 55 and 45. This might get a bit complicated if you have to check for two values (below 45 and below 10), but I think it'd be possible. Greetings
Thank you for your help sadly not a pro member but now I know thank you Loki.
1498055895

Edited 1498070403
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
May have a solution for you. Try this: [[{{floor(1d100cs<[[?{Target}-1]]cf>?{Target}/10),{1}}kh1,{floor(?{Target}/10)}}kl1]] It will give you the degrees of success and will highlight based on whether it is a success or not (green for success, red for failure). The degrees of success is limited to the degrees of success of the target number. If you have an attribute that you use for the target number, you can replace the query with a call to that attribute. EDIT: realized you only had success if you were below the target number, not if you equaled it; macro fixed to reflect this.
Scott thank you that works almost perfectly for what we needed thank you.
1498084976
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Happy rolling
Nice macro!