# Questions tagged [anydice]

For questions about AnyDice.com, a dice probability calculator that offers probability curves for defined rolls, along with a function library for more complex calculations.

151 questions
Filter by
Sorted by
Tagged with
1 vote
109 views

### How do I calculate the probabilities of two consecutive success results in AnyDice?

I know that rolling with disadvantage gives you a negative bonus in between 1 and 2, that's easy to calculate in anydice.com but how can I estimate the increasing in difficulty that adds an extra roll?...
• 11
1k views

### How do you simulate dependent dice rolls in anydice?

I'm attempting to find the damage distribution (given a target with stats) of a series of two 5e attacks, mind sliver and then two melf's minute meteors. But it seems I'm having trouble modeling dice ...
• 83
110 views

### Anydice help for damage formula based on number of dice above target armor value times the highest / lowest / most common roll above target

A buddy and I were playing around with an idea for a combat damage model using multiple d6, which are reduced by a target's armor. So, here’s the basic idea: Player rolls Xd6, any dice that come up ...
2k views

### Is it better to make two separate contested rolls or one with advantage?

I'm trying to model the benefit of enemies working together in contests with my PCs. Assume I have a pair of enemies that are attempting to shove a PC. They are smart enough for one to use the Help ...
• 3,246
183 views

### How do I get the sum of highest rolled dice normalized for dice count?

My goal it to model a system where you roll xd10 and get the sum of the highest result you got (so "6, 3, 5, 5" becomes 6 and "4, 4, 2, 4" becomes 12), and then see how each extra ...
• 2,485
91 views

### Plotting average result against a variable

I'm trying to figure out how to create an odd dice curve - specifically, odd when plotting between an axis of average result versus amount of dice (so xd6 gets 3.5 for x=1, 7 for x=2 and so on). But, ...
• 2,485
64 views

### AnyDice: Nested highest/lowest function

I understand how to keep highest or lowest die every time: ...
• 155
1k views

### Modelling "rolling d6 >= charges left expends a charge" mechanics with anydice

You have X charges left. Rolling a d6 equal or over the number of charges left depletes a charge. How many uses do you get out of a starting X charges? e.g. 1 charge, 1 use left. 2 charges, rolling 2 ...
• 2,114
591 views

### How can I get "Number of dice in pool A higher than highest of pool B" in anydice?

What I'm looking for is this: pools A and B roll Xd6 and Yd6, respectively. The result is determined as follows: The highest roll among all dice is rh, and the pool it comes from is Ph. The other ...
• 2,114
599 views

### How to calculate the likelihood of success for increasing DC

How would I go about calculating the odds of success someone has, given N total tries at a skill check, a skill modifier of M, ...
• 159
163 views

### AnyDice error: Boolean values can only be numbers

I'm trying to write code that helps calculate the probability of success. Negative luck adds cursed dice to the bonus dice pool, which in the case of a crit burns additional dice from the skill level. ...
• 43
95 views

### How to count the highest number of matching results?

For a Xd6 dice pool I want to know probabilities of getting a specific number of same outcomes, for all numbers from 2 to X. For example, I roll 5d6 and get 2, 3, 2, 2, 4 – the result is "3" ...
• 61.4k
3k views

### What is a decent dice rolling strategy for partial/half advantage?

I understand that 5e is all about advantage and cancelling, etc. I understand advantage well, and the statistics. I was hoping there would be a commonly known dice rolling strategy with similar ...
• 373
539 views

### Have highest die be rerolled if a 1 is rolled in AnyDice

The system uses a dice pool of d4s of up to 3 dice (3d4 is the maximum number of dice you can roll). If at least a 4 comes up in the pool, that's a success. If the highest number is a 3, it's a ...
424 views

### Adding the probabilities of multiple outcomes in AnyDice

I don't know if this has been answered before. I've certainly looked for similar questions for a few hours, but even if I find similar ones, I still cannot work out the answer to this problem. In a ...
• 73
1k views

### How do I implement this specialized roll-and-keep mechanic in AnyDice?

I need help with an anydice function. I'm looking for a modified Roll and Keep type of mechanic, where if you have more dice that roll the max result than you are keeping, each discarded max result ...
• 111
1 vote
137 views

