Probabilities, RNGs and other statistics shenanigans.

Consider having all status-inflicting abilities, especially those with lower odds of success, yield secondary effects of some kind (generally damage) so that, when your Execute fails to instant kill, or when your Blade Bash fails to stun, the foe still suffers damage. With Yanfly's dot plugin, you can set damage formulas for poison effects and thus, balance any poison-based abilities around applying the effect 100% of the time. (And you can have them be effective against both mooks and bosses alike)
I have three tiers, Hurt Eyes which lowers To hit by 20%, Blind which lowers it by 66%, and Darkness which lowers it by 95%
exactly.
why 20 and not 25? why 66 and not 70, or 50, or 45? why 95 and not 98?
THAT is what I'm going for, here.
Personally, I never use skills that run the risk of missing. Status abilities are notorious for this and I've come to despise them in many RPGs. Likewise, I never risk using characters with a weapon disadvantage (which means lower hit%) in Fire Emblem, even if the upside is taking the enemy out quicker or putting my other units in a better position. I. Hate. RNG.

Now, I'll tell you what I do like about games that do force RNG down my throat: Ways to manipulate it. Back to the Fire Emblem example (which is probably the best example of effective RNG use you'll ever find in a JRPG), there are several passive skills you can equip which raise hit%. You can also choose classes that have different weapons, so you'll always have a weapon with high hit%. Lastly, you can develop relationships between units and when they're paired together, they give huge hit% bonuses. Bosses with high evasion can easily be worked around via these three methods.

Back to RPG Maker, why not stop thinking about "which percentage will make the fewest people angry" and try to innovate your game a bit. How can players make RNG easier on themselves? Risk vs. reward is boring and outdated - I hate knowing I wasted a turn with a status miss. However, if I could equip certain skills or accessories which make those skills viable and reduce RNG, I would definitely use them (so long as the statuses were worth inflicting).

So tl;dr, I would think outside the box and work around true RNG as much as you can. At any rate, skills prone to missing will only further dissuade your players from fully exploring the battle mechanics/strategies you've spent so much time making.
exactly.
why 20 and not 25? why 66 and not 70, or 50, or 45? why 95 and not 98?
THAT is what I'm going for, here.
Essentially, it's a matter of balancing one action against another, since both expend your turn (which is the most precious resource in turn-based battles - although high costs in other aspects like MP can allow for "fair" imbalances in power).

For a very simple example, assume that the number of characters and enemies in battle are the same, and that they have the same stats as each other. On an average turn, you could use a basic damage skill and deal 50 damage. Or, you could use a skill that has a chance to inflict Paralysis, causing an enemy to not be able to act for 3 turns. The "value" of inflicting that status is 150 damage - the amount you'd prevent from 3 turns of basic damage skills used by the enemy. Therefore, to balance the Paralysis skill against the basic damage skill, you'd want it to inflict the status 33% of the time (or be "resisted" 67% of the time), because its value is 3x as much as the basic damage skill if it lands.

If the state also reduced the enemy's DEF in addition to causing them to not act, it would be worth more, and if you calculated its value as 250, you'd want it to inflict the status 20% of the time instead of 33%.

It's important to note that in most narrative-focused RPGs, the assumption of same stats on both sides won't hold - you'll usually have much better stats than normal encounters' creatures have, but much worse stats than bosses. Here, you have to make some guesses about where the skill is most likely to be used, and calculate appropriately.

Now, I'll tell you what I do like about games that do force RNG down my throat: Ways to manipulate it. Back to the Fire Emblem example (which is probably the best example of effective RNG use you'll ever find in a JRPG), there are several passive skills you can equip which raise hit%.
Here here! Totally agree. If you're going to use RNG to determine the output of actions (beyond a bit of variance for flavor), give the player the key to their own cell and let them "opt in" to RNG-based stuff rather than forcing it down their throats entirely.

Risk vs. reward is boring and outdated
I'm being a bit pedantic here but it's so important I'm going to bring it up anyhow - Risk and Reward are at the heart of all good games, even ones without the slightest bit of true Luck. They're not boring, they're not outdated, and they never will be. Good uses of risk and reward in games are ones where the player has agency over whether their risks will pay off or not.

