What makes a difficult turn-based RPG boss?

In planning my RPG Maker MZ game, I want to have a superboss that the player can access late in the game. (I'm nowhere near that point in development yet; I just like coming up with ideas.) I've recently played Kingdom Hearts III's Re:Mind DLC and was inspired by the Limit Cut and Secret bosses and now I want to make a super-difficult, strategic boss of my own at some point. Here's the thing: KH is an action RPG, while RPG Maker games are turn-based. I don't really have experience with turn-based superbosses beyond the simple "ultra-high stats" idea. Since I'm trying to keep my game as simple as I can (it's my first one), there's no option to explore and find a lot of different equipment, so I want my boss to have some cool strategy and mechanical aspects as opposed to just high stats. Like the secret boss of KHIII Re:Mind--he not only packs a huge punch, but he has a variety of unique attacks, mechanics, and patterns that are completely random; you have to pay attention and learn each of his moves and react on the fly. But how do you do that in a turn-based setting without making it predictable and boring?

So, my question to you is: what are some mechanics, strategies, gimmicks, or other keys to making a fun, fair, but tough-as-nails turn-based RPG boss?
Off the top of my head the main one would be States.
States that poison the player, lower their stats, cause instant death, break equipment if not cleansed, just flat out bring them down to 1 HP regardless of defense stats, etc...

This provides inconveniences for the player. Instead of just "punching the boss" to death. Now they have to spend turns curing them selves. Spend turns healing. Spend turns using buffs pre-emptively to prevent such things like 1HP or instant death. You can also make your boss just full cleanse the entire team, removing all beneficial buffs. Also give the boss a skill that doesn't or just does a little damage but gives the whole team a whole bunch of negative states at random and this skill would be undodgeable/unblockable.

Then you just have to provide players with skills that give them some survivability against those states. Such as not a 100% cure all skill, but one that only removes Instant Death. A skill that provides a barrier which protects them from that 1HP skill. Maybe only an item can remove the break equipment state.

This is pretty much the main source of a difficult boss. If all I have to do is spam attack skills and heal to beat a boss then it's boring. But if I have to use protective skills and different types of healing skills to remove debuffs then the fight becomes a bit more fun.

Some other things would be like, being immune to physical/magical attacks in intervals. Or changing elemental resistance after being hit by it's weakness X amount of times.
I was about to type a suggestion, but noticed GmOcean pretty much listed most of the things I was going to say anyway.

However, if possible, use a pattern (or several) while varying a boss's attacks. If I spend ten minutes fighting a boss and suddenly fall to an unlucky 1HKO without any warning, I might not try that battle again.

For a possible reference on difficult bosses done right, I suggest you check the Etrian Odyssey game series.
I've had a few methods to achieve this over the years, but I've since moved on to using ATB. I suppose I can share what I did in my time using turn-based.

In my older games, I had bosses who had passive damaging auras, where at the end of every turn, the player characters took damage. It increased the difficulty in a way such that more time needed to be devoted to keeping everyone alive.

Also in my older games, I had a couple bosses who had passive healing auras. this added a sense of urgency, because if you couldn't keep up on dishing out damage, they would end up outhealing the damage you were dealing.

In the last game I worked on that used turn based, I only had 1 particularly unique encounter, in which I utilized weather. The one boss encounter, you were fighting a knight and his dragon on a plain during a storm, and at the start of the first turn (with speed priority), the knight used a shield ability that made him immune to all damage during a storm. so you had to focus on his dragon. once his dragon was below half health, it would begin executing his special ability, which dealt a large amount of damage to the party and changed the weather from storm to fire (the idea was that he ignited the battlefield). this caused the knight's shield to fall off, due to a weather change, but, because they were battling on an open plain in a storm, the idea was that the storm would put the fire out after X turns, causing the weather effect to change back to Storm after X turns, and causing the knight to regain his shield.
This added a significant amount of challenge because it meant you couldn't simply focus one boss down, but instead had to keep both alive until you could kill the knight, because he would otherwise become impossible to damage.
Yeah, patterns are a good way to start. Being able to know what the boss is going to do under certain conditions makes it so it won't be unfairly difficult, or making it reliant on luck to pass. Basic things like triggering a powerful attack for every 25% HP they lose. Or always using their skills in a certain order.

It also heavily depends on the player characters' skill sets. The less options they have, the less creative you can be with your bosses. If players have a good variety of skill options, you can make bosses designed to be beaten through a certain strategy that the player can make use of with their skills.

Another option is going with the illusion of unfair difficulty, when the boss will beat up the party to near death, and then gives the player just enough time to recover back up before doing it again. It'll feel super difficult, but it's not really any more dangerous than a regular "fair" boss.
Most turn-based RPG superbosses' difficulty are not simply just them having ultra-high stats (that's merely the bare minimum for any boss to be "hard"), they tend to have special trial-and-error gimmicks or that one absolute party-wipe skill that translates to "you die" unless you already know their patterns inside out, and thus is not intended to be fair until you already lose a bunch of times or used guides. It wouldn't be a superboss otherwise if any regular player that is experienced in turn-based game is able to take them down with enough on-the-fly strategy.

If it's just a regular boss and you want a difficulty that is not reliant on stats, then your battle mechanics and boss gimmicks need to do all the work, and the main way to make a boss hard is simply punishing the players viciously for not adapting to said gimmicks. Have a healer in your party? Here's your anti-healing field halfway through the fight. Rely too much on physical attackers? Reflect-physical shield + AoE berserk. Rest is just get creative.
Try, small hints throughout the quest from various NPC's that speak of an evil that can be slayed by using different attacks, magic, or even perhaps, an item, or having certain equipment. When the player encounters the boss, it can physically change, adapt, or just resist certain attacks, etc, perhaps the NPC's that hinted at it's weaknesses were told legends, and the true meaning was lost over time. It could be a game in and of itself to find out what the real way to slay this boss is.
Everyone else has made good points but here's my take, @WilsonE7:

Patterns that brutally punish you for messing up are present even in KH3:Remind, it's just less obvious due to the frantic nature of the action RPG gameplay.

But another aspect is having enemies that adapt to your attacks and fighting styles.

Ozma from FF9 actually changes up his patterns if you bring in element absorbing equipment to counter his magic attacks, and I plan to have a superboss that instant-kills you as a counter attack if you use certain moves...

Plus generally I give bosses attacks based on HP thresholds or if you use states to debilitate them.

@Stimulantwasfound also had a great point about having lore that kinda explains how the boss fights since that can act as a good hint for when you actually have to square up against em.
Kinda cliche but having the boss "change forms"/"power-up" midway or near the end of the fight is pretty tried and true. Can really knock the wind out of your players though if the initial encounter was already super challenging.
Smart bosses. It takes a lot more effort to make a comprehensive AI that makes the boss react to combat flow, but it is worth it if you want to create a difficult encounter.
Have a boss that responds to player strategy. Is the player consistently buffing themselves, then dropping the boss's defense so they can deal huge damage in one turn? Have the boss cripple their attack power. Or buff their own defenses. What if the party is leaning heavily on heals? If the boss has a skill that seals magic, or reflects healing, now's a good time to use it. What if the boss is low on health, and has a life drain skill? Make it target the player character with the lowest defenses to steal optimal health!
It's important to note this does not mean simply adding a counter skill to every strategy the player could possibly employ. Rather, using AI so the boss makes the absolute best of its skillset.
Using AI beats stat-loading your bosses all the time. Nobody wants to fight a 5 million health golem with an aoe that does 90% of your team's health each hit. Instead, make your bosses smart. Make it so the player is almost playing against you, the developer.
I use AI over stat-loading all the time for my bosses; actually, majority of the bosses have stats pretty dang close to the player stats, health excepting of course. With good AI, they still put up a fight.
So if you want to make challenging bosses, make them smart is my advice.
The post-game superboss in a turn-based RPG has been discussed a few times around this board; probably my best post on it is here: https://forums.rpgmakerweb.com/index.php?threads/post-game-superboss.94727/#post-857716
2 ideas that come to mind:

Give the boss more actions per player action (faster atb bar, 2 turns per round, etc...). This forces the player to think ahead further with each choice because more things can happen between rounds.

Give the boss a smarter ai. Have it target the healer or attack with elements that will hit weaknesses.
If you wish to make your bosses stronger, just slap a few zeroes on everything! Get that gam mak!
I think the first step to making a fight in a turn-based RPG actually difficult is to make sure that just spamming Attack / Heal every turn doesn't actually work. It doesn't matter how smart the AI is if the player can win with their brain turned off. It also means the combat system needs to have more than just damage and healing abilities so the player has the tools to handle a fight that is actually challenging.

A simple example would be the fight against Magus in Chrono Trigger and his Barrier Change trick. It's not possible to bring every element of magic with you, so the player needs to learn how to reset his barrier to something their party can counter.

Fate/Grand Order has some great boss battles that use states to create challenges for the player to overcome. One example that stood out to me was a bonus super boss that was a Loan Shark. Her gimmick was that she was nearly immune to damage at the start of the fight and would give the player's team some random buffs at the start of every turn. If the player used attacks that benefited from the buff before they expired, then the "loan" was repaid and the boss lost some of her damage resistance. If the buff went unused, then the boss took the buff back for herself and gave the player a debuff as punishment. She also had 2 "Debt Collector" minions that supported her by charging her special meter or stunning one of the player's characters, and she could summon more if both were defeated. This fight required the player to pay very close attention to make sure they were using the correct attacks to pay back their loans, or else the boss could snowball and become nearly unstoppable.

I'm not sure how complicated you plan to go, but for a super boss I don't think there is anything wrong with going a bit "extra" to give them some kind of mechanic that normal enemies don't have. With the right use of states, I think you can do just about anything you want too. But make sure the player has a way to check status effects are on their units and/or enemy units if you go that route. It's only fun when the player is given the info to know what's going on so that they can make a plan.
Hi. Person who specializes in making hard-but-mostly-fair boss fights here, much to the annoyance of those who tried either of my 2 jam games and got smoked.

To make your bosses hard without feeling dirty and cheap, you need to have a few layers of complexity in your character skills so that the player has to do more than just spam attack, megaflare, heal, etc until the boss either keels over or wipes the party, based on RNG. With a solid combination of buffs and debuffs the party has to maintain and enough other tools to overcome most of what the boss throws at them, you provide more opportunities for the player to make costly mistakes...or clever, rewarding choices

People will say "RNG is bad!" and in a sense they're right, but not completely so. Without some RNG, you've got a bunch of boring, highly-scripted battles that play out the exact same way every time. Here's some examples of (what I think makes) good RNG vs bad RNG for your bosses:

Instant Death
Bad: Every round, the boss has a 1:4 chance of casting an AoE instant death attack with a 25% chance of killing a given party member. This is bad because without any death immunity gear or states, it has the possibility of wiping your entire team on a given round and you can't predict when it'll happen because it's 100% random

Good: Every 3rd round, the boss uses an instant death ability with a 100% chance of killing the target. I say this is good because 1. you can predict when it'll happen, 2. you know it's going to instant kill somebody, and 3. if you have taunt or draw attacks mechanics, you can have a tank draw the effect so it's less likely to take out the healer--bonus points if you can somehow make your tank immune to instant death attacks.

Massive Damage
Bad: Every round, the boss has a small chance to use a really brutal AoE attack. This is bad because, while slim, the chance of it being used for 2-3 rounds in a row is there, and dying to stuff like that is horrible.

Good: When the boss's TP fills up, he uses a really brutal AoE attack. Bonus points if you can display the enemy's TP gauge or have some other way to telegraph that "it's coming" to the player so they can prepare.
what makes a difficult boss, is not being able to attack the boss.

minions and escorts, that's what makes it difficult.
especially if they support each other, or resurrect.

I remember a flash game I used to play (can't remotely remember it's title) where the first boss was a mechanical golem that would have been easy to take down, if it wasn't for the two ethereal escorts it had, that resurrected anyone that was downed on their side.
you had to use a wizard with a Disintegration spell, so their remains would disappear and they couldn't be resurrected.
or, spam a wide MP drain skill so none of them could act.

on top of those, there were usually two knights pulling aggro, so you couldn't target anyone, and a big dark knight chopping everyone with a great sword.

so, the way to beat it was to take everyone on at once: call the bluff of the knights and let them pull aggro, then single them out and disintegrate them, and keep the wizards out of MP so they'd skip their turn.
took me weeks to figure out that strategy.... everything I threw at them was bouncing off that golem's armor.
Key points in a Turn-based Battle:

1. If a boss keeps doing the same thing, so will the players.
Have phases, let the boss charge a super move for a couple of turns, Have it go on the defensive for a while, or require a big damage spike to keep it from wiping the party. Spawn some healing/buffing adds. Have it switch it's weaknesses during the battle.

2. When Balancing random chance, Don't look at just the averages. For example, have a party wide kill spell that kills 25% of the time? That means on Average it will kill one guy.
But that's not what actually happens. it means that:
32 % Of the time the skill does nothing.
42 % of the time it kills one guy
21 % of the time it kills two guys
4 % of the time it kills three guys
0.3 % of the time it kills everyone.
Now, don't just think of one player playing your game. Think about what happens if by some miracle a thousand players play your game. 3 of them are getting insta-killed on this battle. And you can bet your ass it's those guys who will and moan about it on the forums and tank your reviews( Vocal minority and all).
Also, these chances compound. The more the boss uses this skill, the more likely the player will eventually get randomly ed.
The same point goes toward things like critical hits. Can this move wipe the party out of nowhere if it crits? I would feel cheated if I lost to that. I'm not saying there should be no variance in boss damage, but if all that stands between me and survival is the RNG, then I think strategy takes a big dive.

3. Buffs and Debuffs.
There is an argument to be made that bosses should be susceptible to Debuffs.
I agree on this in the case of pure stat debuffs.
That said, the boss should be capable of clearing at least some of these Debuffs.
Same thing for other status effects. They should work, but at a reduced capacity, or just change Monster behavior too. Got the boss blinded? Great, now he starts using Magic attacks.

Anyway, that's my quick thoughts on this.

EDIT: So instead of double posting, I thought I'd edit my post, seeing as I was kind of cut off making it.

4. Patterns. Humans love patterns. A large part of our brains are wired to seek patterns. Predicting or completing patterns feels good.
So what does this have to do with game design?
Make your boss have patterns. If the boss goes 1 2 3 4 once, and then he goes 1 2 3, I would feel a bit cheated as a player of he now goes to 2 again.
A basic version of this is telegraphing. If the boss does 1, he'll do 2 next.
Live games implement this by having the boss use visual tells. If the boss raises his sword, time for you to dodge to the side. He's lowering his blade, time to dodge backward.
But in a turn-based system, there is no dodge sideways button or a dodge backward. So any 'tell' by the boss should leave at least one player turn in between. If the boss can "Power Charge" and "Omnislash" on the same turn, that does not leave any space for me as the player to react. To have strategy. If there's a turn between the Charge and slash, I can choose: Do I cast Protect? Do I Heal with the healer, or do I guard. Do I take the risk and try to deal some more damage? Those choices are there only on the turn between "Charge' and "Slash". Does this technically weaken the boss? Yes. But it also reduces unfairness.

Now, the corollary is that a boss also should not be on rails. I mean, a boss that always goes 1 2 3 4 5 6 7 8 9 isn't a fight, it's a choreographed dance routine. Now, if the routine is hard enough, that might still be fun, but it's not a game. It's a Puzzle. Puzzle bosses are fine, but know what you're making.
Now, as i said a simple 1->9 pattern is a bit boring. So maybe the boss has three routines. 1->3, 4->6, and 7->9. Now it's on the player to recognize the pattern and act accordingly.
But now we're just making the dance routine smaller. That's where a bit of randomness can be good.
Maybe the boss also has move 10, 11 and 12 as filler moves between routines. so he can go 12, 4->6, 10, 11, 1->3.
At first it seems random, but the player can still deduce some logic.

5. But what about the boss? Shouldn't he be logical too? Yes. Yes he should. This ties back to what I said about buffs, debuffs and states. If the player succeed in landing Blindness (-50% Accuracy) on a boss, should he just keep attacking?
Maybe. Maybe he keeps swinging with his now inaccurate attacks, or maybe he switches to his Magic attacks. But what if they're both blocked? What does he do then?
One solution is to give the boss Debuff dispellers, state removers, maybe even Buff removers.
That's one way. Anther is for the boss to switch strategy without removing the debuff.
Players cast Power charge? The boss Guards
Players inflict Blind? The boss starts alternating Power Charge and a party wide attack, making the boss way swingier (Through the actions of the player) but still a danger.
Poison? Boss starts throwing Potions. Maybe do it like the old Pokémon Gym battles, where the Boss has a set supply of Potions and Antidotes to use.
Silence the mage? Maybe he calls for back-up, to annoy the players while he pops an Echo Herb.

6. But now, what if the players just keep doing the same thing again? Keep casting blindness?
There's a solution for that too. It's something WoW and most MMORPG's use. (Just because most of them are pandering to scum doesn't mean there isn't a pearl of wisdom in there somewhere). Have the State effect work the first time, as intended. Then, after, the boss gains 20% Resistance to that Status. The next time, it goes up by another 20%, and so on, up to full immunity. Or maybe it shortens in effect too. The first time you blind the boss? 3 Rounds. The second time? 2. Third time and every time there-after? One turn. Or maybe it just works less and less well. First Blind? -50% accuracy. Second one? -40%, and so on.
Mix and match, and I think Status effects can surely have a place in boss fights.

7. Realize the boss is not there to win, but to lose in an entertaining way. Making a player killer is easy. Making a pushover is too. But the real trick is making the boss so that the player walks out of there with one character alive on 1 HP. That is the adrenaline rush. That's the real fist pumper.

Original thread: https://forums.rpgmakerweb.com/threads/what-makes-a-difficult-turn-based-rpg-boss.132843/