Design Mistakes You Can't Stop Making

Okay, but will you share it with the class though?

OK, but this might get a bit long winded and I might not explain it in the easiest to understand method? Maaaaybe?

I have a design philosophy for battles where no normal enemy (if being fought at proper level and proper gear roughly) should take more than 3-4 Hits to kill (total), 3 for DPS classes, 4 for tank/healer classes. Bosses are expected to last around 5-6 hits per character in the party at the time of the battle... a bit more if you want to hit them with some status effects or need to heal.

I use a damage formula that some might consider to be a bit of overkill due to its nature, but my game like big numbers in the end, so I needed a formula that could scale over the course of a LOT of attribute gains, but would not quickly become so powerful you could one-shot everything or become some kind of infinite damage sponge because of enemy damage dropping off too fast. This fine balance I finally found took several, SEVERAL hours of trial and error, and I will explain what helped me the most in this endeavor.

First, lets look at the formula for a basic Melee attack:
Spoiler: Melee Attack
Code:
Game_Battler.prototype.attack = function(a, b) {
    if (a.isActor()) {
        damage  = (((a.atk+Math.pow((a.atk/10), 2)))*(100/(100.00+b.def))+((a.atk-b.def)/2))
        fi = $gameVariables.value( 8)
        wi = $gameVariables.value( 9)
        wa = $gameVariables.value(10)
        ea = $gameVariables.value(11)
        damage *= ((fi+wi+wa+ea)*0.0025)+1.00
        if (a.isStateAffected(40)) { damage *= 1.25 }
        if (a.isStateAffected(47)) { damage *= 0.75 }
        if (b.isStateAffected(46)) { damage *= 0.75 }
        if (b.isStateAffected(54)) { damage *= 1.25 }
        if (damage <= 0) { damage = 1 }
        damage = parseInt(damage*a.pdr)
        console.log(a._name+": Melee ("+(parseInt(damage*0.8))+"-"+(parseInt(damage*1.2)+")"))
        return damage
    }
    else {
        a._mp += a.mmp/10
        damage  = (((a.atk+Math.pow((a.atk/10), 2)))*(100/(100.00+b.def))+((a.atk-b.def)/2))*1.50
        damage *= (b.level*0.05)+1.00
        if (a.isStateAffected(40)) { damage *= 1.25 }
        if (a.isStateAffected(47)) { damage *= 0.75 }
        if (b.isStateAffected(46)) { damage *= 0.75 }
        if (b.isStateAffected(54)) { damage *= 1.25 }
        if (damage <= 0) { damage = 1 }
        damage = parseInt(damage*a.pdr)
        console.log(a.originalName()+": Melee ("+(parseInt(damage*0.8))+"-"+(parseInt(damage*1.2)+")"))
        return damage
    }
}
First off I should mention I only use my formula box in the RPG Maker Editor to call the attack function. "a.attack(a, b)" is all I have in the formula box, and it calls this whole wall of code back. I find it neater and a lot more friendly to deal with than that single line of text you get with the Editor.

Second thing you should notice: this formula checks to see if it is a player or enemy that is calling the skill. This allows me to use the same attack, but have different damage values and other effects in the same attack, but allowed to be used by both player and enemies to reduce clutter in the database. (notice the first line of the enemy attack gives them back 10% MaxMP when they use a physical attack, sort of a natural regen, if you would.)

Now, lets go into the actual formula.
Code:
damage  = (((a.atk+Math.pow((a.atk/10), 2)))*(100/(100.00+b.def))+((a.atk-b.def)/2))
This is an exponential formula, meaning the damage can go from very low to absurdly high given the right attribute values... but at the same time, this is also what will allow it to scale for such a long period of time. An enemy with 100 less attack than the players defense can still damage the player even at the early stages of the game... later on this gap might be 300, 400, even 500 can the enemy can still damage you. The same goes for a player with a lower attack vs enemies though as well, making it so there should never be a true "roadblock" boss unless you are just so severely under levelled that the math just is impossible for the fight.

