Trying to balance my damage formulas

Here’s a question that I’m unsure goes here, but this was the best place I could find for it. I’m currently trying to figure out my damage formulas for two skills: the basic attack skill and the basic magic spells, such as Ember (my game’s “baby’s first” fire spell). So far I have the basic attack as (a.atk * 3.5 - b.def * 1.75), and the spell as (a.mat * 5 - b.mdf * 1.75). I will do more testing as I go, but I wanted to get y’all’s opinion on if these formulas seem balanced at the moment.
It's impossible for anyone else to tell you that just from those formulae isolated from your project.

If you do a search, you'll find a number of extensive threads about this.

But the easiest/most logical thing to do is:
- Decide how quickly you want an enemy to die - e.g. how many hits it should take
- Assign whatever values you like the look of to HP, ATK, DEF.
- Make your formula using those values produce the damage you want

Ultimately, there's really no such thing as a formula that's balanced...it depends entirely on the parameters, their values and progressions.
It's impossible for anyone else to tell you that just from those formulae isolated from your project.

If you do a search, you'll find a number of extensive threads about this.

But the easiest/most logical thing to do is:
- Decide how quickly you want an enemy to die - e.g. how many hits it should take
- Assign whatever values you like the look of to HP, ATK, DEF.
- Make your formula using those values produce the damage you want

Ultimately, there's really no such thing as a formula that's balanced...it depends entirely on the parameters, their values and progressions.
I understand, thank you.
Another thing that you should think about is the gameplay of the battles, depending on the amount of hp and def of the enemy, the number of turns that last to finish the battle greatly influences the use of skill and the fun that can be given so it doesn't get repetitive. It's something you should think about when formulating damage.
Another thing that you should think about is the gameplay of the battles, depending on the amount of hp and def of the enemy, the number of turns that last to finish the battle greatly influences the use of skill and the fun that can be given so it doesn't get repetitive. It's something you should think about when formulating damage.
Very true. I’ll admit I haven’t done much testing with this project due to work and school, but I’ll try and get some testing done today. I should specify that the character’s stats in this game will mimic an RPG boss, so balancing will be trickier than normal, in theory.
A battle formula, isolated from how battle works in your game isn't really going to be useful to anyone, unfortunately (as already stated).

I'd also like to point out that "balance is what you decide it is".

See, if you ever played "Warframe", then you would know this first hand. What's "balance" in Warframe? Killing things in one hit. If you aren't killing things in one hit, you're underpowered and need to spend some time building up your power. Enemies are also not meant to drain more than 20/40 of your shield a hit if you're "balanced" in that game (or, you are meant to be able to actually evade the incoming damage, which seems unlikely since some of the enemies have some hitscanner weapons).

But, Balance in other games might be, "it takes 20 hits to kill a single party member".

As @ATT_Turan mentioned earlier, your first step is basically to decide "how many hits do you want the enemy to die in?" and "how many hits do you want each character to die in?".

I'd also add my own caveat to this:

You should also decide how "complex" or "simple" you want your damage formulas to be.

I use simple ones. As in, the starting character has like 10 Attack and 8 Defense. He will do 2 damage against the basic enemy, which has 10 HP. The basic enemy will do 1 damage against the starting character.

