Friday, August 20, 2010

Random Chance and Luck-Based Gaming

Introduction:
My friends and I were playing Super Smash Bros. Brawl which, ever since the 2nd week of me playing Melee, I have always played without items.
At parties though, items will go on on occasion - but, after a few matches, I want to turn them off - due to the fact that when items are on, there is no real point to playing because you have limited control over the way the game is being played, and you have limited ability to judge what might be coming your way.

Basically, the game is less about skill, more about luck.

In this point I'll like to highlight why sure, a little luck tosses it up - but when it comes down to it, skill is the main ingredient in fun.

A Little Luck is a Little Good
Don't get me wrong - a lot of outcomes in each match are due to at least a little luck - even if nobody gets a critical hit, or rolls a random class.
An enemy rounding a corner, a little weighted spray - or the fact that you thought that your enemy would make one move - then he didn't think of this move at all and went for another? There's a fair amount of luck.

That said, skill will still weigh in a lot on these issues - complimenting them. If you position yourself well and are aware of enemy locations, you will be able to effectively battle the enemy around the corner. With better aim, you have a better chance of your spray hitting the opponents. With good knowledge of the game, you can use moves that, regardless of what the enemy is thinking, have a good deal of success.

So, in every well balanced game, there'll be a bit of luck - but skill will still affect the outcome of a match over luck entirely.

So, why on earth would you want to add more?

Why Skill Reigns Supreme
Skill is important in games, especially in ones where you compete against other players.
Many players get satisfaction from exacting a task with proficiency, and showing off just how much they have learned about the game and how to play it - even against computer opponents.
It builds the player's self esteem, and gives them the feeling that they are having fun.

Many designers have analysed this feeling - one in particular being Raph Koster, the author of "A Theory of Fun for Game Design", who argues that the experience of fun is derived nearly entirely from the experience of learning, and trying to perfect facets of a game's gameplay.
I don't agree entirely - but I absolutely believe that learning and gaining skill is extremely rewarding to players, and as such is a main element of the experience of 'fun'.

Repeat the mantra, learning is rewarding, and rewards are fun.

You Did What?
Another aspect of luck is the negative side, where players feel cheated if they are beaten through luck-based occurrences, which is fair enough.
One second, you're beating some guy down with a well timed sequence of moves, and, the next, he gets a lucky critical and you're down. Despite the skill difference, or how well you executed the attack, the luck trumped your skill in determining the outcome of the encounter.

That's bad - it's as if you might as well have just played Paper, Scissors, Rock with the opponent. And everyone hates Paper, Scissors, Rock.

Something that I see a lot of designers do is have little occurrences that can determine the outcome of an encounter - and justify it with the fact that it's only a 1%, 2% or 5% chance - but all this does is have no effect on most encounters (so why even include it), but make the ones that it does affect completely based on chance and rage-inducing for the player on the receiving end.

Do not do this.
As explained - it's useless (it doesn't achieve anything) and bad game design at the same time.
No-one even notices if you don't include staples of random events (crits, etc.) in your game. The only time I've heard someone say "That's odd there aren't any critical hits", is immediately before "and I love it!".

If you want to include random chance in your game, do not use "Low Chance vs. High Payoff" chance.
To ensure that your game is balanced and fun, use "Moderate Chance vs. Moderate Payoff" or "High Chance vs. Low Payoff" chance.

Triggers
To define Moderate and High Chance, I need to define Triggers.
A Trigger is simply an event, that can cause a random event. It's the event that causes the proverbial die to be rolled. For example if every time you shoot a bullet from your weapon, it can critical hit for 3x damage, shooting your weapon is that event's trigger.

A trigger's Trigger Occurrence Rate is how many times this event will happen in an encounter (or in a given time period) - and will affect the random chance co-efficients you use.
For example, if you shoot 10 bullets per second, and they have a 10% chance to crit, that's effectively one crit per second.
If you want this one crit per second, and your weapon fires on the half-second, you would give it a 50% chance to occur. It's as simple as that.

For this reason, it's hard for me to define what I would consider Moderate and High Chances.
I simply do not know the Trigger Occurence Rate for the games that this post applies to, as each game has its own balance, pace, and encounters.
That said, I generally aim to have my lower limits of occurence at 12.5% or 16.6% (1/8 and 1/6), as any lower and unless your triggers are occuring rapidly, there is a rather low chance of the event occuring and it falls in the reals of "not useful but really annoying" features.

Anyway, "Moderate Chance vs. Moderate Payoff" and "High Chance vs. Low Payoff" chances offer the following advantages:
  • You can more easily judge their effect on game balance.
  • Players will more easily judge their effect on encounters, and will adjust their strategies in turn.
  • Something that has a higher chance of happening appears to be far more useful to players than low chance occurrences.
  • Something that has a higher chance of happening is actually far more useful to players than low chance occurrences.
The first advantage is actually really important - as I too have falled for the "Low Risk v. High Payoff" trap before, and, I'm in the middle of rectifying it for Pokemon Universe.

In PU, a few Pokemon have some abilities that have a tiny chance of activating, but, could win a match. Put them all together (each Pokemon had a few of them each), and I realised that these could decide matches more than team layout and skill a lot of the time.
The scary thing is, I put them in the game a while ago and it took me this long to realise how bad it really was.

As a designer, it's so easy to say "Oh, it'll only have 5% of the time, that won't affect anything," and "That makes it just a filler", but - the amount of grief it could give your players is tremendous, and could make the difference between having a game with a skilled design and a possible competitive future - and a casual party game that isn't even fun at parties.