Usually in my testing if you end up getting a game over, it is because you have ventured into an area you aren't quite ready for... as in you cannot kill the enemies before they manage to overpower any healing/items you may have, not like what you would find in FF2 if you accidently walked into a next difficulty zone and suddenly you are doing 0-10% damage and they are dealing +90-100% damage or more. I want the player to actually have at least SOME chance of beating battles in locations they should not be in yet and not just game over punished for wanting to explore.

Code:
fi = $gameVariables.value( 8)
wi = $gameVariables.value( 9)
wa = $gameVariables.value(10)
ea = $gameVariables.value(11)
damage *= ((fi+wi+wa+ea)*0.0025)+1.00
This section boost the players physical damage based on your collected Elemental Levels, which is a major part of the game. This was needed so that a physical attack could slowly increase its damage to compete with the ever-so-increasing magical damage the player can gain from also increasing elemental levels.

There are 100 levels for each element, so if you do the math that would eventually add up for +100% damage on physical attack.

Code:
if (a.isStateAffected(40)) { damage *= 1.25 }
if (a.isStateAffected(47)) { damage *= 0.75 }
if (b.isStateAffected(46)) { damage *= 0.75 }
if (b.isStateAffected(54)) { damage *= 1.25 }
This section is where I buff or debuff damage values if certain states are on... It is essentially replacing the normal function of the Physical Damage Rate (.pdr) for something I feel is a bit more under my control, and it allows me to use .pdr in another method further down in the formula without having to get confused trying to stack a % based effect like .pdr is normally.

Code:
if (damage <= 0) { damage = 1 }
damage = parseInt(damage*a.pdr)
console.log(a._name+": Melee ("+(parseInt(damage*0.8))+"-"+(parseInt(damage*1.2)+")"))
return damage
Alright, time for the final section!
Line 1 of this part makes it so if the damage would be 0 or less, always deal 1 damage. I HATE HATE HATE games where you deal 0 damage. I don't care how buffed and chisseled a target is, if you poke them with a sword, they are at least going to feel it SOME.

Line 2 is where I use the repurposed .pdr I mentioned above. .pdr is now a possible weapon enchant that can randomly roll on weapons, making it so they can just deal extra or less damage(there are negative effect enchants that can roll) without no outside influence from buffs or skills.

Line 3 is where the majority of my balancing comes in. This is the beard and butter of making sure I keep all my damage balanced and at proper levels throughout the game. It sends data to the console for every single damage instance in battle, telling who the attacker is (player name or enemy name+letterID), What the attack was they used (in this case "Melee") and then it will give a damage range of what that attacker's Melee will give +/-20% (variation). This allows me to see the min and max the attack can do, period. Critical attacks are not part of what is when here, but since Critical is always Damage*=3, you can do that math yourself very easy.

Line 4 is pretty much self explained, it returns the final damage value so the attack can actually do some damage... otherwise it would return Null (aka 0) and never do anything.

Last thing to mention:
Enemy attacks are automatically set to be 50% stronger using the base formula, hence the "*1.50" at the end of the formula. They also gain 5% damage per player level for the character they are targeting, this helps them remain a mild threat a bit longer, but tapers off by the time you account for player DEF + MaxHP growth.

OK, now that all that is typed up and done, for the part you were wanting, the best method of balancing I found.

Using Line 3 from the final section in the spoiler, being able to see the damage range of every attack perfectly in the console, that will make it so you know instantly if "Hey, this enemy has too much attack/intellect." if they are having a damage range way too high.

I like to make normal enemies able to deal ~10% of a single players MaxHP per hit when you are first in the area for the initial visit.

So, if you know Actor 1 has 600 HP, that means the middle damage should be abut 60 damage, so the number you should be looking out for in the console is 48-72 damage... if the values are higher than that, lower the attackers attack/intellect as needed to get it to more or less that area.

The same goes for balancing enemy stats as well, if you know about what your character is doing at this point in the game (lets say 300 physical or would be shown as 240-360 in the console) and you know you want it to always take 3-4 hits per enemy, that would mean you would want the enemy to have a minimum HP value of about 720, and a max of 1440.