10-8=2 (enemy also has 8 defense).
9-8=1 (enemy's attack is 9).

I use almost no multiplication in my formulas and I allow the players to "completely nullify all damage" if their stats are bigger. I also allow enemies to completely nullify all damage if their numbers are big enough.

That's how I determined what "balance" is in my game. If players want to "multiply" damage, then they do so via "weaknesses". Fire, Water, Blunt, etcetera. Or, they do so via CERTAIN skill use and almost universally "Limit Break" usage.

But, I also don't allow "multi-targetting" very much in my game. I also don't have a dedicated healer, so characters have to waste actions using single-target consumables.

Combat and the formulas are "balanced" around that stuff.

Actually, to put it more simply:

No dedicated healer.
Single target consumables.
Deadly States that can and will usually kill you in 5 turns.
Very few multi-target skills.
Very difficult to find ways to "preserve TP" in combat so "Limit Breaks" are difficult to pull off, and impossible to bank.
Enemies are meant to die in 4 hits on first encounter and 1 hit once you know the gimmick.
Characters are meant to die in 5 hits.
Multiplicative damage is dealt through multiple "weaknesses" always in play at once.

So, with all of that going on... I have "additive" damage formulas with "low stats" in my game.

You are going to need to figure out how to balance your own combat similarly. What works best for the "feel" you want and all the "features" you add to combat.
If you don't want a complication, remove defense.
Buff HP if you want it to take more hits. Use damage rate (element, or physical/magical damage rate) to convey defense break.
Formulas seem fine. Good luck on your game.
Sort of in the same vein as everyone else...
A damage formula on its own cannot be balanced; it is merely the tool by which you create balance.
~ Sun Tzu, probably
There are many ways in which you can balance your combat. Low stats with Additive formulas is good for games where you want things to be simple for your players to understand exactly how everything tracks out. Big stats with multiplicative formulas allows our carnal monkey brains to see big number and be happy but also partially abstracts how we see the formulas so that we aren't quite certain why we did the exact amount that we did... but big number go bonk!

But this also is only part of the equation. You need to consider how easily you want enemies to die. For the tutorial opponent, should the battle be a back-and-forth over several turns? Should it be 2-3 turns? Or do you want it to be a battle of wills? Generally, I shoot for the first battle being 5 turns or less, ideally with the player winning unless bad decision-making causes a loss. I then make my stats and formula reflect that. And however the tutorial fight goes, that lays out the expectations for the players and what is to be initially considered a balanced encounter. (You can of course use various points of the game to update those expectations, but let's not worry about that for now.)

Something I always encourage people to do is make it so that every attack that hits does a minimum damage of 1. Since you use RMMV mainly, then Math.ceil() should be what you want to add when using a multiplicative formula. This way, even if facing an absolute defensive unit, as long as the attacks land, then the player will always have a chance of victory. They may have to burn through all of their consumables to outheal the damage they take in return, but they are guaranteed eventual victory in a battle of attrition so long as they can continually deal some amount of damage to the wall in front of them.

But again, the important part is finding YOUR balance. These formulas you have, on paper, could be fine. Without knowing far more than you have provided... it's impossible to know. At the same time, they might be terrible... Again, impossible to tell without knowing what the player stats are, what the enemy stats are, and what the power curve is meant to be. It's a complex subject with loads of nuance. But give it trial-and-error and you should find the formula right for you and your game.
So far I have the basic attack as (a.atk * 3.5 - b.def * 1.75), and the spell as (a.mat * 5 - b.mdf * 1.75).
I can't speak to balance (see what the others have posted), but I can speak to what these formulas are doing;
  • Basic attacks use twice as much attack as defense to determine damage. This sounds like a want to have atk and def being able to be 'equal' in the stat screen with it being hard but not impossible to negate damage with enough defense. Additive also means that every increase in attack matters a lot when it's close to defense and multipliers (from, say, buffs) can swing things wildly.
  • Spells are close to three times attack as defense. This sounds like it's intended that you won't ever do 0 damage with a spell unless something is wrong (such as fighting a superboss far too early). It makes it hard to negate spell damage from the enemies.
  • Those numbers are fractional. That implies big numbers to avoid truncation having a heavy effect on damage. A def of 1000 is treated as 1750, but a def of 10 is 17 and a def of 3 becomes 5 (or 18 and 6 respectively if rounding up).
Are these assumptions you want for your combat?
I'd avoid making wildly different formulas for each skill, that would be a nightmare to balance. I just have a base formula, (1.5 * atk - def) for atk skills and (1.5 * mat - mdf) for magic skills, then multiply the base formula by a multiplier to determine its damage.


To tweak the damage of a skill all I'd have to do is tweak the multiplier, not rehaul the entire formula. Keeping a base formula also avoids the issue of one skill doing like 10 damage, and another doing like 1000 damage unintentionally.

Ex: (1.5 * atk - def) * 1.3 for weak skills

Ex: (1.5 * atk - def) * 1.8 for strong skills


Sakurai made a video on this and it's helped me a lot:

Still, be prepared for a loooooot of math. I have a whole Excel sheet for all the skills and party members to balance the damage outputs.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-balance-my-damage-formulas.160832/