r/RPGdesign • u/jiaxingseng Designer - Rational Magic • Dec 15 '17
Workflow need help / advice for automated statistical testing
At a playtest (where I was not present) a playtester has voiced a consensus opinion at the table that my game has a god-stat - DEX. I'm not sure if they playtested the new rules correctly. But anyway, I want to create an automatic testing script / program. Problem is, I'm not a programmer. So I need help. I have tried to set this up in anydice, but could not really get started. I am trying to do this on a calc sheet in libreoffice... that also does not seem right. I do not know perl / python / whatever is used to actually program. I did take Basic and C programming classes in high school. Generations ago.
Let me describe the system and how I want to test.
rolls
- roll is 2d10
- advantage-roll is 3d10, keep highest 2d10. However, making a roll-advantage means only can attack every other round.
- AttackRoll is 2d10 + 2 + STR or DEX, whichever is higher
- Attacks are successful if the AttackRoll >=AC.
- Feat is what happens when roll is 4 or more higher than AC.
- In RULES VARIANT #1 (see below), a Feat for Fencer is 3 more than AC.
- CriticalResistRoll is successful if roll + STR >=15
stats
- Warrior has STR 6, DEX 1.
- Fencer has STR 1, DEX 6
- WarriorAC is 12
- FencerAC is 18
damage and armor
- Warrior does 3 Damage on hit.
- Fencer does 1 Damage on hit.
- When an attack does 2 or more un-blocked damage, the person receiving the attack can make a CriticalResistRoll to reduce the damage by half, round down.
- When a character has received 4 or more damage,they are in a critical state. Any damage will then require they make a CriticalResistRoll or be taken out (let's say they die). They are also taken out if they receive 8 damage total.
- There is also Block, a function of armor. Block is ablative. As armor absorbs damage, it loses the ability to absorb more. 1 Block absorbs 1 damage. Block is used up before damage is applied to the character.
- For testing purposes, the Warrior has 3 Block. The Fencer has 0 Block.
variants and variables.
- Initiative is independent of these stats, so will not test. However, as it can influence who get's killed first, I need this to be 50% odds.
- RULE VARIANT #1 (current): If the Fencer’s weapon attack roll is 3 over the AC (a "Feat"), +1 Damage
- RULE VARIANT #2: If the Fencer’s weapon attack roll is 4 over the AC (a "Feat"), ignore BLOCK
testing
I would like to somehow test 100 iterations of each of these scenarios (each iteration plays until one or the other dies):
- Fencer (STR1, DEX6, AC18) vs. Warrior (STR6, DEX1, AC12, Block3) RULE VARIANT #1
- Fencer (STR1, DEX6, AC16) vs. Warrior (STR6, DEX1, AC12, Block3) RULE VARIANT #1
- Fencer (STR1, DEX6, AC18) vs. Warrior (STR6, DEX1, AC12, Block3) RULE VARIANT #1
- Fencer (STR1, DEX6, AC16) vs. Warrior (STR6, DEX1, AC12, Block3) RULE VARIANT #2
- Fencer (STR1, DEX6, AC18) vs. Warrior (STR6, DEX1, AC12, Block3) RULE VARIANT #1 warrior makes advantage roll
- Fencer (STR1, DEX6, AC18) vs. Warrior (STR6, DEX1, AC12, Block3) RULE VARIANT #2 warrior makes advantage roll
5
u/[deleted] Dec 15 '17
I must ask: does lt matter?
If there is/was general consensus your DEX stat feels like a god stat, no amount of hard math will change that.
In your place, I would run a few tests that focus on dex characters, how they feel and how they actually work. Statistics will only help you with the latter, while the former is really the important part.
As for them playing the game wrong; this is the most important part of your post.
If they played your game wrong, no amount of statistics will help you. You need to talk, to the GM of the test and get as complete a walkthrough of the session as you can.
If they ran it wrong, but ”as written“, the flaw is within your writing. If they ran it differently from written, you need to know why.
In any case, you need to communicate with the testers, not dig into statistics, if you wish to find the source of the ”problem“.
Sorry for not answering your post at all.
4
u/htp-di-nsw The Conduit Dec 15 '17
So, as the tester in question, I can add insight to this:
1
u/kauefr Dec 15 '17 edited Dec 15 '17
There are some inconsistences in your description, help me understand it.
When a warrior gets a feat, what happens?
A fencer can only get this with a feat, is that right?
EDIT, other things:
If someone with 1 block takes 3 damage total (1 blocked, 2 pass) do they have a chance to mitigate with a crit roll?
DEX is literally useless. there's 0 reason to have DEX instead of STR in your description.
1
u/kauefr Dec 16 '17 edited Dec 16 '17
OK, after some testing here are some results:
I tested the win ratio under rule 1 varying Fencer's AC from 0 to 30, each test with 10000 fights
Fencer's AC --- [Warrior wins, Fencer wins] (RULE 1)
ac = 0, wins = [9659, 341]
ac = 1, wins = [9685, 315]
ac = 2, wins = [9654, 346]
ac = 3, wins = [9690, 310]
ac = 4, wins = [9700, 300]
ac = 5, wins = [9688, 312]
ac = 6, wins = [9654, 346]
ac = 7, wins = [9677, 323]
ac = 8, wins = [9686, 314]
ac = 9, wins = [9692, 308]
ac = 10, wins = [9698, 302]
ac = 11, wins = [9617, 383]
ac = 12, wins = [9579, 421]
ac = 13, wins = [9412, 588]
ac = 14, wins = [9199, 801]
ac = 15, wins = [8865, 1135]
ac = 16, wins = [8349, 1651]
ac = 17, wins = [7665, 2335]
ac = 18, wins = [6647, 3353]
ac = 19, wins = [5372, 4628]
ac = 20, wins = [3837, 6163]
ac = 21, wins = [2452, 7548]
ac = 22, wins = [1387, 8613]
ac = 23, wins = [727, 9273]
ac = 24, wins = [314, 9686]
ac = 25, wins = [105, 9895]
ac = 26, wins = [25, 9975]
ac = 27, wins = [6, 9994]
ac = 28, wins = [0, 10000]
ac = 29, wins = [0, 10000]
You can see the most balanced result is ac = 19, wins = [5372, 4628] with a slight Warrior bias.
And here are rule 2 results:
Fencer's AC --- [Warrior wins, Fencer wins] (RULE 2)
ac = 0, wins = [9963, 37]
ac = 1, wins = [9959, 41]
ac = 2, wins = [9951, 49]
ac = 3, wins = [9951, 49]
ac = 4, wins = [9963, 37]
ac = 5, wins = [9960, 40]
ac = 6, wins = [9953, 47]
ac = 7, wins = [9959, 41]
ac = 8, wins = [9958, 42]
ac = 9, wins = [9954, 46]
ac = 10, wins = [9955, 45]
ac = 11, wins = [9942, 58]
ac = 12, wins = [9898, 102]
ac = 13, wins = [9848, 152]
ac = 14, wins = [9748, 252]
ac = 15, wins = [9532, 468]
ac = 16, wins = [9215, 785]
ac = 17, wins = [8721, 1279]
ac = 18, wins = [7851, 2149]
ac = 19, wins = [6679, 3321]
ac = 20, wins = [4992, 5008]
ac = 21, wins = [3524, 6476]
ac = 22, wins = [2190, 7810]
ac = 23, wins = [1101, 8899]
ac = 24, wins = [459, 9541]
ac = 25, wins = [196, 9804]
ac = 26, wins = [59, 9941]
ac = 27, wins = [10, 9990]
ac = 28, wins = [0, 10000]
ac = 29, wins = [0, 10000]
Best result here is ac = 20, wins = [4992, 5008], almost perfectly balanced.
3
u/Saint_Yin Dec 15 '17
I'm not sure this takes a simulator to figure out. In a PvP fight, the fighter has a 97% chance of being hit, while the fencer has a 64% chance of being hit. The fencer has a 79-85% chance to apply a feat, while a fighter has a 28% chance to apply a feat.
People like being able to say they've done something with their actions, and the fencer allows this to happen more often. You're pretty much 3 times as likely to waste your turn as a fighter, which I guess is offset by dealing 3 times more damage (unless feats are considered). But that doesn't feel as fun for a player.
0
u/[deleted] Dec 15 '17
[deleted] — view deleted comment