And for both players and enemies, never forget that Defense comes into account as well, if you don't want your players dealing so much damage when going into a new area, just jack up the enemy defense/spirit and it will help keep the damage under control much longer.


And with that, I feel like I have explained it enough, and gave a good example with my damage formula to show how the games balancing and whatnot can last good from early to mid to late game. Keep in mind I typed all this while dealing with a severe migraine that woke me up at 3:30am -.- so there may or may not be typos or confusing sections due to how my head feels.

Oh and yeah, ALL ~108 of my games attacks and spells formula's are this complicated... if not more for some of the special attacks. It was a crazy adventure to get there, but I was so happy once I finished it all!
That's the longest formula I think I've ever seen. But hey, if it works, it works, LOL.
I've been curious about this one for a while. What, if any, are some design things in all of your games that playtesters complain about that are consistent from game to game? I'll give an example with my own experience.

All of my games end up being too hard with not enough direction for the player. This is because I'm really bad at writing tutorials, but I don't have the skills to help the player learn by doing. So I always end up with infodump tutorials or just no guidance at all. I also play very hard games, so I end up making very hard games. But because of my lack of tutorials, they end up way harder.
Signposting is a learned skill. It's at its best when you don't even realise it's happening: A few naturally but deliberately placed trees that highlight a second path off-screen.
A series of slightly brighter lit lamps that guide the player along the path.

A good example is in Saboteur - the 2009 Xbox game, not the 1985 Spectrum title - where yellow lamps will guide you up complex cathedrals and other buildings you can climb. Oh yeah, it's obvious now I've mentioned it, but did you follow them before? Did you really?
I like this thread idea.

I think my biggest problem is... SCOPE CREEP, lol. I keep adding things! And then I have to take some of it away because it ends up being too much. And i chose to restart my project at one point. In part because my project file was too chaotic.
Scope creep is a huge one for me. This is why AD has been in development for 6 years. The story just keeps getting more and more complicated!
That's the longest formula I think I've ever seen. But hey, if it works, it works, LOL.

That is short and sweet, this is the longest one in my game:
Spoiler: Expose Spell
Code:
Game_Battler.prototype.expose = function(a, b) {
    base  = 10000
    if ($gameSwitches.value(15) == true) { base += 20000 }
    chance = Math.randomInt(base)
    if (a.isActor()) {
        if (a.luk >= 100) {
            if (b.isStateAffected(56)) {
                // Nothing!
            }
            else {
                if (chance <= a.luk *  1) { b.addState( 1) }
                if (chance <= a.luk *  2) { b.addState( 3) }
                if (chance <= a.luk *  3) { b.addState(45) }
                if (chance <= a.luk *  4) { b.addState(15) }
                if (chance <= a.luk *  5) { b.addState(11) }
                if (chance <= a.luk *  6) { b.addState( 9) }
                if (chance <= a.luk *  7) { b.addState( 7) }
                if (chance <= a.luk *  8) { b.addState(13) }
                if (chance <= a.luk *  9) { b.addState( 5) }
                if (chance <= a.luk * 10) { b.addState(17) }
                b.addState(56)
            }
        }
        else {
            if (b.isStateAffected(56)) {
                // Nothing!
            }
            else {
                if (chance <=  100) { b.addState( 1) }
                if (chance <=  200) { b.addState( 3) }
                if (chance <=  300) { b.addState(45) }
                if (chance <=  400) { b.addState(15) }
                if (chance <=  500) { b.addState(11) }
                if (chance <=  600) { b.addState( 9) }
                if (chance <=  700) { b.addState( 7) }
                if (chance <=  800) { b.addState(13) }
                if (chance <=  900) { b.addState( 5) }
                if (chance <= 1000) { b.addState(17) }
                b.addState(56)
            }
        }
        damage  = (((a.mat+Math.pow((a.mat/10), 2)))*(100/(100.00+b.mdf))+((a.mat-b.mdf)/2))*1.50
        damage *= 5.00
        damage *= 0.75 // Status
        damage *= ($gameVariables.value(10)*0.02)+1.00
        if (a.isStateAffected(40)) { damage *= 1.25 }
        if (a.isStateAffected(47)) { damage *= 0.75 }
        if (b.isStateAffected(46)) { damage *= 0.75 }
        if (b.isStateAffected(54)) { damage *= 1.25 }
        if (damage <= 0) { damage = 1 }
        damage = parseInt(damage*a.mdr)
        // console.log(a._name+": Scan ("+(parseInt(damage*0.8))+"-"+(parseInt(damage*1.2)+")"))
        return damage
    }
    else {
        if (b.isStateAffected(56)) {
            // Nothing!
        }
        else {
            if (chance <=  100 + a.luk *  1) { b.addState( 1) }
            if (chance <=  200 + a.luk *  2) { b.addState( 3) }
            if (chance <=  300 + a.luk *  3) { b.addState(45) }
            if (chance <=  400 + a.luk *  4) { b.addState(15) }
            if (chance <=  500 + a.luk *  5) { b.addState(11) }
            if (chance <=  600 + a.luk *  6) { b.addState( 9) }
            if (chance <=  700 + a.luk *  7) { b.addState( 7) }
            if (chance <=  800 + a.luk *  8) { b.addState(13) }
            if (chance <=  900 + a.luk *  9) { b.addState( 5) }
            if (chance <= 1000 + a.luk * 10) { b.addState(17) }
            b.addState(56)
        }
        damage  = (((a.mat+Math.pow((a.mat/10), 2)))*(100/(100.00+b.mdf))+((a.mat-b.mdf)/2))*2.25
        damage *= 5.00
        damage *= 0.75 // Status
        damage *= (a.mat*0.01)+1.00
        if (a.isStateAffected(40)) { damage *= 1.25 }
        if (a.isStateAffected(47)) { damage *= 0.75 }
        if (b.isStateAffected(46)) { damage *= 0.75 }
        if (b.isStateAffected(54)) { damage *= 1.25 }
        if (damage <= 0) { damage = 1 }
        damage = parseInt(damage*a.mdr)
        // console.log(a.originalName()+": Scan ("+(parseInt(damage*0.8))+"-"+(parseInt(damage*1.2)+")"))
        return damage
    }
}

