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

Drop & Keep Dice from a Pool

I'm not very good at this stuff, so apologies if this is an elementary question. I'm trying to develop a macro for a game that has the players roll a variable pool of d10s (normally 1-4), and then take the highest roll to determine success. It's not a binary success/fail system, instead having tiers for crit success and failure, success with a drawback, regular success, and regular fail. Also, certain tests, depending on the difficulty, require the player to drop the highest roll from their pool, and then use the second highest to determine success/fail. And, another difficulty level forces the player to drop the highest two rolls from their pool, and then use the third highest to determine success/fail.  I'm trying to develop a couple of macros that would serve each difficulty tier's purpose, also prompting the player to enter their dice pool before rolling. The standard difficulty, where the highest roll is not dropped, seems easy enough: ?{Enter Dice Pool|1}d10kh1 I'm having trouble making the other difficulties work. Based on some older threads, I played around with using some combination of kh/dh, but that seems to drop all rolls. So, ?{Enter Dice Pool|1}d10dh1kh1 for example, doesn't keep anything and returns 0. I started messing around with Power Cards, hoping to output the scaling success/failure process more neatly. That was easy enough to do for the standard difficulty. I tried using conditionals for the other difficulty rolls with drop/keep, but no luck as of yet.  Any help would be much-appreciated. Thanks!
1587282193

Edited 1587282722
Hello, Try this: - roll N d10 and keep the highest: [[[[abs(?{Input dice pool|1})]]d10kh1]] - roll N d10 and keep the second highest: [[{[[abs(?{Input dice pool|1})]]d10kh2}kl1]] - roll N d10 and keep the third highest: [[{[[abs(?{Input dice pool|1})]]d10kh3}kl1]] abs() function prevents players to input negative values for dice pool: typing 5 or -5 will count as 5. FYI, ?{Enter Dice Pool|1}d10dh1kh1 mean "roll N d10, drop the highest one AND keep the highest one". It's like "Sir, sorry sir. I didn't understand what to do with the unpinned grenade sir. Do I have to drop it or keep it?" *confused* ;) For the Power Cards I'd be of no help since I'm not a Pro subscriber, sorry. :[
Thank you so much, Erik! These all are working great for me. In my head, I was thinking the drop highest, keep highest was doing it in order--drop the highest, then keep the highest remaining, but yeah, that grenade metaphor makes it 100% clear. :) I'll keep messing around with the Power Cards. Thank you, again!