Let's talk about RNG in Rpgmaker

Hello, I would like to talk about the way the default RNG in rpgmaker is too big and explain why (and also people do not seem to realize how huge it is).
By default, the spell variance is 20%.
20% does not seem big eh? I'll explain why it is actually quite huge!
We will take a basic number to simulate things: 100.
It could be any number, the result will be the same, but 100 is easy to calculate.

So basically with a spell that deals 100 damages with a variance of 20%.
The spell will deal 80 to 120 damages.
So between the weakest damage (80) and the strongest (120) damage, you will realize that 120 is 50% more than 80.
Yes, a 20% variance result to a 50% total variance.

Same with critical hits that deals 3x the base damage... 3 times!!! (+200%)
So basically a single hit could either deal 80 damages (minimum) or 360 damages (max variance with triple boost).
360 is 450% more damages than 80 for the same spell!!

You can't have a tactical gameplay with that much RNG. (Well, that's arguable, if you think it is not true, please comment!)
I would rather have a very very small variance (2%) and doing way more crits, but not +200% damage crit but something like +50% damages.

Also now let's talk about something I hate a lot in many many many rpgmaker games :
Hit% and Evade%
Default is 95% Hit for the player and 95% Evade for enemies.
It does not seems that big but again the 2 "5%" adds up fast

The math is 100 *0.95 * 0.95 so there is a total of 90.25% chance of hitting the enemy (and not 90%).
Having nearly 10% miss rate could be very frustrating especially on a miss streak!

Please fellow companions, unless you specifically want to make a spell with a high RNG, for basic spells, have a high hit rate, a low evade, and a small variance and less crit base damage!

What do you think about that?
Do you usually think that games with high RNG is better than ones with low or no RNG?
you will realize that 120 is 50% more than 80.

no, it's not.
it's 20% more than 100, and 20% less than 100.

you're considering *variance*, not *absolute proportion*
*stock brokers* calculate like that..... *businessmen* calculate like that.

you're not a business man... you're a programmer.

it reminds me of an episode at the office, when I was working construction.
the coffee machine's prices had been adjusted, and everything increased 10 cents.
the water shot went from 10 to 20 cents, and the coffee went from 1.20 to 1.30.
I overheard a work mate state "The coffee increased 8%, but the water shot increased 100%"
no, it didn't.... everything went up 10 cents, not X %
Hi, I'm keeping the 20% variance, and here is why.

Say, 100 is the base damage of your normal attack. And 200 is the base damage of your skill
The normal attack will have 80 ~ 120 damage
The skill will have 160 ~ 240 damage

If the normal attack hits the largest variance and the skill damage hits the lowest variance, you will still deal more damage when using skill, so it doesn't really matter. You will still use the skill to deal more damage.

Another reason is to add a more chaotic experience to the battle. I'm keeping the large variance is mainly because all of the actions are guaranteed to hit. I have already given the player full control of how the turn goes. Who goes first, who goes later. No agility is involved (Granted, this is an overhauled turn system, not default RPG Maker). No need to worry about MP since I'm using the TP system. And since missing an attack is just straight-up frustrating, let's go with large variance for the more chaotic experience. At least you do some damages than missing it completely.
no, it's not.
it's 20% more than 100, and 20% less than 100.

you're considering *variance*, not *absolute proportion*
*stock brokers* calculate like that..... *businessmen* calculate like that.

you're not a business man... you're a programmer.

it reminds me of an episode at the office, when I was working construction.
the coffee machine's prices had been adjusted, and everything increased 10 cents.
the water shot went from 10 to 20 cents, and the coffee went from 1.20 to 1.30.
I overheard a work mate state "The coffee increased 8%, but the water shot increased 100%"
no, it didn't.... everything went up 10 cents, not X %

maxresdefault.jpg


Maybe I didn't use the good words, but between someone extremely unlucky and doing always the worst and someone extremely lucky, the fight would be completely different, and that would not be because of the player strategy but pure luck ans I'm not sure if I were the unlucky player, I'd like to continue playing an "unfair game"

@TheoAllen At least there is no critical miss, but the base 20% still seems too far appart for me, where you could have finer choices fr example
150 base attack with 10% and 200 base attack with 10%
Even the best case with 150 is 165 and the worst for 200 is 180.

