Thoughts on RNG?

I'm new to RPG maker and game development in general, but I've played enough games in my lifetime to know the impact of RNG on a game.

I've noticed that the default secondary stats are designed with RNG in mind, but is that really good for a game? It's very frustrating when the final battle depends on your last attack, only for it to get evaded due to a 3% evasion chance, or if you have a strategy in place and it falls apart immediately due to one of your party members dying from a critical strike. It just doesn't seem like fun or engaging gameplay, but I see it in so many games.

I'm not sure how other people feel about this, but the only time I would use these secondary stats is as a button press to guarantee a critical strike or evade.

What are your thoughts on RNG during battle?
I think rng is good for systems like criting and sometimes rolling stats for players because it gives a more dynamic feel to the game. If something always goes just as planned there is no challenge to the player no "oh he crit," changing your style of play to a more defensive style for a bit till you got your guys ready to go on the offensive again. As for an example of an rng type class based system you ever looked at wakfu they have a gambler class. High risk high reward type class depending on the dice rolls. Deals massive amounts of damage but the drawback is he takes massive damage if he rolls bad. 
It really depends on how randomized the attacks are.  I think RPG Maker calls this the "Variance".  It would be very boring to always have your fighter's attack do 50 damage against an opponent.  Now, if a normal attack has a very high variance, I agree it can create very annoying situations in battle.

Personally, I use variance to create attacks and defenses with trade-offs.  Some magic spells might be more powerful and cheaper, but do a much more random amount of damage.  Think of that as "Wild Magic".  It's cheap, fast and useful in a pinch, but not great for prolonged battles due to the high variance.  Or a fighter's powerful Hit Everything attack, which bypasses defense outright, might be much more variable in damage, to avoid it becoming the "always use this" attack.

A typical attack has, I think, 20% variance.  I might have mid-level but super powerful attacks vary as much as 50%.    Now, I agree if you get powerful Finishing or Final Moves that take a lot of TP or require something rare to use, those have very little variance, maybe 10%.  So if you use it in a climax, you can be sure it will do damage.

Basically, I use the RNG to add some element of chance and risk to battle, but I also work to make sure the attacks and defenses are balanced, so no one bad RNG roll should cause a fatal mistake.  Nothing annoys me more as a player than being against the Final Boss and having the entire party's fate be sealed by a single bad RNG roll.  Of course, if the player is pushing the envelope, holding out on healing and status recovery, that's the player's choice.  But the RNG won't rule my games.
the RNG rolls on eva hit crit and such are a little more then just a dice roll, as EVA is canceled out by hit and vice versa same with crit and crit evasion, the rng allows there to still be a chance to miss if a character has more then triple the hit stat of the opponents evasion stat

i like RNG in battle, its more realistic, cuase you can not plan for every single occurance in battle its impossible, and it adds a little more challange to fights 

i also dont see how you find not fun and non engaging,if you miss and that attack decided the fate of the entire battle then you need to refine your strategy, no battle should come down to one attack decides it, it should be which every had the better strategy and back up plans in case things took a turn cuase of a random act of chance, if you have a set strategy and dont make plans incase something goes wrong with your plan then maybe you should start thinking a little more ahead with the battle

thats like saying a game isnt fun cuase your only healer was killed and you didnt bother to buy any revive items cuase you didnt plan for the occurance of your healer dieing even though most games set it up that enemies target the healer characters
Unless the game uses an Action Battle System, i think that RNG is not bad.

In turn based games, you just select the action and watch the results, You have little to no interaction with the results except by the choices you've made. 

if there is no failure chance, then it becomes too much predictable and might become boring.
I don't like the RNG algorithm it's rather repetitive, I had for example an event with 6 answers. At the beginning I used the RNG to let the engine dice a number, then I used a conditional branch. After I was in battle 8 from 10 times it were the same 2 sentences from the enemy over and over! D: Then for an attack I used a 50% chance, after I replayed the part really ofen I noticed it was often first hit and success, if I used a 47% success rate it was like 10 hits and just 1 success. 
remember the actor hit rate is (actor hit - target eva) vs X where X is a random number generated from 0-100 if your hitrate is higher then the number rolled its a hit, if lower then its a miss so giving actors low hit rates will result in low chances of success which is why enemies with high evasions can dodge alot more attacks from high hit rate actors due to the final number vs the roll being alot lower then normal enemies
remember the actor hit rate is (actor hit - target eva) vs X where X is a random number generated from 0-100 if your hitrate is higher then the number rolled its a hit, if lower then its a miss so giving actors low hit rates will result in low chances of success which is why enemies with high evasions can dodge alot more attacks from high hit rate actors due to the final number vs the roll being alot lower then normal enemies
That depends on the version. It's probably the same in MV, but in VX Ace, the system calculates separately if you hit and then if the target evades.
@Einherjiar: Sorry, but that's not correct. The default engine first rolls to see if you hit, and you will miss if the roll is > your to hit. Then it rolls to see if the enemy evades it, and they will if the new number is < the evade.