Golf is a great example because risk and reward are its very essence (and also because it's so far off our normal way of thinking as video game designers). Do you attempt to hit the ball over the water hazard and past the trees, directly towards the hole, or do you safely land it on the fairway, requiring a more indirect path? Do you try and make a birdie from the sand trap, knowing the ball may roll 20 yards past the hole if you miss, or do you take a safe approach shot and land it a little short of the hole for an easy par? The choice is yours to make, and you have all the power to make your risks pay off or suffer the consequences for your hubris.
To use a video game example of risk vs reward, bonus dungeons with extra-challenging superbosses typically reward the best gear available. You don't even have to do them, but many players will all because of the risk vs reward aspect. Even Mario games use risk vs reward, and often quite well. As you're strolling through a fairly easy level, you might notice a set of coins, or even a special coin hovering over a pit that might require a tricky jump to pull off. Do you have to get it? Nope, but you'll probably try anyway, even if it might kill you, because the reward in this case is generally appealing--a perfect clear of the level vs just getting past it.
First of all you're now looking at the wrong thing. Those are how much rhat state modifies to hit not how often it lands. I picked those numbers based though on how often it can be inflicted and how much danger I wanted it to be. It could probably by 21 or 19 or 17 I'm not going to overthink it like that though. Though the 95 did have one purpose and that is since I use a 95 default to hit it knocks your to hit back to 0% .

As for how got the rest...testing. Thereis no magic number that will let you skip that and feel good to everyone. When I started I honestly just picked a random number tested it saw how it worked and adjusted. You're not going to find a solution to avoid it as too many pieces of your battle system interconnect and affect it.
Exactly. Acceptable offsets are a product of tweaking and testing.

That being said, it is subjective. As far as I'm concerned, acceptable hit rate is 100% with only a scant few enemies being able to dodge or resist and only as the occasional exception to the rule rather than the rule itself.
Now, I'll tell you what I do like about games that do force RNG down my throat: Ways to manipulate it.
in my game, that's encouraged.
if you believe you can exploit a weakness on the enemy strategy, you should be able to do that..... but I don't want *that* to be a requirement.
if somebody finds out they can use the Orc warrior to stun an enemy to submission, they'll always bring that Orc warrior to all similar fights, negating the use of the archer who can also stun and sometimes even one-shot enemies, which some people would argue is much better than simply stunning an enemy.
pulling off that stun move should feel rewarding, not mandatory.

likewise, for enemies, if an enemy seems to be extremely effective against a player character, I don't want to turn that character into a punching bag, only to have the player keep them around as an escape goat.

I'm thinking, since six-sided dice are common to most people, that a 1-in-6 chance should be the lowest common setting.
strongest character buffed up with all adequate buffs, against strongest attack by strongest enemy, 1-in-6 chance for that attack to still succeed.
in normal situations, that skill would probably have 5-out-of-6 chance of success.... enough to fail on it's own with no intervention by the player, and enough to have a significant reduction with some effect by the player, but not enough to be completely negated even in the best case scenario.
I'm being a bit pedantic here but it's so important I'm going to bring it up anyhow - Risk and Reward are at the heart of all good games, even ones without the slightest bit of true Luck. They're not boring, they're not outdated, and they never will be. Good uses of risk and reward in games are ones where the player has agency over whether their risks will pay off or not.

Golf is a great example because risk and reward are its very essence (and also because it's so far off our normal way of thinking as video game designers). Do you attempt to hit the ball over the water hazard and past the trees, directly towards the hole, or do you safely land it on the fairway, requiring a more indirect path? Do you try and make a birdie from the sand trap, knowing the ball may roll 20 yards past the hole if you miss, or do you take a safe approach shot and land it a little short of the hole for an easy par? The choice is yours to make, and you have all the power to make your risks pay off or suffer the consequences for your hubris.
No you're absolutely right. I should've clarified that the most basic of "risk vs. reward," i.e. the risk being losing a turn and the reward being a status effect, is outdated in my honest opinion. I think the "risk vs. reward" should be using certain skills over others rather than certain skills having the ability to miss. In the game I'm playing right now Octopath Traveler, you have many opportunities to deal damage, but you are also given the choice to bide your time and set up more debuffs/buffs to maximize damage output. Do you blow out a bunch of MP trying to fell a boss in one-two turns or do you play your cards close and set up augments? That's a good "risk vs. reward" right there. Incidentally, attacks/skills in OT rarely, if ever, miss and the Accuracy stat can be modded anyways, so that goes back to what I talked about earlier.

In other words, status probability should not be the crux of the skill's worth. Rather, it should be value over replacement skill so to speak, meaning is this status effect worth losing a turn to deal damage/heal/whatever other mechanics your game has? In that regard, I think this topic is still looking for the wrong answers, but I digress.
@Hero_Claive I agree with literally everything you wrote in this last post, and I particularly like the term "value over replacement skill" which is a concept I was struggling to say succinctly in the past. 🙂
guys, I already HAVE the palette of skills.
they're already balanced and they all have their "color", so to speak, with certain ones being more situational and others more general.

what I want to remove from the sheet of *skills* and move it over to *characters*, is how those skills add effects to those characters.
if X skill can cause stun, then the same skill, with the same stun rating, unique for all skills, will land more times on enemies with vulnerability than on enemies without vulnerability.... and be most effective when dealt by characters with strong attack than by characters with low attack.
that'd set Y character to be more effective to deal with the stun over weak enemies, and Z character to be more effective against strong enemies.
flipping that around, would be overkill on one case and pointless on the other.
one tool for each job.

what I'm trying to establish here, is the end points of the graph, the maximum and minimum.
once that is set, nothing will go beyond those values.... the formula is already made, I just need to clamp it (to something that makes sense, and, it's fair, and manageable)
Afraid that is not possible. The math equation is a system of equations with more variables than solutions, which by definition has infinitely many solutions (or no solution, if one of the equations contradicts the other). That is why everyone is saying it varies, so unless you wish to try to debunk 2000+ years of established mathematics you have to just accept that as the answer.

To see why, you would need to first look up expected value theory, and find the value probability x that makes the expected values equal with applying the state vs not applying the state. Assume no stun locks though as that equation has no solution (0*x = any number but 0 is not possible to solve). But, if you add in variance and variable damage that gives you more variables, then if you add in how it plays out with 1 vs 2 vs 3 vs 4 all the way to 8 enemies that adds another variable which changes the answer.

Wavelength told you how to do the calculation, but that assumes one enemy, and the skill hits only one enemy and the damage is fixed. If you change any of that, that answer changes. Try redoing that calculation with 8 enemies and how much 1 enemy stunned changes the damage you take. It's a lot lower than the calculation he did for 1 enemy. Now add in variance.

Now you can assume averages, but then the answer will not be fair. It will never be fair at that point as the answer you get will only be the fair answer when you are AT the average. Any value above or below that will make it unfair.

What I think you are looking for is what value a player thinks is fair, and for that, you will still get variance, as some are ok with 1%, and some hate it unless it is 100%. Look up threads on debate on to hit rates and see how polarized that is. Now just replace to hit rate with status ailment rates and you get the same response.

Probably the best solution is to just take what you think is fair and run with it. You'll never please everyone.
I played a game recently where I had a character who was the status ailment character. She had moves like 'stun strike', 'blind strike', 'venom strike' etc. Basically, she would have an attack (that did more damage than her default attack) that had a chance of also landing a state. I used every one of these abilities when I first got them, since they each did more damage than the previous ability. I didn't care what the status was since I was just trying to kill the enemy quickly.

She also had an ability usable once per battle that was a 100% 1-turn stun. I would use this on bosses sometimes to let my other characters buff up in peace for a turn.

Another character had a 100% poison ability that I would sometimes use on bosses, but I never used the first character's venom strike once getting the next ability that did more damage. In fact, this was my approach throughout the entire playthrough: if an ability has a status ailment with less than 100% chance of success, I treated the ability as if it had a 0% chance of success. Based on what I'm seeing in this thread, I don't think my approach is that uncommon.

Let's assume that status effects are really important to the strategy of a given game. If applying those effects is chance-based, I feel that the game has actually removed skill and strategy from the situation. Either I can still beat the boss without the status effect (in which case why even have it?) or I need the status effect to win and am hoping I get lucky while defending/healing and trying to get the status effect to stick. This doesn't sound that fun to me. Put another way, how many people go through RPGs using chance-based instant kill effects? No thanks.

One method that might work for chance-based status effects is a progressive chance system, where the chance of success increases if it misses the first time, reaching 100% on the second or third usage. That might be tolerable if the status effect sticking on that third turn was still more beneficial than doing any other actions on those previous turns, but it still wouldn't be ideal.

One place where I do really like seeing low chance random effects is in speedrunning, but again, that's because the runner is so skilled with keeping step count and manipulating the RNG that they get a guaranteed success when they need it.

Anyway, my approach to a game like what has been discussed in this thread would be to just ignore status effects as much as possible, and if that wasn't possible I'd probably conclude it's a bad game and quit playing it. Same thing with games that have a high miss chance, for that matter. As for games where you have the ability to manipulate your chance of success, I'd still avoid it unless I could manipulate it to a 100% success rate, and given that I'm now devoting multiple actions to upping my rate of success, the standard attack and other skill options would have to be extremely underwhelming for me to take this approach.
but the player's can't possibly calculate the final damage
there will be no display of chances anywhere for the player to read
so that the player may guesstimate a character's chance
I'm going to be heavily opinionated for a moment. This is terrible and quite literally what stops me from playing a game. With high variance, the inability to see enemy hp, and the inability to figure out why I'm doing as much damage as I'm doing, those flashing numbers that pop up called "damage" are meaningless. Pokemon is awesome for blatantly telling me the base accuracy. FFT doesn't tell me much about accuracy in skill descriptions, but it does when I'm targeting with it. Fire Emblem not only tells me what the damage and accuracy are but makes it easy enough to be able to look at an enemy across the map on the first turn and understand my chances. This all rewards skill and choice.
oh, for high-level characters that very much is the case.
That runs into the FF1 problem; the most annoying part of the game is the early grind (up to pirates) since literally everyone's accuracy sucks and just nothing happens for basically no reason. In a sense it almost makes that part of the game more difficult than later parts.
And as far as I'm concerned, contractual boss immunity is overrated.
I like something that D&D4.0 does, where "states" are all limited enough that they can basically just be side effects of attacks, leading into the thought that "no battle should last more than eight turns" that it runs on, or more simply, every skill is moving the battle towards it's close. Even heals are "minor" actions, allowing use in addition to skills. The problem isn't immunity, it's allowing overpowered states to players and then not letting them use it when it's useful.
You know what I don't like about it? Average 60% accuracy. It largely becomes a game of finding all loot, skill points, anything to get accuracy to something resembling "reliable" (maybe 90% is a good low?).
After replaying FFX recently, I noticed it did something very cool; Most bosses are immune to "death" effects, but random encounters aren't. Some enemies are actually built around letting someone one-shot them using a "death" spell instead of damage to keep random encounter turns to a minimum and I actually had to figure this out.
fairness dictates it should start at 50%, but that's the point being debated.
50% is literally the least reliable probability. As it goes up, you can rely on success. As it goes down, you can rely on failure.
if I could equip certain skills or accessories which make those skills viable and reduce RNG
Being able to modify rng on the fly can be incredibly fun. In your FE example, that's a large part of playing the game. If you just try to move forward, you'll get punished, but by playing intelligently you can even get 100% accuracies (and 0 from the enemy!).

Which is another thing about low accuracy and unknown numbers; the player has to test them to learn how often it can happen. But that requires an environment that allows testing. If the enemy is quite scary and likely to kill the party, which most often happens in battles where this matters (e.g. bosses), then it's better to rely on sure strategies instead of guesswork. This is often why battles in jrpgs are either simpler or easier than trpgs since there's less for the player to already know.

Let's assume that status effects are really important to the strategy of a given game. If applying those effects is chance-based, I feel that the game has actually removed skill and strategy from the situation
That's just generally true. Good platformers and FPS have tight and precise controls. Strategy and Tactical games have clarity in the complicated mechanics. How states are used and approached might still be a big thing I dislike in rpgs as a whole.
makes it easy enough to be able to look at an enemy across the map on the first turn and understand my chances.
*exactly!*
what *are* your chances?
give me a number, parameters to compare, basics for calculations! anything!
*exactly!*
what *are* your chances?
give me a number, parameters to compare, basics for calculations! anything!
Sure;

Hit rate = 2* Skill + 0.5* Luck - Target avoid + weapon hit rate + Bonuses
(+5% from S rank in weapon level and 0-25% depending on supports & 1-9% for
tactician's bonus)

Avoid = 2* attack speed + luck + bonuses (0-25% from supports, 0-40% from
different terrain, 1-9% for tactician's bonus and +10% if Set's Litany is in
use)

Look complicated? It is. But it can be broken down easily and the game shows the end results fine enough. There are tons of things in Bonuses that are both uncommon and can easily be seen or blatantly help the player a lot, but you can ignore them for general use.

First, enemy avoid. Assuming their weapon doesn't weigh them down, that's just Speed * 2 + Luck. I can see the enemy screen, I can calculate this on my own, but the game is nice enough to also show it for newer players who haven't played a few maps to figure out the numbers. We'll also note the enemy has an axe, this'll be important later.
Second, let's look at our Swordie. We see her skill and luck, and each weapon's base accuracy is stated simply on itself. She uses a sword.
Numbers! Our sword in this case is 70%, she has 10 skill and 10 Luck, he has 5 speed and 0 luck (yeah, 0 luck is actually common on enemies).
70 + 20 + 5 - 10 = 85%. I don't have to actually try to get near him to know this. Oh wait, she has a sword and he an axe! The weapon triangle (which the series has used for a long time) means that sword beats axe. In FE7 that's +/-10%, or makes Swordie end up with 95% accuracy. And this is easy enough to notice by noticing accuracy go up or down when targeting certain units.
There's also the part where I can see all this and try different weapons and units our without yet committing a turn. And you know what? I love FE and I still think they way it uses accuracy is subpar.

Let's look at FFT. It's way easier! Accuracy is generally 100% and enemies generally have 5 avoid, making most attacks 95% from the front or 100% from the side or back. Not only can I see their evasion and what kind it is (shield evasion affects sides and front for instance), but I can try to maneuver around it. Yeah, being able to modify accuracy both for you and the enemy is a huge part of the strategy.

Actually, if you're interested in raw numbers, I'd check out sites like Gamefaqs and game wikis (and tons more, just search around, even TvTropes can help). The information you can figure out is incredible and can help you understand maybe why you like a game or not and why you might like a specific mechanic or not. What you can do is give the player all this information on your game without resorting to the internet. I actually like "newbie huts" like the new adventurer center in FF6 for this kind of thing, and I plan on putting hard numbers and formulas in places like that when it's hard to figure out numbers.

Looking at all this, I think Paper Mario does an awesome thing by taking away rng and instead putting variance and accuracy into the player's hands and skill with timed hits and other manual requirements. Sumrndmdde actually has Timed Attack plugins for MV on his site (in unsupported mind...) and other plugin makers likely will have their own to find. And there's other ways of doing it, such as skill set ups (this attack makes the enemy weak to poison and then you poison) to equipment choices (an accessory that guarantees burns). RNG manipulation can actually make a game a ton of fun, even for someone like me who "doesn't like it".
*exactly!*
what *are* your chances?
give me a number, parameters to compare, basics for calculations! anything!
I'm quite baffled that you read through his entire post and came away with this. It seems like you're missing the forest for the trees, but I suppose you did create this topic for a very specific reason. Just know that people who aren't mentioning the "direct number percentages" that you want are still trying to help you with your game. A lot of these discussions often branch into new ones that actually help more than the original question ever would. Just my two cents.
what I'm trying to establish here, is the end points of the graph, the maximum and minimum.
once that is set, nothing will go beyond those values.... the formula is already made, I just need to clamp it (to something that makes sense, and, it's fair, and manageable)

Take this with the huge grain of salt that all the advice given to you recently, about how setting numbers without an in-depth understanding of all of the skills, characters, equips, and unique battle mechanics in your game make it an impossible task to get right, is good and correct advice:
  • Minimum chance to inflict: 0% (100% chance to resist by opponents of higher level and with specialized resist against that ailment)
  • Maximum chance to inflict, for general statuses: 100% (0% chance to resist by opponents of lower level with no specialized resist)
  • Maximum chance to resist, for incapacitating statuses like Petrify/Paralysis or Instant KO: 80% (20% chance to resist by opponents of lower level with no specialized resist)
ok, I'm gonna lay out the rough base stats I'm basing myself on, so you can have an idea of what values I'm handling.

lvlf (Level Factor): ([chrlevel, 20].max + 25) / 100
lvld (Level difference): [attacker level | attacker skill level] / defender level (enemies handle differently than actors)

STR (strength): controls the P.Atk. (TBD: controls Stun chance vs enemy CON and Arrest and Disarm chance vs enemy STR)
weapon power = class ATK + (STR * lvlf) + weapon ATK.
Ph.skill power = weapon power + skill power.
damage = [weapon power | skill power] * 100 * lvld / target DEF

DEX (dexterity): controls movement range, attack speed, skill reuse delay, accuracy, evasion and chance of critical (TBD: controls Hold and Slow resistance, and skill evasion)
movement range = class SPD + (DEX * lvlf) +/- AGI offset (modified by buffs and states)
attack speed = weapon speed + (DEX * lvlf) +/- skill speed
accuracy = sqrt(DEX) * 10 + chrlevel +/- HIT offset
evasion = sqrt(DEX) * 10 + chrlevel +/- EVA offset
critical = class critical * 100 * (DEX * lvlf) * (CRT offset / 100)
chance to hit = (attacker ACC - defender EVA) / 34 * 0.705 + 0.8
gives an interval to hit of 25-95% for physical strikes.... skills always hit, *effects* may be resisted

CON (constitution): controls Max HP and HP regeneration (TBD: controls Stun, Poison and Bleed resistance)
HP = class HP + (CON * lvlf) +/- MHP offset
HRG = 25 * lvlf + CON * HRG offset

INT (intelligence): controls MAtk (TBD: controls Sink, Chaos, Confusion and Silence chance vs target WIS; Poison, Weakness and Decay vs target CON)
weapon power = class MAT + INT ** 2 + weapon MAT
magic power = (weapon power * lvlf) + skill power
damage = [weapon power | magic power] * [chrlevel | sklevel] / target MDF (skill level can override own level)

WIS (wisdom): controls magic reuse delay, magic cast time, and magic critical chance (TBD: controls debuff resistance)
casting speed = class CSpd + (WIT * lvlf) +/- attack speed offset
magic critical chance = (WIT / 35) * offset / 100

MND (mindset): controls Max MP, MDEF and MP regen (TBD: controls Fear, Cancel and Aggression resistance)
MP = class MP + (MND * lvlf) +/- MMP offset
MRG = 20 * lvlf + MND * MRG offset

HP interval = 120, 580
MP interval = 36, 225
ATK interval = 4, 14
DEF interval = 12, 35
SPD interval = 75, 250 (4-12 tiles)

STR interval = 20, 45
DEX interval = 20, 39
CON interval = 25, 50
INT interval = 15, 41
WIS interval = 6, 25
MND interval = 25, 42

there's tons more of formulas behind the scene, but that's what handles the heavy lifting.
EVERYONE uses the same formula, there's no distinction for actors and enemies.... the validation routines were fixed to account for that.
even enemies have their own stats now.
skill damage formulas no longer apply: everything is done by the battle manager, the skills only provide the starting value.
The problem is, that going into that level of detail means that this then becomes a project specific thread, rather than a general conceptual one.

What you now appear to be asking for is help to balance your individual project, which is not what this section is about. I can see that without all that detail, it is inevitable that the replies you get are going to feel too vague, or off the point - for your game. But that's the issue. A thread here cannot be about one game.

Original thread: https://forums.rpgmakerweb.com/threads/probabilities-rngs-and-other-statistics-shenanigans.104370/