toadchild / 40kdice Goto Github PK
View Code? Open in Web Editor NEWStatistical analysis tool for Warhammer 40,000 and Age of Sigmar
Home Page: http://40k.ghostlords.com/dice/
License: MIT License
Statistical analysis tool for Warhammer 40,000 and Age of Sigmar
Home Page: http://40k.ghostlords.com/dice/
License: MIT License
Lord Executioner does +2 damage on a wound roll of 6. This cannot currently be modeled.
Shaking off damage should allow you to pick any number up to 3+. This comes up more in AoS than 40K, but probably this makes the most sense as its own input field. Also, the quantum shielding option is outdated, anyway...
From a user report:
One of the Tyranids detachments has an Enhancement that gives this ability:
"On a Critical Wound, improve the Armour Penetration characteristic of that attack by 1."
Necrons' Canoptek Acanthrites have a similar ability, and T'au Empire's Cadre Fireblades have a -3 AP version. I'm not sure about anyone else.
The current rules are moving strongly towards unmodified rolls of 6, but the tool only recognizes 6+. It's only an issue when modifiers are involved, but it should be addressed in the UI.
It would be nice to allow users to create various defense "profiles" and do the rolls for each for easy comparison. For example, you could see how a particular weapon profile works against a "Tank" profile that has a single model with high wounds/toughness and a low save or a "Swarm" profile with low wounds/toughness, low saves and many models.
I can implement and make a PR.
I stumbled upon this while simulating genestealers vs tactical marines.
To reproduce, enter the values as shown in this screenshot:
Then, change the "Wound rolls of 6" to one of the armor piercing options (seems to happen for all of three of them) and hit "Roll". You'll get a console error that reads:
ReferenceError: wound_prob is not defined dice-1551158823.js:453:32
do_saves http://40k.ghostlords.com/dice/dice-1551158823.js:453
roll_40k http://40k.ghostlords.com/dice/dice-1551158823.js:648
onclick http://40k.ghostlords.com/dice/:1
Looks like wound_prob is out of scope for the do_saves function.
Just tried to email [email protected], but unfortunately got a 550 Unrouteable address
returned to me.
Add options to hit and wound rolls to reroll all non-critical results. This is useful for cases where there's a special effect on 6 but regular rolls are unlikely to get past the target's defenses.
Add options for e.g. -1 damage for Death Guard.
The tool will apply the lethal (autowound) effect to the extra hits generated by sustained hits. This is incorrect. The lethal effect should apply to the original roll.
Shalaxi Helbane has:
Monarch of the Hunt: Each time this model declares a charge that targets a Monster, Vehicle or Character unit, you can re-roll the Charge roll. Each time this model makes a melee attack that targets a Monster, Vehicle or Character unit, you can re-roll the Hit roll, the Wound roll and the Damage roll.
Add some options for rerolling damage if it's <= X.
Many new (9th edition) stratagems put a cap on the number of mortal wounds, such as 6. This is independent of the number of triggers, so needs to be an additional filter.
It seems that the saves can't be entirely ignored even when starting from 7+ or when the armour penetration would bring the value to a number strictly superior to 6+. In every case, the formula seems to consider that damage can be saved as if the defender had a 6+ save.
Here's a screenshot (with auto-hit, auto-wound, 7+ save) :
We can see that the expected value after save should still be "1" but it becomes "0.83", as if you had a 1/6 chance to save.
Noticed that the damage for devastating wound and Lethal hits seem to be the same.
Devastating wound should be higher than lethal hits since Devastating wound ignores saves and inv saves, while the lethal hits seems pretty correct.
Devastating would = attack_roll(attacker)(((hitrollwoundroll_result+autowound)*savevalue)+mortalwound)*damage(attacker)
am quite new to Warhammer and coding so... I might be wrong
You can specify either fixed values or dice rolls (i.e. 2d6), but you can't perform any arithmetic operations (2d6+3).
The mobile version of the dice app site (http://40k.ghostlords.com/dice/) uses the 8th edition version still, and it doesn't even work (results just list expected number of attacks)
You can set your phone browser to fetch the desktop version, of course, but not everyone knows that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.