That's also why a 95% to hit and a 5% evade does not mean you hit 90% of the time, as you really hit .95 * .95 of the time.

That being said, I did modify my battle engine to use the formula you suggested, as I like it more. But that's me.

@lilywhite: As far as I can tell its the same in MV as it was in ACE.

@OP: I'd be careful with RNG. As Wavelength said,  you do not want one attack that misses deciding the battle. Also, some may argue that means refine your strategy, but I've seen games where the RNG hates me and a 75% to hit attack missed 8 times in a row.

As for Criticals, I would consider a script to lower critical damage some. I feel 3x normal damage is way too high, as that usually means it is a one shot kill for bosses and powerful monsters. You don't really want RNG deciding a one shot kill, as players feel that is too cheap, especially as in most games I play that have critical hits there is no way to block them (so therefore no strategy can be used to prevent it, also meaning there is that low chance that a full party attack rolls all criticals and wipes out the whole party in one shot).
wait i said the part about 1 hit decideing the battle D: wavelength isnt even in this forum topic D: not cool dude

also my formula makes more sense then the defualt in ace due to if you successfully hit then how can your opponent evade the attack after wards

for critical hits, 3x damage shouldnt be enough to one shot your actors unless you gave the boss and obscenely high attack stat for the area your in or its the final boss and then give it a really low critical rate
I meant whitesphere. Typo. But yes, your formula makes way more sense than the default, hence why I use it too.

As for the Criticals, what you have to watch out for is if you give any boss an attack that does 1/3 of the actors HP, and it criticals, that's an instant kill on the default (as 1/3 HP * 3 = all your HP). And most people like to give bosses a single target attack that does more than 1/3 the players health every now and then (and sometimes 1/3 of everyone's health).
yea but you can adjust those types of skills to not critical (which should be the defualt to prevent scenerios like that) as those are basicly demi skills from FF
I wasn't talking Demi, I was talking giving the boss enough attack that they happen to do 1/3 of your HP (or thereabouts). I see many bosses in AAA games (and RPG Maker games) do that all the time just with their skills and the party is at a sufficient level. Now, sure, one solution is to not allow them to critical with those skills too, and another is to lower the multiplier to critical hits to say 1.5x or 2x normal damage.

Both are things the OP will want to think about though.
RNG is used for a good reason. Imagine a game of Poker where you're dealt the same cards each time. It'd either be pretty boring, or the game would have to be redesigned (and would lose its appeal).

Randomness is an important element of any game. It's annoying when your attack misses, but it's also very satisfying when it crits. But most importantly, this lack of predictability is engaging. A game shouldn't play the same way each time, it should be surprising. The scenarios you describe are exactly what makes a game interesting. They introduce a layer of dynamics, a need to adapt, to have contingency plans, risk calculations and probabilities that you always have to bear in mind. 

There are some games where the RNG can be far too punishing though, or is applied to mechanics that would benefit more from consistency. But the baby shouldn't be thrown out with the bathwater. IMO, instead designers should use RNG to improve a game's capacity to surprise and engage, while bearing in mind where it can also overly frustrate and undermine player skill. A good designer will get that balance exactly right while IMO a bad designer will either let RNG run rampant, or naively axe RNG from a game altogether.

TL;DR: RNG is good stuff. But there can be too much of a good thing.
Some RNG is fine as it adds a bit of unpredictability to the game and can make things more exciting.  It's good to force the player to adapt to the circumstances so that they can't just use the same strategy over and over to win.  I usually cut out evasion from enemies, but I see nothing wrong with allowing your characters to dodge attacks or land critical strikes.

The type of RNG you want to avoid are the ones that automatically determine the outcome of the battle.  Giving a boss a 1% chance to cast an ability that obliterates the player isn't fun for anyone.
My thoughts on RNG.....

Did you know that character stats in many Final Fantasy VII actually have random variance to them? Stats from one lv. 99 play-through of FFVII are entirely different from another play-through. One very important thing to note is that the random variation was set up in a way where the characters were never very far from a set range so some characters were always faster than others or were always stronger than others.