### Using nested if/else statements in Anydice

I'm trying to figure out the probabilities for the damage of a DOT spell which has the target roll a save each turn to see if they get rid of its effects. To do this I'm using a bunch of ...
293 views

### Anydice: Counting Successes and Rerolling Failures In Dice Pools

I'm trying to model my RPG system in Anydice. The rules are: Roll 3d20. A die that rolls under your stat is a success. If you have advantage, you may reroll a failed die. If you have disadvantage, you ...
2k views

### Struggling with rolling for stats probability calculation

I tried finding a specific statistic calculator, even tried playing with anydice.com, with no success. My friends love to roll dice, but we also want the same playing field when starting a campaign, ...
• 169
111 views

### How can I calculate expected Stunt Points per attack when FIRST dropping a d6?

I’m trying to determine what the math is if you use the AGE STUNT system, but first roll Xd6 and choose the 2 that you want to keep. Note, the STUNT Die would be rolled at the same time as the Xd6 and ...
• 61
2k views

### Roll Xd6, keeping highest value and adding +1 for each duplicate of that value?

I'm making a card/dice game and I'm trying to set something up on Anydice to compare the odds of the dice rolls, but I'm having some trouble wrapping my mind around some of the language Anydice uses. ...
• 14.8k
201 views

### How do I handle rerolls for Savage Worlds

I know the Wild Card rolls function like this in AnyDice: output [highest of [explode 1d6] and [explode 1d6]] How can I factor in a reroll? Assuming I miss the ...
• 37
380 views

### Modeling a system where you roll Xd20 and take highest, plus the second highest if the first one is a critical, etc

I'm making my own combat/task resolution system (loosely based the advantage mechanic from D&D 5e). In this system a roll with "advantage" is resolved as follows: Roll Xd20 and take ...
265 views

### how to calculate the odds of 5d6 higher than 1d10?

In anydice or troll, how can we calculate the odds of rolling 5d6 and counting the successes against 1d10? Successes are every result in each six-sided die equal or higher than the d10 result. This ...
298 views

### How can I write a formula for this houseruled roll in AnyDice?

So here it goes: The roll is a pool of dice of d6s, d8s, and d10s. The minimum dice pool is 1d6 and the maximum dice pool is 10 dice. It could be 2d6 + 2d8 + 1d10, for example. Rolling 5+ is a ...
156 views

### Calculating Modified V5 Dice Probabilities with AnyDice

My game uses 5th edition rules with a house rule where 1s subtract successes and 10s count as two successes. 2s through 5s count as no successes and 6s through 9s count as single successes as normal. ...
39 views

### AnyDice: semantics of output headers in "export" view

I hope this is on-topic: In AnyDice, when choosing the "Export" view, output d6 is displayed as: ...
• 123
210 views

### Disadvantage/adversity dice pool mechanic that knocks dice greater than 1 out of the pool and adds 1s to it

I am working on a dice pool system for skills and actions to be used in a new system. In this system, any rolls of 1 will negatively affect the outcome of resolving an action using a dice pool. In ...
• 33
105 views

### How to count near duplicates in a mixed pool using AnyDice?

Following on from this question: How to count duplicates in a mixed pool using AnyDice? I'm also interested in the much harder question of using AnyDice to look at how much easier some dice mitigation ...
• 3,176
328 views

### How to count duplicates in a mixed pool using AnyDice?

The following question provides a function that answers the question for a single kind of die; How do I count the number of duplicates in anydice? I want to count how many duplicates there are in a ...
• 3,176
269 views

### Opposing d6 Pools, # of higher dice

I've read dozens of posts here, and wrestled with with anyDice suggested code, but nothing matches quite what I am looking for. I think it is simple in concept: for opposing dice pools of 1..6d6, I ...
210 views

### Chances of specific sequence in X amount of dice?

So after fumbling around in AnyDice for awhile, I’m struggling to find a solution. Here’s what I’m looking for: What are the chances of rolling a specific number that matches a specific sequence in ...
167 views

### How to calculate Vampire the Masquerade 5 odds on anydice?

