Combat Simulator?

Post/Author/DateTimePost
#1

FrogReaver

Mar 16, 2015 2:32:39

I'm working on creating a combat simulator.  This way a single PC can be pit against various foes and we can get some detailed statistics about what actually happens when the PC and various monsters fight head to head.

 

What I hope to accomplish with this simulation is to be able to gather data such as:

 

What percent of the time a specific fighter at level X build 1 turns an orc

What percent of the time a specific fighter at level X build 2 turns an orc

What percent of the time a specific fighter at level X build 3 turns an orc

 

The percent of wins the fighter achieves

 

The percent of the time the orc 1 turns the fighter

The percent of the time the orc 2 turns the fighter

The percent of the time the orc 3 turns the fighter

 

The amounts of hp the fighter has left on winning

The amounts of hp the orc has left on winning

 

The average number of turns the fight takes.

 

 

 

Ultimately this combat simulator can help answer questions about how much stronger and weaker various melee builds are compared to each other.

 

 

 

I will begin by including options for the abilities of the primary melee classes.  Fighter, Ranger, Paladin, Barbarian, Monk.  I will include a few different foes for them to face off against.  I will probably limit the comparison to using abilities granted from level 5 and below.  Eventually the other abilities can be added in and other class abilities can as well.

 

I picture having a checklist of various features that I can toggle on and off for my pc and a list to choose the monster I will be facing.  I also picture having a place to enter a characters base stats and hit dice.  I also picture a place to select what weapon and armor you are using and a toggle for whether you are using a shield or not.  

 

 

Any thoughts, considerations or concerns?

 

**Note: This project will a bit of time to complete.

#2

Yunru

Mar 16, 2015 4:12:05
There's no way to accurately compute it. Hell, even playing it out you'll get different results based on tactics, terrain, etc.
#3

cowleymen

Mar 16, 2015 5:00:35

the way the game is balanced, the way the game is should basicaly should be 50/50 for a medium fight. how ever, is this an all out all resourcesmfight or what

#4

HermanTheWize

Mar 16, 2015 5:04:47

I'll be happy to see the results, I much prefer a good combination of survival and DPR together over just DPR. 

(Reply to #2)

FrogReaver

Yunru wrote:
#6

Yunru

Mar 16, 2015 8:47:09
Plus what the orc does, what resources the fighter has available, what resources the orc has available, etc.
(Reply to #3)

FrogReaver

cowleymen wrote:
(Reply to #6)

FrogReaver

Yunru wrote:
#9

Yunru

Mar 16, 2015 8:58:58
Then let's pick a different basic creature: the Kobold. Good luck predicting how a DM will DM them every time.
(Reply to #9)

FrogReaver

Yunru wrote:
#11

Yunru

Mar 16, 2015 9:24:47
And all possible permutations thereof. The number of which increase exponentially with every option added.
(Reply to #11)

FrogReaver

Yunru wrote:
(Reply to #12)

Yunru

FrogReaver wrote:
(Reply to #13)

FrogReaver

Yunru wrote:
#15

FrogReaver

Mar 16, 2015 12:04:25

Yunru, what are the chances that a level 1 fighter beats a gnoll in melee combat

 

Let the Fighter Have

1d8 +5 damage

+5 attack

18AC

12 Hp

Use 2nd wind once when he is below 70% hp

 

 

What are the chacnes of such a fighter beating a gnoll in a melee fight 1v1?

#16

Yunru

Mar 16, 2015 12:06:50
Average all the rolls and simulate it once, done. I'd do it now but I don't know the stats. And of course I'll be assuming that, like your simulations, both parties just stand there and slog it out (for some reason).
(Reply to #16)

FrogReaver

Yunru wrote:
#18

Yunru

Mar 16, 2015 13:11:43
Averages work because of the law of averages. If you're trying to say that the law of averages doesn't apply to "1 million" runs, then I don't know what to say.
(Reply to #18)

FrogReaver

 

Yunru wrote:
#20

FrogReaver

Mar 19, 2015 9:02:55

I discovered a bug in my program where it was not giving the Orc a turn if the fighter missed. 

 

This will be corrected later. But as of now the current results are all invalid.  (I have went through and deleted those results to no one would get confused)

(Reply to #19)

FrogReaver

FrogReaver wrote:
#22

FrogReaver

Mar 19, 2015 8:46:39

I've added in easy to use bugbear, ogre, orc, and gnoll stats.  (Only melee weapons are included since the simulator doesn't included any movement yet)

#23

FrogReaver

Mar 19, 2015 9:03:42

Just so you all get an idea of the relative toughness of these creatures here are some simulation results:

 

Fighter 1

12 hp

18 ac

5 attack

1d8+5 damage

***Used 2nd wind at less than 80% of maxHP

 

 

Fighter vs bugbear

Fighters wins 33.65%

 

 

Fighter vs gnoll

FIghter wins 77.56%

 

 

Fighter vs orc

Fighter wins 68.64%

 

 

Fighter vs ogre

Fighter wins 4.93%

 

 

*Note all win percentages were calculated over 1 million simulations

(Reply to #19)

FrogReaver

FrogReaver wrote: