Results 1 to 24 of 24
Thread: Math and Miss Chances
-
2010-12-27, 03:32 PM (ISO 8601)
- Join Date
- Feb 2005
- Gender
Math and Miss Chances
So, I'm trying to work out a homebrew spell effect, that basically functions like a stacking mini-Displacement. When cast, it gives the target a 5% concealment-based miss chance against attacks, but for every hit that makes it through, the displacement increases by 5%. It resets whenever an attack is successfully dodged, but I'm having trouble figuring out what this sort of gradually increasing odds levels out to/averages on, so I can decide an appropriate level for the spell to be. Blur is a 20% miss flat at 2nd level, Displacement is a 50% miss chance at 3rd level.
Anyone well-versed enough in probability to run said numbers into an average effective miss chance?NOW COMPLETE: Let's Play Starcraft II Trilogy:
Hell, It's About Time: Wings of Liberty
Does This Mutation Make Me Look Fat: Heart of the Swarm
My Life For Aiur? I Barely Know 'Er: Legacy of the Void
-
2010-12-27, 03:56 PM (ISO 8601)
- Join Date
- Dec 2009
- Gender
Re: Math and Miss Chances
I don't know much about the probability, however by the time your miss chance surpasses blur levels you've already taken 5 hits. At that time you've been missed about once from blur, and the growth from your spell has probably been reduced. Maybe if it had a short duration and didn't reduce it would be cool, but I see it as 2nd at best. Probably 1st.
-
2010-12-27, 04:10 PM (ISO 8601)
- Join Date
- Feb 2005
- Gender
Re: Math and Miss Chances
What if we upped the increment to 10% per hit?
NOW COMPLETE: Let's Play Starcraft II Trilogy:
Hell, It's About Time: Wings of Liberty
Does This Mutation Make Me Look Fat: Heart of the Swarm
My Life For Aiur? I Barely Know 'Er: Legacy of the Void
-
2010-12-27, 05:03 PM (ISO 8601)
- Join Date
- Nov 2006
- Location
- Koper(Slovenia)
- Gender
Re: Math and Miss Chances
If you up both the increment and the base miss chance to 10% it's still worse than Blur. You need to get HIT for the miss chance to get higher, which is what you're trying to avoid. And the first time someone misses you it goes away(more or less). It will give you a very low miss chance against multiple weak opponents and it may have some chance of foiling the 4th(sucessful) strike of a strong opponent. By wich time as a caster, you should be dead. If you raise the miss chance to 10%, I'd make it a lvl1 spell. Also it creates tons of extra bookeeping, but that's an OOC problem.
Great avatar by Serpentine!
-
2010-12-27, 05:18 PM (ISO 8601)
- Join Date
- Feb 2005
- Gender
Re: Math and Miss Chances
Would the duration factor in at all? Blur is 1 minute/level, and Displacement is 1 round/level. If it were a long-term/all-day buff - say, 1 hour/level or longer, would that improve its value to at least Blur-degree?
Last edited by The Glyphstone; 2010-12-27 at 05:18 PM.
NOW COMPLETE: Let's Play Starcraft II Trilogy:
Hell, It's About Time: Wings of Liberty
Does This Mutation Make Me Look Fat: Heart of the Swarm
My Life For Aiur? I Barely Know 'Er: Legacy of the Void
-
2010-12-27, 05:34 PM (ISO 8601)
- Join Date
- Nov 2009
- Location
- UK
- Gender
Re: Math and Miss Chances
On a random attack within the fight, assuming it took long enough to stabilise, your expected miss chance is 27% for a 10% value. I'd say that would work as a 2nd level spell.
For interest, here's some values for other increments if you want to play with the numbers.
5% -> 18.8%
15% -> 34%
20% -> 39%
25% -> 45%
30% -> 49%
40% -> 58%
50% -> 2/3
-
2010-12-27, 05:36 PM (ISO 8601)
- Join Date
- Feb 2005
- Gender
Re: Math and Miss Chances
NOW COMPLETE: Let's Play Starcraft II Trilogy:
Hell, It's About Time: Wings of Liberty
Does This Mutation Make Me Look Fat: Heart of the Swarm
My Life For Aiur? I Barely Know 'Er: Legacy of the Void
-
2010-12-27, 05:37 PM (ISO 8601)
- Join Date
- Aug 2010
Re: Math and Miss Chances
Ok, I have no idea how balanced a spell like that would be, but I am able to run some numbers for you and this is the result I got. Basically I ran a couple oftests using the base value of 10% and increasing it by 10% for each hit. The values below shows how many percent of the misses that occured at the given percentage value.
10% - 9.0434%
20% - 17.2366%
30% - 21.3746%
40% - 20.4255%
50% - 15.6863%
60% - 9.5724%
70% - 4.5964%
80% - 1.6359%
90% - 3.796%
100% - 0.487%Last edited by GlueDuck; 2010-12-27 at 05:39 PM.
-
2010-12-27, 05:38 PM (ISO 8601)
- Join Date
- Dec 2006
- Location
- London, England.
Re: Math and Miss Chances
If it was 1 hour/level, it would be worth it. But it would be valuable mostly for the immunity from sneak attacks - remember that ANY concealment negates the Sneak Attack ability.
Having it at 10% + 10% per shot would make it stop a little more than 1 shot in 4 - so, something like a 30% miss chance if you averaged it out. However, that would be weighted towards the later shots, which would be a drawback when fighting more dangerous enemies who don't need more than one or two good hits to take you out of the battle.
It would also be a royal pain in the butt to keep track of, which is why I'd never use it - it would be far too much effort to remember exactly how many shots had hit since the last miss.I'm the author of the Alex Verus series of urban fantasy novels. Fated is the first, and the final book in the series, Risen, is out as of December 2021. For updates, check my blog!
-
2010-12-27, 05:43 PM (ISO 8601)
- Join Date
- Nov 2009
- Location
- UK
- Gender
Re: Math and Miss Chances
IMO, it would work fine as an hour/level buff, but I'd say you should have it reset to the base value about a minute after the last attack, to eliminate a little bit of the bookkeeping.
-
2010-12-27, 05:46 PM (ISO 8601)
- Join Date
- Feb 2005
- Gender
Re: Math and Miss Chances
Would additional utility make the hassle worth it? Say, a free-action retributive strike effect dealing Xd6 or 2*Xd6 force damage on an opponent that misses due to the spell, with X depending on the number of hits taken? It'd be fairly easy to adjuncate with a charge system, counting hits as building up charges and discharging the lot when a miss occurred.
A fixed reset time is also a good idea, though 5 minutes (to fit with the 'end of encounter' time default) might work better.Last edited by The Glyphstone; 2010-12-27 at 05:47 PM.
NOW COMPLETE: Let's Play Starcraft II Trilogy:
Hell, It's About Time: Wings of Liberty
Does This Mutation Make Me Look Fat: Heart of the Swarm
My Life For Aiur? I Barely Know 'Er: Legacy of the Void
-
2010-12-27, 06:19 PM (ISO 8601)
- Join Date
- Dec 2006
- Location
- London, England.
Re: Math and Miss Chances
Mechanically and balance-wise, I think it'd be okay as a 2nd-level spell with 1 minute/level duration and no extra bonuses. As TS already figured out, it's a greater average bonus than Blur, which is enough to make up for the lower initial value. (Should have guessed he'd do the math. Though I think I did pretty well ballparking it at 30% without actually running the numbers. ) If you want to boost it you could put it to 10 minutes/level or 1 hour/level, but I'd recommend increasing the spell level if you do, since IMO it's better than Blur already.
The main drawback is the extra bookkeeping, especially if several people in a fight had the spell up at once. I usually try to cut record-keeping down to a minimum on the grounds that 3.5 has more than enough already, but if that's not an issue for you, I think it's fine.I'm the author of the Alex Verus series of urban fantasy novels. Fated is the first, and the final book in the series, Risen, is out as of December 2021. For updates, check my blog!
-
2010-12-27, 06:29 PM (ISO 8601)
- Join Date
- Feb 2005
- Gender
Re: Math and Miss Chances
Maybe a lesser and greater version, then, cause the more I think about it, the more I like the idea of the spell 'storing up' energy from hits to discharge. Of course, that might just be from reading Dresden Files all the way through yesterday.
NOW COMPLETE: Let's Play Starcraft II Trilogy:
Hell, It's About Time: Wings of Liberty
Does This Mutation Make Me Look Fat: Heart of the Swarm
My Life For Aiur? I Barely Know 'Er: Legacy of the Void
-
2010-12-27, 06:47 PM (ISO 8601)
- Join Date
- May 2004
- Location
- Enterprise, Alabama
- Gender
Re: Math and Miss Chances
You could also make it a 2nd level, 1 min/lv but immediate action cast (so when attacked).
-
2010-12-27, 07:36 PM (ISO 8601)
- Join Date
- Feb 2005
Re: Math and Miss Chances
Not sure if these were generated mathematically (which I couldn't remember how to do), or algorithmically, but I'm getting about the same off a quick program using a million trials:
Code:5% -> 18.891% 10% -> 27.328% 15% -> 34.034% 20% -> 39.825% 25% -> 45.060% 30% -> 50.076% 35% -> 54.718% 40% -> 59.558% 45% -> 63.534% 50% -> 66.652%
Spoiler
AbstractMissView.h
Code:#pragma once // used to ensure inheritance. class AbstractMissView { public: virtual void print(int base, int increase, int trials, double value) = 0; virtual ~AbstractMissView() {}; };
Code:#pragma once #include <boost/random.hpp> const int DEFAULT_TRIALS = 1000000; class MissModel { public: MissModel(int base, int increase); MissModel(int base, int increase, int trials); double getMissValue(); int getBase() { return base;} int getIncrease() { return increase;} int getTrials() {return trials;} private: int base; int increase; int current; int trials; long int sum; void attackMe(); MissModel(); };
Code:#include "MissModel.h" boost::mt19937 gen; MissModel::MissModel(int base, int increase): base(base), increase(increase) { current = base; trials = DEFAULT_TRIALS; sum = 0; } MissModel::MissModel(int base, int increase, int trials): base(base), increase(increase), trials(trials) { current = base; sum = 0; } double MissModel::getMissValue() { for (int i = 0; i < trials; i++) { sum += current; attackMe(); } return ( (double) sum / (double) trials); } void MissModel::attackMe() { boost::uniform_int<> dist(1, 100); boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); int value = die(); if (value > current) { //Hit current += increase; } else { //Miss current = base; } }
Code:#pragma once #include "AbstractMissView.h" class TextView: public AbstractMissView { public: virtual void print(int base, int increase, int trials, double value); ~TextView(); private: ; };
Code:#include "TextView.h" #include <iostream> using namespace std; void TextView::print(int base, int increase, int trials, double value) { cout << "===========================\n"; cout << "|| " << base << "% + " << increase << "% per hit\n"; cout << "|| " << trials << " trials" << "\n"; cout.setf(ios::fixed,ios::floatfield); // floatfield set to fixe cout.precision(10); cout << "++ " << (value) << "% On average.\n"; cin.ignore(); } TextView::~TextView() { }
Code:#include "MissModel.h" #include "TextView.h" int main() { AbstractMissView *view = new TextView(); MissModel *model; for (int i = 1; i <= 10; i++) { model = new MissModel(5*i, 5*i); view->print(model->getBase(), model->getIncrease(), model->getTrials(), model->getMissValue()); delete model; } delete view; }
-
2010-12-27, 07:51 PM (ISO 8601)
- Join Date
- Nov 2009
- Location
- UK
- Gender
Re: Math and Miss Chances
Well, I figured out how step X+1 is generated from step X, checked that the situation does indeed converge, then got the actual probabilities of the miss chance being Y% as n-> infinity by solving for X+1 == X
I did do it in Excel, as my computer is failing at life atm, and it's only set to display 3 d.p. which may have messed with my rounding errors.
Couldn't find a general formula for it though. I solved it in different ways for the different values.
-
2010-12-27, 07:59 PM (ISO 8601)
- Join Date
- Feb 2005
- Gender
Re: Math and Miss Chances
And this what ranks in Knowledge: Math are good for.
NOW COMPLETE: Let's Play Starcraft II Trilogy:
Hell, It's About Time: Wings of Liberty
Does This Mutation Make Me Look Fat: Heart of the Swarm
My Life For Aiur? I Barely Know 'Er: Legacy of the Void
-
2010-12-27, 08:04 PM (ISO 8601)
- Join Date
- Feb 2005
-
2010-12-27, 08:25 PM (ISO 8601)
- Join Date
- Apr 2010
- Location
- Buenos Aires, Argentina
- Gender
Re: Math and Miss Chances
As the size of an explosion increases, the number of social situations it is incapable of solving approaches zero.
Blackwing: I prefer to think of myself a super-advanced flying stealth dinosaur.
Forum Explorer: Reading or watching Cupcakes is like being shot. We honor your suffering but nobody wants it to happen.
-
2010-12-27, 08:37 PM (ISO 8601)
- Join Date
- Nov 2009
- Location
- UK
- Gender
Re: Math and Miss Chances
D&D is the ONLY game I know where when something is proposed, at least 3-4 people pop up with a full mathematical analysis of how effective it would be.
-
2010-12-27, 10:09 PM (ISO 8601)
- Join Date
- Oct 2008
- Gender
Re: Math and Miss Chances
I only read the first few posts, but as I see it, rather than, "You get missed it goes back to 5%," it should be "You get missed, it goes down X increment."
Avatar by Dogmantra
-
2010-12-27, 10:26 PM (ISO 8601)
- Join Date
- Nov 2009
- Location
- UK
- Gender
Re: Math and Miss Chances
That would tend towards an average of 50% over time, with a random distribution around that.
-
2010-12-27, 10:27 PM (ISO 8601)
- Join Date
- Jun 2006
- Location
- Oregon
- Gender
Re: Math and Miss Chances
Just chiming in on the spell idea, I have to say that I'd never use it either. It just seems too unintuitive that right when you get the bonus up and the spell starts protecting you is when it would drop back down. Now, a spell that started out at a higher miss chance and went down every time it stopped an attack, would make sense and get used by me.
Fizban's Tweaks and Brew: Google Drive (PDF), Thread
A collection of over 200 pages of individually small bans, tweaks, brews, and rule changes, usable piecemeal or nearly altogether, and even some convenient lists. Everything I've done that I'd call done enough to use in one place (plus a number of things I'm working on that aren't quite done, of course).
-
2010-12-27, 10:29 PM (ISO 8601)
- Join Date
- Feb 2005
- Gender
Re: Math and Miss Chances
NOW COMPLETE: Let's Play Starcraft II Trilogy:
Hell, It's About Time: Wings of Liberty
Does This Mutation Make Me Look Fat: Heart of the Swarm
My Life For Aiur? I Barely Know 'Er: Legacy of the Void