That spell deals damage, but it also has a chance of inflicting any permanent negative status effects to a target, even if they are 100% immune normally. It can only be used once per target per fight and it is all based on a ((base chance + attacker luck) - (base defense + defenders luck)).

and yes, this ability CAN pop and instantly kill any enemy in the game, even the final boss and super bosses, but due to the way its coded even with 10,000 luck (which is thousands of Luck+ stat items to farm) the most you could get is ~33% chance for that, but only diehard players would ever attempt to max luck out.

This is one of the only skills in my game I am still open to tweaking a bit more due to its very overpowering nature... as I don't think I have ever played a game with an attack quite like this to see how it might be balanced further.
Not the one you are replying to, but here's one I came up with: do X portion of an enemies health in damage + attack/magic offensive stat - enemy defense/magic defense.
For example, if an enemy had 100 HP, do 25 base damage + 20 attack - 15 defense = 30 damage.
Sounds a lot like mine, with even smaller numbers, haha.

X + a.atk - b.def, where X is the Power of the skill.

First enemies have 20 HP and 4 of their respective defense, actors have about 10 of their respective attacks, and the Power of their skills are 1 for the fast one and 5 for the slower one. Enemies go down in 2 hits at level 1.

@Ahuramazda Seconded, this is the longest damage formula I've ever seen, but it's cool that you make it work! I'm a big fan of simplicity and small numbers; I want a Paper Mario, not a Final Fantasy, haha!

Something I find interesting is our design philosophies on enemies - one of my big pet peeves is when combat feels samey all game. I don't want a specific amount of actions-to-kill that remains consistent, I want it to slowly scale up as players get further in with encounters happening gradually less frequently. Enemies start off as chumps and by the end of it they feel like minibosses but you're not fighting them every 16 steps anymore.
I still use random encounters in my game and enemy formations can have 4-8 enemies in them by late game. I want battles to be there, but I don't want the player feeling like they are such an annoyance and dragged out for the sake of extending the game (looking at you, Octopath Traveller....).