Higher activation chances increase the transparency of a feature's effect on game balance - making it more enjoyable for both you to work on and players to play.

Conclusion
So remember:
  • Games with few random parameters usually have enough luck in them as it is.
  • Skill should always trump luck in deciding the outcome of an encounter.
  • Gaining skill and learning is a rewarding experience for players.
  • Low Chance, High Reward feature often don't happen enough to affect balance, but when they do happen, annoy players greatly.
  • Use "Moderate Chance vs. Moderate Payoff" and "High Chance vs. Low Payoff" chances.
  • These chances are easier to factor in your balance.
  • These chances are easier for players to factor into their strategies.
  • These chances increase the transparency of your luck system, increasing the quality of the game.
And that's why I think you should turn items off in Brawl.

Thursday, August 5, 2010

Simple Balance Rules.

Introduction:
Balance is a big topic - and each game will require different balance strategies, but there are a few simple principles that are common to all games. These mainly pertain to winning conditions, and equal opportunity for all parties able to win. Also, David E. Kelley.

#1: All parties that can win a match, should have equal ability to win a match.
This one is blatantly obvious - whether you have two teams in an FPS, two armies in an RTS, or four players in a Fighting game, all should have the ability to win from out the outset of the match. It should be up to each party to make the choices, and use their skills to win or lose the match. The maps, levels, and other match settings should benefit each party equally - such as in the RTS, one player shouldn't start with a huge wood supply, while the other has all the rock.
Basic game settings and maps shouldn't determine the outcome of a match to any degree.

#2: Basic initial player choices should for the most part hold little significance to the outcome of the match.
In simple Player1 vs. Player 2 games, their choice in unit should not be significant to the outcome of the game. For example, in an RTS, one player should not be immediately in a losing position because they chose the Elves while the other chose the Orcs. In a Fighting game, a player shouldn't be disadvantaged because they chose Johnny Cage and the other chose Bridget.
Players should be able to choose any character, army, etc. that they want, and be able to win the game.
That said, in games where there are teams of players, the situation is a little different. For example, if Team A's players all choose pistols, while Team B's players choose a variety of Sniper Rifles, Pistols, Machine Guns, and Assault Rifles - the team that chooses their units to more actively reflect the nature of the game should win.

#3: Ensure that there are no dominating strategies that ensure that one party will win the match.
This is a mixture of the above points. You must make sure that with the mechanics of the game, the designs of different levels, and the features of different characters can't all mis together to make a perfect strategy that dominates the game.
A common problem in some games is where defensive options are so strong - that offensive strategies would be punished heavily. This creates a campy style of game where strong defensive characters are kings.
To guard against this one, you have to ensure that the game's mechanics are designed with equally viable offensive and defensive strategies and counter-strategies, while ensuring that your game modes and maps don't favour a particular play style.
Similarly, you need to design maps with your unit's capabilities in mind, a good example being Team Fortress 2, where there are "Magic numbers" that denote important figures such as a Sentry Gun's range.

Unit Balancing Strategies:
These ensure your game in itself is balanced - but doesn't say much about the individual units. We'll go to those next.
One point I'd like to make is that every designer has their own criteria that say that a unit is balanced.
I have read some criteria that simply say that "If something is beatable, it is balanced" - and others that say something like "Each unit should have to exert as much force to kill itself, to kill an opponent".
I absolutely cannot stand the "If it's beatable, it's balanced" argument - as it pretty much validates any unit with a health bar that can reach zero. It's a very ignorant justification.
The other seems to be somewhat useful - particularly if you relate it to hit-counting, but I prefer my own definition.

What Criteria does a Unit have to fit to be Balanced?
Considering each player has equal skill, and the circumstances don't favor any unit:
  • A balanced unit must have a variety of other units and simple strategies that can reliably defeat it.
  • Corollary to the point above, if a unit is heavily specialised such that few units have innate ability to effectively nullify it, its specific counters must be extremely reliable, and commonly employable.
  • The unit's absolute power must accurately reflect the effort required to use it.
I think they're pretty self-explanatory.
The second point is basically saying that if you have a unit that is supposed to be hard to kill for many units, the ones that can kill it should be readily available, and very potent.
A good example would be Stealth units in Real Time Strategies - if you don't have an anti-Stealth unit, your groups of units can easily be ripped up without being able to fight back - but, with an Anti-Stealth unit, the invisible unit is visible - and can be attacked to exploit their often-low defenses.

My favourite thing about these criteria, however, is their versatility. While they are often meant to check for units being too powerful, with some quick word changes, they can be used to evaluate if a unit is underpowered, like so:

Considering each player has equal skill, and the circumstances don't favor any unit:
  • A balanced unit must have a variety of features and simple strategies that can be used to reliably defeat other units.
  • If a unit is heavily countered such that many units have innate ability to effectively nullify it, its specific features must be extremely reliable, and commonly usable.
  • The effort required to use the unit must be accurately reflected in its absolute power.
Now you have some good criteria to ensure that none of your units are rendered redundant during play.

Anyway, I'm ready to tie this one off, so I just want to make a note that I will hopefully be doing more articles very soon, and perhaps even some 3-minute-pitch videos.

I want to write about
- Balance Through Common Traits and Mutual Exclusivity.
- Sloth (game idea).
- Shapeshifter game idea.
- A Trick of the Light game idea.

At the very least.
I swear I had some others... I'll need to remember them.