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.

Filter by
Sorted by
Tagged with
1 vote
2 answers
452 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?...
jose's user avatar
  • 11
9 votes
4 answers
2k 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 ...
brubsby's user avatar
  • 192
6 votes
1 answer
198 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 ...
bighatjustin's user avatar
11 votes
5 answers
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 ...
highbandwidth's user avatar
5 votes
4 answers
345 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 ...
ThanosMaravel's user avatar
4 votes
2 answers
265 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, ...
ThanosMaravel's user avatar
3 votes
1 answer
264 views

AnyDice: Nested highest/lowest function

I understand how to keep highest or lowest die every time: ...
kando's user avatar
  • 165
9 votes
6 answers
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 ...
Hypergardens's user avatar
  • 2,244
8 votes
1 answer
603 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 ...
Hypergardens's user avatar
  • 2,244
5 votes
2 answers
1k 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, ...
fyrepenguin's user avatar
4 votes
1 answer
583 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. ...
BaoBao's user avatar
  • 43
2 votes
2 answers
485 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" ...
enkryptor's user avatar
  • 65.4k
25 votes
6 answers
4k 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 ...
Dev's user avatar
  • 373
8 votes
2 answers
775 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 ...
Victor Julio Hurtado's user avatar
7 votes
2 answers
819 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 ...
Kreodun's user avatar
  • 73
11 votes
4 answers
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 ...
user72606's user avatar
  • 111
2 votes
2 answers
337 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 ...
Mythtic B's user avatar
5 votes
3 answers
793 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 ...
decon_structed's user avatar
16 votes
5 answers
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, ...
Fisho's user avatar
  • 179
6 votes
1 answer
153 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 ...
Leberus's user avatar
  • 123
22 votes
2 answers
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. ...
Man_Over_Game's user avatar
4 votes
1 answer
348 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 ...
JSalyers's user avatar
4 votes
1 answer
557 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 ...
Outsmart_me's user avatar
3 votes
3 answers
335 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 ...
Dani Cano's user avatar
2 votes
1 answer
486 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 ...
Glauco Lessa's user avatar
2 votes
1 answer
271 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. ...
False Epiphany's user avatar
2 votes
1 answer
83 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: ...
Peter's user avatar
  • 123
4 votes
1 answer
302 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 ...
Loopyob's user avatar
  • 43
2 votes
1 answer
142 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 ...
Isaac's user avatar
  • 3,276
5 votes
2 answers
444 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 ...
Isaac's user avatar
  • 3,276
4 votes
3 answers
331 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 ...
John Troxel's user avatar
6 votes
1 answer
271 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 ...
Shemulator's user avatar
6 votes
2 answers
469 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 ...
Luiz Borges's user avatar
  • 1,392
2 votes
3 answers
285 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 ...
Luiz Borges's user avatar
  • 1,392
7 votes
2 answers
984 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 ...
rasher's user avatar
  • 203
4 votes
1 answer
174 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 ...
Set's user avatar
  • 41
4 votes
3 answers
711 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.
huginn's user avatar
  • 1,160
6 votes
2 answers
408 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 ...
AncientSwordRage's user avatar
6 votes
1 answer
470 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; ...
Isaac's user avatar
  • 3,276
1 vote
1 answer
154 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 ...
horomancer's user avatar
10 votes
6 answers
1k 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 ...
wargaluk's user avatar
  • 111
8 votes
2 answers
861 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, ...
Étienne Vézina's user avatar
4 votes
2 answers
142 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 ...
aphid's user avatar
  • 147
11 votes
1 answer
1k 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 ...
Nathal's user avatar
  • 113
3 votes
5 answers
515 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 ...
Adair's user avatar
  • 41
2 votes
1 answer
433 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 ...
Isaac's user avatar
  • 3,276
3 votes
2 answers
417 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. ...
Isaac's user avatar
  • 3,276
4 votes
1 answer
989 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 ...
Xio's user avatar
  • 43
8 votes
3 answers
4k 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 ...
L0neGamer's user avatar
  • 4,737
6 votes
2 answers
2k views

How can I calculate the distribution of “Roll 3D6, reroll any dice once, treat all 1's as a 2” in AnyDice?

I'm wondering how to use Anydice to calculate the following: Roll 3d6, treating all 1's as 2's, you may reroll each die once, so we do this if the roll is below the average. So 3d6, can reroll each ...
DETIVA's user avatar
  • 160