Secret Boss

The secret boss doesn't exist.

He isn't real.

Don't let the Dungeon Master tell you otherwise.

Though I have it on good ears

that he

will

agree

with me.

The secret final boss of Sapphire Caves, available in version 1.1 and onwards, is an optional boss battle. You can reach him by doing the following things:

* Beat the third bosses of the Shaft, Den and Fortress
* Complete all three quests of NPC's Curos, the Cultist, and Usk (9 quests in total)
* Beat the final boss
* If you're done everything correctly, Gyranus should appear in the Base, and give you the new mission.

# --- SPOILERS ---

The true, twist final boss of Sapphire Caves will be revealed below. Do NOT read this article if you wish to remain unseethed.

It's the Dungeon Master, the world creator, the fourth God in the universe.

Dieuwt.

### Lore and the mission

The mission map consists out of three rooms: the starting room, a room with a Soul Campfire, and the boss room. The map contains some signs with code, some command blocks, and a lot of void. Unlike the final boss mission, the retreat button is available.

As Dieuwt has created Ruby Caverns, Emerald Chambers, and Sapphire Caves, upon encountering the heroes, he tries to explain he's some sort of fourth god - but the heroes are not having it. A fight ensues, with Dieuwt starting with just 1 turn per round and 1 turn of Weary. The adventurers are able to set up their first turn, but Dieuwt promptly throws down three command blocks, with the music changing as well.

Upon failing the mission, this cutscene will change a few times, but always ends in the same result.

### Moveset

Dieuwt has a disgusting 1000 Health, 15 Attack, 5 Defense, 14 Speed, 150 Accuracy, 30 Dodge, and 120/140/120 Resistances, making him the most healthy enemy in the game. He has four "phases", indicated by the ore blocks in the background, which change up the effects of the command blocks appearing in the battle.

* Debug Mode: puts down 3 command blocks, 1 in each enemy position.
* Developer Mode: puts down a command block at his current position.
* Writer's Block: enters a command in the nearest command block. Shuffles self.
* Execute: uses the nearest command block.
* Encore: Ranged attack, picks up the nearest command block and throws it, causing Fire.
* Feedback Loop: Ranged attack, picks up the nearest command block and throws it.
* Function: turns the nearest command block in a Repeating command block. Shuffles self.

Upon using Writer's Block, one of the following commands may be entered (different phases are indicated with a | ):

* /kill: Has a Reaping effect on the front hero. (Ironically, it cannot actually kill, just put them to 0 Health.)
	+ Fails when the target was already at 0 Health.
* /summon: Summons a random (Shaft | Den | Fortress | Vault) enemy on an empty enemy spot.
	+ Fails when no empty enemy spots are available, i. e. there's 2 enemies summoned already.
* /effect: Gains 2 turns Protection, 4 turns Blessed, and (3 Stealth | 2 Rooted | 1 Fated | 3 Undying).
	+ Fails when Dieuwt has an effect active - it checks for Blessed, as it lasts the longest.
* /scoreboard: Deals (10 | 15 | 20 | 25) damage to the middle hero. Ignores Defense.
	+ Fails when the damage misses.
* /clear: Removes Fire, Poison, Stun and ALL buffs and debuffs from himself.
	+ Fails when there are no buffs or debuffs to clear.

### Behaviour

Dieuwt's behaviour is mostly deterministic. In fact, apart from the shuffling and the command inputs, almost the entire fight is predicable. His move is depending on the spot he's currently in, and in what state the corresponding command block is.

* Always starts with Debug Mode as his first move.
* When the current spot is empty, uses Developer Mode.
* When the current spot has an empty block, uses Writer's Block.
* When the current spot has a block with command, uses Execute.
* After Execute, when the command FAILED, uses Feedback Loop.
* After Execute, when the command SUCCEEDED, uses Function.
* When the current spot has a repeating block, uses Encore.

As for the command blocks themselves, they have their own restrictions.

* Normally, all commands have a non-equal chance to be rolled. However, no command may be rolled twice.
* If a command would be rolled twice, it's replaced by /kill.
* If /kill is also unavailable, it's replaced by /summon, regardless of other /summon's.
* Repating command blocks will execute their command as normal each turn. They may still fail, but this will not cause them to stop repeating.

### Strategy

The key to defeating Dieuwt, apart from having a massively buffed-up team that can combo anything into the ground, is abusing the predictability of the fight. Keep /kill on the frontline and keep healing them, and quickly take care of stronger summons and leave the weaker ones to lure the commands into failing. Consistency is key.

Having your heroes output strong damage is, naturally, important. However, it may be worth investing in an enemy-moving party, as moving Dieuwt to better positions could be much better for the fight. Repeating command blocks are the most dangerous of them all, so get rid of them quickly!

Lastly, Dieuwt has no super-special properties like high resistances or stats. Setting him on fire or poisoning him is perfectly acceptable. Make a good team, your best team, because this is by far the hardest boss in the game and will not back down at any point. It is possible to make this fight trivial by stacking Freya's or Smhu's items - but where's the fun in that? It's the last mission in the game... make it count.

### Ending

After chipping away Dieuwt's enormous healthbar, he will heal himself to full, declaring he made this universe and gets to do whatever he wants. However, using the Developer Book, the player is able to /finish Dieuwt and cast him into nothingness.

It is revealed that since Dieuwt will be gone, Sapphire Caves will be his last map. With the creator out of the picture, the heroes will carry on their journey as immortal beings, and the player would need to find distraction elsewhere.

Thank you for playing.

*Well... done...*

*It seems like... you have...*

*...bested me...*

*...so it seems...*