Players need items from enemies for crafting end-game weapons and armor and due to the random nature of the crafting system, you might need to craft a few times before you get a weapon with a good +level modifier(increasing max stats) and have the enchant on it you are wanting. So it was either make fights needlessly long and make farming materials more boring, or go for easier to kill enemies to help get mats faster.

Its a grind either way, but I feel like it helps balance each other out to some extent.

As for the idea of scaling enemies that becomes less and less constant, but much stronger - my game allows you to control the random encounter rate from 1-1 step (EVERY step == battle, for high grinding speed) to 50-99 steps, for casual exploring.

You can also slide difficulty from -100 to +100, 0 being default. Negative values make battles much easier with penalties for using the player boosting effect, while positive values make the game MUCH harder and greatly increase rewards if you manage to win. At +100 even the enemies in the starting area of the game can kill a player with over 10000 HP if you don't wipe them out fast.

Here are 2 samples of just how much more loot you get from playing on harder settings. The 1st is normal loot level and the 2nd is at +100 difficulty.
Loot Normal.png

Loot Boosted.png
I still use random encounters in my game and enemy formations can have 4-8 enemies in them by late game. I want battles to be there, but I don't want the player feeling like they are such an annoyance and dragged out for the sake of extending the game (looking at you, Octopath Traveller....).

Players need items from enemies for crafting end-game weapons and armor and due to the random nature of the crafting system, you might need to craft a few times before you get a weapon with a good +level modifier(increasing max stats) and have the enchant on it you are wanting. So it was either make fights needlessly long and make farming materials more boring, or go for easier to kill enemies to help get mats faster.

Its a grind either way, but I feel like it helps balance each other out to some extent.

As for the idea of scaling enemies that becomes less and less constant, but much stronger - my game allows you to control the random encounter rate from 1-1 step (EVERY step == battle, for high grinding speed) to 50-99 steps, for casual exploring.

You can also slide difficulty from -100 to +100, 0 being default. Negative values make battles much easier with penalties for using the player boosting effect, while positive values make the game MUCH harder and greatly increase rewards if you manage to win. At +100 even the enemies in the starting area of the game can kill a player with over 10000 HP if you don't wipe them out fast.

Here are 2 samples of just how much more loot you get from playing on harder settings. The 1st is normal loot level and the 2nd is at +100 difficulty.
View attachment 220673
View attachment 220674
Gotcha! I really like when games have sliding difficulty, and the sliding encounter rate is a nice touch to accent that. Right now I'm trying to make sure I don't feature-creep myself out of making the game at all, as this is my first project, so I'm keeping things simple and focusing on two main things - the story and the combat. My overarching goal for the combat is to make it feel like the puzzles of the game as opposed to a grind or something you have to do for resources. There's no crafting in my game, and anything that drops equipment is a boss with special drops that are guaranteed.

Definitely filing this away for a future project if I want to get wacky with it!
While this is my 1st major iteration of my work, I have been working on this same game design idea since 2008, slowly making small idea changes... system designs, combat ideas, ect.

I started on RPG Maker XP learning the basics and had a hard time learning. Moved to VX and it was easier to use, but since I have never had any proper training and back then tutorials were harder to come by I was still pretty bad. Then came VX Ace... bought it and ported my stuff over as I could and continues working on the same game, but I was finally getting to the point I could actually code some of the stuff I wanted myself and was making very good progress.

Then came MV... oh god, the transition to MV was a complete reset for me. I went from knowing what I was doing with Ruby to knowing nothing again when it came to Javascript. I had initially thought about giving up on my project much less the thought that I would ever get it back to where it was on the VXA version. It was a very slow and steady learning process for me, and I eventually discovered Yanfly and their plugins. I began dissecting the work and figured out from making small edits here and there how things changed and after a few months I was finally able to start porting my custom stuff from VXA, and what I couldn't port myself I looked around and found in other places.

