Thursday, March 20, 2014

Cheat,Hack and Simulate!

All programmers like to show of their skills by implementing things in an interesting way.
This is done most of the time of the time for the purpose of optimization and has a clear function and scope, which is unfortunate because premature optimization is bad.

What I would like to say however is that this hacks outside of optimization are never bad.
Optimization is the crutch that kills them.

Game programing is all about this hacks that propose novel solutions and have interesting side effects that let you do more with little.
One line of hack code can affect much more what is possible with your design then thousand of lines of conventional code.

You have to think of it in terms of loose problems and actively think about the code and the resorces available and how they work.

Hacks can be simple rules used to calculate hit chance, damage,evasion and so on. You can say DnD was built on this kind of hacks. Simple rules that do great things.
 So when you make an RPG be inventive when you implement your stats, don't follow the standard and make a nice hack for it.

Some of the best RPGs I played have done some wonderful hacks to the combat system.

One type of hack the developers don't really like to use is the cheat.

As we all know the AI is a cheating bastard.
And to some extent it can't be helped as the AI is limited in its ability to think.

To think is to gather information and what we are doing is giving the information away.

What developers don't understand is that this should be embraced.

There is no visible difference between intellect and cheating.
An AI that gathers vast amounts of data and makes calculated guesses and AI that has the information given to them can make the same decision.

The simulation of believability is not necessarily dependent on the ability to gather information.
It is in fact the quality of information that impacts the hardest believability, the more types of information you have the more you can work with. Things like heat maps that know where the choke points are a great addition in both believability and effectiveness.

But cheating is not limited to AI bots.

In fact cheating is a powerful tool for a designer.

The only thing you can't control is the player and cheating is taking one step into his domain.
Every instant a Player prays to the RNG God is an instant that you can be that God.
You do not have to always cheat against the player, when the player is in the flow in a high risk situation you can cheat and let him live that situation. If the player grows strong you can devastate him.
You can act as his fate bestowing opportunities and placing obstacles.

Keeping players alive for the first time in a situation can be a very thematic thing, in the game the player will be low on health, resources and their armor broken. It would be a mercy just to kill them but the player will live on and play more carefully. In a game that has a high learning curve this and hard battles this careful play is required, so cheating the player to survive can be a great learning tool.

And finally simulate!

The most terribly underutilized tool a game designer has.
The thing that the designer has full control of.
The NPC.
I still remember when I was playing Gothic for the first time.
I was meet by an NPC, along the path I meed some hunters in a camp in the woods, I entered the town and seen NPC have some limited day/night routines. A NPC guided me to another town.
That is all the game did, no complicated AI here, and to this date NPCs are still more limited then this.

Simulating NPCs is the most important thing you can do, you don't have to do them for all of them but always have some.

The most important rule to follow is to always be visible to the player.

If you simulate and the player doesn't see it you are wasting your time.

First vary your NPC location, it can be as simple as teleporting different adventurers to a pub.
You can have the main villain be chased by a player all over the world and the locations could be completely random.

Second let NPCs interact with players, NPCs should strike a conversation just as much as the player does especially if they have something important to say, interaction is key, whatever bits of interaction you ca think of put it in, let the players be chased by enemies he made and unwanted admirers.
If you can implement things like emotions in NPCs you could create powerful stories with only that.
It all boils down to action,stats and reaction.
For every action that can be a reaction from a NPC.

Another thing to simulate is a different layer of the game altogether.

In an RPG a very powerful thing to do is simulate the plot with an actual strategy game on top.

NPCs become units that move around the map and conquer the land.

The player becomes the hero unit and has to play the game as an RPG, he does not control personally a faction. He can only setup things acting as a diplomat and placing the right pieces in the right places at the right time.  He could strike as a special unit the weakness of the enemy and have support from the enemy's rival factions. He could meet with adventurers NPCs and gather their support.

All this while a real strategy game is played above the player between factions.






No comments:

Post a Comment