

This calculation might be as simple as adding them, or it maybe more complicated.īase stats are rarely used in combat simulation directly, instead they're often transformed into derived stats that make the calculations easier. Derived stats are calculated from a number of base stats to form a new number that represents them both. Derived stats, on the other hand, are built up from multiple smaller parts. Base stats represent one pure aspect of an entity, they can't be broken down into smaller parts. Derived StatsĪll the stats we've looked at so far are called base stats. Stats that seem to have a similar effect combine in the combat simulation, according to a formula, to get a single, final number, we'll called a derived stat. Attack rate is similar to speed they both determine how often an attack can take place. Attack power is similar to character strength they both determine the amount of damage inflicted. Notice how similar the sword stats are to the character stats. What stats might a spell have, a piece of armor, a magic ring? Try coming up with a few examples and think what information that computer is going to need. These stats describe a sword but it's worth thinking about other entities as well.
AVERAGE DMG VS DEXTERITY CODE
To make these decisions the computer runs simulation code using the stats. If you attack a monster the computer needs a way to decide if you hit it and if you do, how much damage you inflict and finally it needs to check if the blow killed the creature. In JRPGs stats are used exclusively to simulate combat. In RPGs, the player character's stats can be increased to benefit the player.

A game entity might be a monster, character, weapon or spell. Please give it a read and drop me a comment, rip it apart, question it, shout out if anything confuses you! This is first pass, it's messy, rough and I want to improve it through feedback! What Is a Stat?Ī statistic, or stat, is a number describing an aspect of a game entity. I suggest a basic architecture to track stats as the starting point to launch into a fully fleshed out combat system. I wrote this article while mulling over the combat section it discusses stats in JRPG games.
AVERAGE DMG VS DEXTERITY HOW TO
I'm writing a book called How To Make an RPG.