It's funny but even 10% feels very chaotic RNGesque actually!
If I Might add some to this issue I also find variance a bit inconviniet feature - as @RpgmakerMZ said, so I'm doing my skill formulas like this - https://prnt.sc/tqco3g

Store them as plugins and call them in formula box from database - https://prnt.sc/tqcpme
That approach allows me to keep full and clean control over skills damage, furthermore I can (We can)
practicly do whatever we want with each and single skills.
If I Might add some to this issue I also find variance a bit inconviniet feature - as @RpgmakerMZ said, so I'm doing my skill formulas like this - https://prnt.sc/tqco3g

Store them as plugins and call them in formula box from database - https://prnt.sc/tqcpme
That approach allows me to keep full and clean control over skills damage, furthermore I can (We can)
practicly do whatever we want with each and single skills.

That's a very nice plugin!
This is a subject which comes up with great regularity, not necessarily focusing completely on variance, but as part of wider discussions on randomness.

You might want to read through the most recent for a range of opinion. You can find it here. There are several others, but that might be a reasonable place to start.
@Soulrender Please avoid from discussing actual implementation (scripts, plugins, this is how I event it etc.) as that's not purpose of General Discussion. Basically, keep it general so people not using MV can join the conversation as well 😉
I actually agree with @RpgmakerMZ that a 20% variance equates to a 50% spread, and that ideally the variance should be lower for most games (I personally like 10%). According to an old poll taken here, most designers here agree as well.

The reason I feel the 50% perception is correct (with 120 being 150% of 80) is that "lucky" rolls essentially mean two-thirds as many hits to take down an enemy (or character) as "unlucky" rolls, and vice versa with three-halves as many unlucky attacks being necessary as ideal rolls.

10% Variance feels good (especially with damage numbers above 50) because you get a nice spread of values that avoid every hit feeling the exact same, without wild swings in damage output that can mess with the pace of combat.

In games that are designed to be extremely tactical (rather than more broadly strategic), and the difference between victory and defeat (or life and death of a battler) is supposed to come down to one or two hits, I go for completely consistent damage numbers (0% Variance) and I make sure the player knows what that damage number will be before they confirm their action.

One mitigating factor is that the Variance in RPG Maker is done via a double-roll, so values closer to +/-0% are more likely to hit, must like 7 is much more likely to hit than 2 or 12 when rolling two dice. So in that respect, even 20% Variance is not that bad, and rarely makes combat an RNG-fest.

Critical Hits are a related but different topic, and I don't think that the 3x damage is necessarily a problem with variance per se (but it can certainly be a problem with battle design and balance!).

Hit and Evade rates are talked about a lot and I've already posted my opinion on them multiple times throughout the Game Mechanics Design board. (Spoiler alert: 100% Hit Rates are good!) Again, though, I don't think this is a variance issue so much as it is a frustration and design issue.
Default is 95% Hit for the player and 95% Evade for enemies.

Evade is not 95% for enemies, and has never been that in any of the engine versions. That would be an unplayable nightmare. The default EVA for both enemies and actors is 5%
I personally prefer 10% variance, 20% just feels like too much imo. For heals, I reduce it further, down to 5% variance. Sometimes I wonder if my 10% variance is still too much since I'm making a tactical RPG. However, I do include the actual damage range the attack will do in the description, with stats taken into account. For crits, I agree 3x is way too much. I reduced the default down to 1.5x but also made Strength (ATK) increase crit multiplier so you can still obtain that 3x crit if you stack a lot of Strength. The default hit/evade mechanic is also gross. I much prefer Yanfly's method, which is a simple Hit - Eva formula. I also make sure the player has ways to increase Hit via the Dexterity (AGI) stat.
Personally, I prefer lots of RNG. But again, It really depends on multiple factors and Damage Formula and Balancing so it all gets complicated.

