Welcome to Librarium Online!
Join our community of 80,000+ members and take part in the number one resource for Warhammer and Warhammer 40K discussion!
Registering gives you full access to take part in discussions, upload pictures, contact other members and search everything!
It's Saturday and I had little to do, so I decided to write a little program that would calculate the number of wounds caused by any number of various attacks against any various T S/I whatever units. For example, below is the the output from a test of a single BS4 Heavy Bolter vs. Guardsmen. This is just the first stage of the program as I'm only about an hour in, but later on this program will require much less input (e.g. you would be able to type in Heavy Bolter vs. Guardsman):I've discovered something really interesting. 8 Bolter shots will, on almost every occasion cause 1 MEQ casualty. This scales, as well. 8 kills 1, 16 kills 2, 32 kills 4, 64 kills 8-10. Very interesting set of results, I think This stays the same no matter what the seed for the random number generator is, nor how often I use it before restarting the program. Of course every once in a while 16 shots will kill 10 marines and 32 shots will kill 3, but each of these has only happened once so far. These results are for mathematically random numbers, not purely random numbers, if you think that makes a difference.Enter the number of attacks: 3
Enter the Strength of the attack: 5
Enter the AP of the attack. (0 for CCW, 1 for Power Weapon, 2 for AP1 guns like
meltas or railguns): 4
Enter the Toughness of the target: 3
Enter the Target's armor save: 5
Enter the Target's invulnerable save: 0
Enter the attacker's BS: 4
To Hit: 5
To Wound: 6
To Hit: 4
To Wound: 6
To Hit: 1
3 attacks at S5 AP4 against T3 5/0+ has caused 2 wounds.
Would you like to do this again? (y/n):
This program can do CC but I haven't yet made it so you can input squad sizes and Initiative and find out the results of the entire combat.
My end intentions is a little ascii Wh40k game so I can test out new army lists without finding someone to play and going through all that stuff.
Last edited by kingcomrade; November 18th, 2006 at 23:21.
Open up in the name of the Lawl!
This seems like an amazing project to me, and once it is finished (Or in any stage of the design) I would be more than happy to help out if you need it. ^^
Good luck with the programming.
Rork: In the dark future of the 41st millennium there is only friendship.
Fenrir: and magic.
Kaiser-: My Little Chaos Marine, Friendship is Heresy?
Well, my MathHammer 40K macro tells me that 1 bolter shot kills 0.1111 MEQ (one-ninth of a MEQ, to be exact). This means that nine bolter shots kill on average one MEQ. Of course, no amount of bolter shots will kill one marine with absolute certainty, but that another sort of calculation altogether (e.g., how many MEQ will X bolter shots kill with 95% reliabilty).
I'm very very interested in this King Comrade - nicely done.
Please keep us updated.
Very interesting, I've noticed recently that you and another member have been pounding out the stats for wargear and such, I'm interested to see how this all churns out.I like the metagame, knowing what your units are capable of is very important.
Perhaps, if you can tweak it so you can give a layout of chances 8(or more) bolter shots have of wounding models based on toughness and armor save. A table would be cool.
8 bolters vs T4, 3+(MEQs) = X kills
8 bolters vs T3, 4+(tau eq) = x kills
and so on.
W/D/L Eleventy trillion billion/NONE/ NONE - I am STILL rulezor!
WINDMILLS DO NOT WORK THAT WAY!
For anyone interested I have an excel spreadsheet that calculates the averages to wound in close combat (which can easily be translated to shooting), based on no. attacks, ws, strength, toughness and save. I havent included initiative or anything but its still easy to check how different squads "should" perform againts each other with it.
Wow.. what incredible people we have on LO
Slacker, I would be very greatfull if you were to post/pm that spreadsheet.
Sure i can email it. Not sure if I can upload it since it by necessity contains the to-hit/to-wound tables from the rulebook. I dont have anywhere to upload it anyway so