Besides that, hit chance, and a small chance for critical hits, the only other thought I can offer for RNG is....Oh god no!
My personal advice: Don't include Missing, Evasion, or Critical Hits in your game unless you can clearly justify a reason why your battle system is more interesting and more strategic with their inclusion.  There are plenty of valid reasons you can include such mechanics (usually with some tweaking or clever framing to give your player more control over them), but including them "because most RPGs" do is not a good reason, nor is "just to add some unpredictability into combat".  A little bit of variance is damage dealt is good, but too much makes combat into a boring game of dice rolls - 10% to 30% is usually good.  Randomness should be taken out of Escape mechanics as much as possible - we recently had a great discussion about this very topic.

I'm also a big fan of what TheHonorableRyu has said on the topic.  This is a really good post about randomness in Tabletop RPGs vs Video Games, and this is another great post which deals with design choices that encourage save scumming.
My opinion with anything RNG (battle, crafting, etc.) is that you have to have a pool to make sure the player can still eventually win, otherwise statistically you may never "win". I'm against RNG 100% and think there are tons of other ways to make factors happen, but it is a normal thing in online and offline RPGs. At least pool the failures to make sure it results in a success before the player decides they want to quit instead.

My 2 cents.
including them "because most RPGs do" is not a good reason, nor is "just to add some unpredictability into combat"
I would say that adding unpredictability is a very good reason. It's not true (as ash55 said) that randomness is an important element of any game -- I'm a big fan of the Deadly Rooms of Death series, which has no randomness at all, even in its RPG spinoff. This makes for an RPG/puzzle hybrid where you know the outcome of every fight in advance (there's even a built-in calculator to show the exact amount of HP you will lose), and the gameplay is based around choosing your fights so as to maintain a sufficient level of HP and other resources to allow progression. I find it immense fun, but it's not to everyone's tastes.

However, even if randomness isn't necessary, including it changes the gameplay experience. Losing because of bad luck is frustrating; but having a bad turn of luck and successfully adapting your strategy to cope with it can be very satisfying. You have to find the right balance between these, but what is the "right" balance is a matter of taste. So in the end, all you can do is create the kind of game you would enjoy playing 🙂

That said, there is a general trend that players don't enjoy too much randomness, so -- as everyone has already said -- it might be a good idea to avoid things like the boss having an already powerful attack that can crit; the boss being able to dish out a status that cripples the entire party; the player's high-MP-cost attacks having a miss chance; random chance determining whether you can escape.
I would say that adding unpredictability is a very good reason.

...

However, even if randomness isn't necessary, including it changes the gameplay experience. Losing because of bad luck is frustrating; but having a bad turn of luck and successfully adapting your strategy to cope with it can be very satisfying. You have to find the right balance between these, but what is the "right" balance is a matter of taste. So in the end, all you can do is create the kind of game you would enjoy playing 🙂

I think that creating a variety of different, non-deterministic situations for your player to cope with is much closer to being a good reason than creating unpredictability for its own sake.

It's worth keeping in mind that the more opportunity you give your player to adapt to changing circumstances, the more fun your system will be in general:

  • A system where you have a 40% chance to miss with your attacks each turn is not fun at all, because no matter how much you try you can't do anything to compensate for bad beats.  A lot of video games that take heavy inspiration from P&P games fall into this trap; like Ryu said, it's a lot less fun in a video game than in a P&P where you can still enjoy roleplaying your character's temporary ineptitude.
  • A system where bosses can deal non-lethal crits to your party is better than the above, but since a standard JRPG setup might only allow "have that character defend and heal them" as the only real counterplay to such randomness, it's still not very fun.  More counterplay could lead to more fun, however.
  • A system that specifically allows you to work with or around bad beats as a gameplay element can feel very rewarding to players.  Tactics Arena Online is a great example, where hits/blocks during a blockable attack will change the target unit's chances to successfully block next turn.
  • A system that allows the player to predict unpredictable things, like the "Visions" system I've heard about in Xenoblade Chronicles where random, potentially fatal blows from enemies can be seen in advance and you can counter or avoid them, is considerably more fun than fully unpredicatable AI behavior.  Games with inferred tells (such as Poker or Saboteur, where the way your opponent plays a hand can give away hidden information) also fall under this very fun type of gameplay.
  • A system that offers a semi-randomized setup, and allows you to work from there, is an extremely fun type of randomness with full counterplay options.  Civilization, Spectromancer, and Settlers of Catan use this kind of mechanic, and it not only makes the games exciting but also keeps things very fresh.

Original thread: https://forums.rpgmakerweb.com/threads/thoughts-on-rng.53104/