VtM5 has many quirks that make their calculation of probabilities really hard. But ignoring hunger dice, how can I calculate the distribution of success of a given pool considering that each pair of ...
• 1,382
122 views

### How to make Anydice see if two values are the same among 3 dice and keep them?

Is there a way to calculate/simulate rolling 3d20 and spit the middle one (that is easily done with middle function), or if its value is the same as the high or the low one, spit that one too? Here it ...
• 1,382
819 views

### Is it possible to model these probabilities in AnyDice?

I was asked by a pal to help him model a dice mechanic in AnyDice. I must admit I am an absolute neophyte with it, and I offered to solve it using software I'm better versed in. I'd like to be able to ...
• 203
107 views

### How do I graph the chance of success with a range of dice pools against a range of target numbers?

I'm having a hard time coding an anydice script to show what I want. Let me contextualize the mechanic I'm trying to simulate: You roll a POOL of d10 against a TARGET number. If at least one die from ...
• 41
511 views

### How can I calculate the distribution of 3d6, keep and rerolling any 1s and 2s, once? [duplicate]

The way my DM wants to try is roll 3d6 and reroll any 1's or 2's once. If you roll a 2 and the reroll ends up being a 1 you have to take the 1.
• 1,130
301 views

### My any-dice program times out, when calculating large limit break checks

Someone in chat helped write an anydice program to calculate limit breaks in an RPG I'm developing, but after making some changes, it times out for dicepools > 7. The system I have in mind, is that ...
• 12.6k
397 views

### AnyDice -- efficiency of code calculating rolls hitting a target with mixed pools; hitting the 5 second barrier

I have some code that is hitting the 5 second barrier; ...
• 3,176
1 vote
108 views

### How do I check the lowest roll in a pool of mixed dice in Anydice?

I'm trying to build a function to model not just a roll of the dice, but to have boolean operators to toggle using various powers that effect the dice. I've gotten everything to work except for one ...
814 views

### How to calculate the probabilities for eliminative dice pools (dice cancelling mechanic) in Neon City Overdrive?

The game Neon City Overdrive uses the following resolution mechanic for checks: create a pool of Action Dice and (possibly) another pool of differently-colored Danger Dice (all d6, generally up to 5 ...
• 91
578 views

### How do I use Any Dice to calculate Mutant Year Zero d66 odds?

In Mutant Year Zero, Alien RPG and Forbidden Lands, the designers include a lot of d66 tables, in which a d6 is rolled for the tens and one for the units, giving 36 possible results (11, 12, 13, 14, ...
76 views

### Subtracting opposed dice in Anydice

In some games, opposed dice rolls are subtracted. An example (although this is a boardgame, not an rpg) is Twilight Struggle. Not only is it important to determine who won, but by how much. A similar ...
• 147
939 views

### How to model opposed rolls in Anydice?

I've seen there are quite a lot of brilliant people on this board answering questions about Anydice. I am hoping somebody will be kind enough to answer this one too. I want to use anydice to figure ...
• 113
259 views

### For anydice.com, is there a way to set a total number for three rolls?

I am very, very new to writing code and working on designing a RPG. As part of that, I am trying to do a simulation of three weighted dice rolls, ranging from 1-12 where I set the limit of how much ...
• 41
245 views

### AnyDice: Sum of dice pool + highest value from the same roll

I want to calculate the sum of a mixed dice pool, but add the nth highest value of that pool twice. For example the code output 2d4+1@2d4 Gives the sum of 2d4 ...
• 3,176
325 views

### AnyDice: Second highest roll from mixed pool

I'm struggling to adapt Ilmari Karonen's answers from these two questions to my problem. I want to look at the second highest value from various pools. ...
• 3,176
574 views

### AnyDice: How to calculate opposed roll probabilities for an unusual mechanic

I'm currently playing with a dice mechanic that is basically: Roll 2d10, compare each dice to a target number. If one rolls equal to or below the TN, it's a weak success. If both roll equal to or ...
• 43
3k views

### How many times can the Psionic Talent Die be rolled before becoming unusable?

In the Psionic Options UA all the subclasses get access to a Psionic Talent Die that works as follows: Changing the Die’s Size. If you roll the highest number on your Psionic Talent die, it ...
• 4,639