Hit-Rate > 90%
(Anything less than 90% and it doesn't feel nice to miss Constantly, However i give enemies less than 80% almost always, so they constantly miss on purpose)

Dodge < 35%
(I don't intend my Chars to depend on Dodge as main mechanic so this is Soft Cap. With some Special Endgame gear and Buffs, 70% Dodge is nice but kind of Overkill)

Variance < 40%
(Normally i go - "Weakest Dmg Class = Highest Variance and Opposite is True". The Minimum Variance i assign would be 5%)

Crit Chance < 65%
(Normally I let Starting Chars have 3% Crit, Early Game Chars have 15% Crit, Mid Game Chars have 35% Crit and Late game Chars have upto 65% Crit)

Crit Multiplier = 225%
(I don't like 300%, Feels like a bit too much. In my Games, Crit Multi is normally a Rare Stat on Endgame Gear which can go upto 675%, Through Accessories or Buffs)

I am crazy regarding Numbers and Values having to compulsorily end in only 0s and 5s (Aesthetic Purposes, also more easily noticeable i guess). Just know that you don't have to let your Player know about all the Math involved, You can Lie to them or not mention certain things at all like Variance / Slight Increase in Affliction Chance etc :blink:
@TheoAllen At least there is no critical miss, but the base 20% still seems too far appart for me, where you could have finer choices fr example
150 base attack with 10% and 200 base attack with 10%
Even the best case with 150 is 165 and the worst for 200 is 180.

It's funny but even 10% feels very chaotic RNGesque actually!
Strictly speaking, I don't disagree about the proposal that the variance should be lower to 10%. In fact, I would probably don't like the variance higher than 20%. However, 20% is not exactly a bad number in my design.

To tell exactly why it probably needs a whole context of my game, but let me simplify because your example choice is simply would not happen in the real case in my game.

The reason why I choose 100 as a base attack and 200 as a skill attack is, sometimes you just got a chance to deal a lot of damage and only in limited time. So the skill damage is boosted during that turn, would you do a normal attack during that turn (it is also boosted)? No, you would be better to use the skill. Worst-case scenario, you would still deal with higher damage than you would normally do. Best case scenario, you hit the jackpot.

And that is just a few of several moving parts in my game mechanic that influences the flow.
I never personally had a moment where I think the variance is too high.
I never saw someone reported that the fluctuation of the damage done is too high.
I always like to keep variance low on my numbers (0-10%), unless it's specifically stated in the skill description that a skill has a wider range of random damage.
When it's possible to just barely one-shot an enemy in a random encounter, I never liked when variance would cause damage to dip just below that threshold, keeping an enemy alive with barely any health left.

I've noticed I do 0-1% variance when testing out skills against enemies, which is my preference with it. I like knowing how much something will do at any given time, factoring in critical hits. (I also prefer 2x over 3x extra damage as the default with crits)
Well, I'm not gonna go over anything that hasn't been said already, but I think variance (especially 20% and up) needs special tailoring to make it work. I think it can be fun but of course the math needs to be structured around it, so a game where every action matters, and the difference between 1 - 2 hits can mean a character death then variance is very very bad, and will put your players in the hands of luck which can seem frustrating.

Although in a game with bloated health, high damage numbers, and where both enemies and monsters take like 10, 20, or 30+ hits, and especially focuses on usage of resources like potions and equipment over long stretches of time, I think variance could be spicy and interesting, because you aren't focused on exactly how much it takes to kill something, and the difference between 14 and 16 attacks is minimal.

Personally though that is not my style even though I hold a torch out for it, my games I 100% remove all variance what so ever, keep numbers low and manageable, and in terms of Hit Rate and Evasion, I usually keep evasion as it is (5% for every one) and make Players have 100% Hit Rate, so that means enemies have 10% chance to miss, and Players only have the 5% which is a subtle but (to me) noticeable difference with out making it seem like I skewed the stats, I personally like to create games where the enemies have very similar stats to players, to create a feeling of equity between the Player and enemies strength, and try to focus on elemental weaknesses in place of skewing things like Hit Rate or Evasion TOO much, I like keeping the stats some what equal between them because (imo) it makes it feel like every enemy could potentially kill you, and its your skill or strategy that prevents it, or your knowledge of other systems, so for my usage Variance is a big pain in the ass, but I would still like to see it used and one day I hope to make a game with some actually insane Variance, maybe something too much as an experiment or something.

Original thread: https://forums.rpgmakerweb.com/threads/lets-talk-about-rng-in-rpgmaker.124666/