and then came MZ... it was more or less the same feeling of VX -> VXA again, but the improvement was SO much more than I was expecting. Problem was, with the new engine, even though they were still using Javascript they had changed to a higher core version, so a lot of the terms and syntax I had learned was now outdated. I had to start learning again before I could continue working on my game, but at least this time the learning was faster. Sadly I had no Yanfly to learn from this time around mainly due to everything that had happened and Visustella locking everything down behind obfuscation.

I was faced with 2 choices there and they were both extremely daunting to me. Scrap the project and start over using all new plugins and other things, some of which I had ZERO customization over due to said obfuscation, or... learn to code better and port the work from MV->MZ myself. I chose the latter.

It took weeks and months, but I did it. I managed to convert all the plugins I had made, all the Yanfly, HIME, MOG, and a few other lesser known people's work to the new RPG Maker, and they were working. At first it was very ugly and had a lot of bugs, but now that I have worked on them and added in person code for cross compatibility, they are all working together and nicer that they ever did. In the process I was also able to trim out about 40 plugins I no longer needed due to the improved game engine and being able to do many things myself without the use of a plugin any longer.

That was a bit winded, but long story short, tl;dr, whatever you want to say... sometimes those first projects you work on will just keep going and going. My game is almost done, all that remains is mapping and eventing... everything else is 100% in place, tested, written, debugged, ect.
While this is my 1st major iteration of my work, I have been working on this same game design idea since 2008, slowly making small idea changes... system designs, combat ideas, ect.
Whereas I've been working on my game for about three weeks and I'm trying to get my first playable hour of demo done by the end of the month. Almost done, too! 😀
Um... I only have one game in the works right now. Current crop of complaints from recent playtests:

1. I have no idea where to go!
2. How do I get enough money to buy Potions, so monsters stop killing me?
3. It takes too long to level up!
4. I don't want to be a badguy!

In general, this has just lead to me placing a lot more "signposting". That, and altering the gameplay slightly to make the "early game" more "newbie friendly". Some of that "signposting" is letting the players know which monsters are weak to which attributes.

I also don't know how to fix "I don't want to be a badguy!". It's probably a case of "This game is just not for you, sorry."
Mapping.
Mistakenly operating under the belief that everyone likes the same things in games that I like. If I enjoy it, it must be enjoyable for everyone. And the belief that more is better. I like as many options as I can get...refer back to my first mistaken assumption.

That is probably the biggest thing that I have learned from participating in this forum...and it is very useful information to be aware of. :popcorn:
X + a.atk - b.def, where X is the Power of the skill.

This is basically what I did in my game. Probably the most simple damage formula for a game with rpg stats. One piece of advice (that maybe I would have done if I went back) would be to change it to this...

Math.max(X + a.atk - b.def, 1);

I think I wrote that correctly. Basically just making sure the attack will always do at least 1 damage.
Math.max(X + a.atk - b.def, 1);

I think I wrote that correctly. Basically just making sure the attack will always do at least 1 damage.
Ah, good call! I've been lamenting the fact that I was hitting 0 damage on either side in some tests, thanks for the tip!
Just to chip in, I use
a.atk1*a.atk2/b.def1

Where atk1, atk2 and def1 are dependent on the used skill/weapon.

That said, biggest mistake: I keep on restarting, or adding to many plugins, or going away for a while and forgetting what I was doing.
Before it would have been combat balance.
I could end up mixing easy enemies with really hard ones and if the players was unlucky they would run into.. as an exemple, 5 mad cows at once and get wiped. Instead of getting to the easy enemies first and get experience to fight the harder ones.

These days though, well, I don't really do that part of balancing anymore, that is our team programmers work =P
Going over scope. Everytime I'm making a game I'll think of something cool I'll want to add, even if I didn't have it in the original rough game doc. Even if I try to stop myself, I have little self control, and I'll eventually have to just stop and cut the things or I'll never get the project done.
Overambitious, this is why the project doesn't even on the playable demo stage. I want to add this and that over the time.

Also, grammar or writing in general, especially because English is not my main language. I always irritated quickly on cringe writing I found in RPG I'm currently playing, yet I write exactly like that. I think that kind of writing just naturally flow.

Original thread: https://forums.rpgmakerweb.com/threads/design-mistakes-you-cant-stop-making.145980/