Dungeons 4

Dungeons 4

Not enough ratings
Making the Absolute Evil permanent
By Gazgemauch
A cheat guide that shows you how to mod the game to make the Dungeonlord ability permanent (and optional steps to change the cost and level requirement)
   
Award
Favorite
Favorited
Unfavorite
Introduction
This guide will show you in simple steps how to mod the game files to make the Absolute Evil last permanently.

Before we start, take note of all the changes you make and their original values, and to back up the files you change just in case. (This will also help with reapplying the changes you made should a patch reset the files)
Step 1: Finding the correct folders
For changing the Absolute Evil and the ability to summon him, you'll want to navigate towards the Dungeons 4 game folder, and follow the path of: Dungeons 4/Dungeons 4_Data/rfdata/Templates.

From here, we'll need the following files: animation.block, level_props.block, and unit.block

Set these .block files to open with any text program like notepad
Step 2: Changing the skill level requirement
By default, Thalya is required to reach level 6 before she can use this skill.

To change this, open the Animation.block, and find "anim_skill_summon_dungeonlord"

now find a line that'll look something along the lines of:
SkillMasterNeedsLevel
Level = 6

now simply change the level to whatever you wish, like 1, or 10, and save
Step 3: Changing the evilness cost
By default, the evilness cost to summon the Absolute Evil is 100, this is a little cheap if we're making him permanent (or maybe you just want to make it free so you can always use it)

To change this, open the level_props.block

now simply search for "Dungeonlord_cost" and change the value under it to whatever you wish
Step 4: Making the Absolute Evil permanent (plus stat changes)
Finally, to make sure the dungeon lord doesnt go away again after 90 seconds, we need to make him last forever.

To do this, open unit.block, now search for "unit_dungeon_lord"

now search for a line that says "EnergyRegeneration = -1" and simply change the -1 to a 0, or alternatively, change the "Max = 90" right above it if you want to simply increase the duration without making it last forever

Additionally, you can also change his stats like Armor (Armor = 666), Damage (AttackDamageAmount = 1337), Health (MaxHealth = 10000), Health Regen (RegenerationRateOutsideCombatDelay = 0 - RegenerationRateOutsideCombat = 5)

(For Reference on RegenerationRate, the demon regen is 3, so dungeonlord regen by default makes him unkillable even past the 666 armor and 10k health)

Lastly, by default the Dungeon Lord will never leave the throne room if he's inside it, you can make him wander around the dungeon by changing "NeverLeavesPreferredRoom = True" to False
Additional Gameplay notes/End
Now that you have the Absolute Evil as a permanent creature in your dungeon, a few things to note:

- He is very much OP as you already know, and although his stats can be changed, i have yet to confirm if it makes any significant changes in the story.

- He is a bit gimmicky when leaving the dungeon, you cant drop him on an entrance to make him leave, instead you have to pick him up, and then right-click any space on the overworld, and he'll walk out of the nearest entrance/portal to reach it.

That is pretty much it, hope all who want to try this will enjoy, and a big thanks to Realmforge for having the Absolute Evil as a unit in this installment at all
6 Comments
Gazgemauch  [author] Dec 25, 2023 @ 1:26pm 
@ode2dave seems like something broke in the newest patch, as the mod is working fine but its base-game dungeonlord that's not. i tested on a clean reinstall with no mods, and then again with mods, and dungeonlord gorgu will just always despawn underground, i posted about it in the bug reports as it is apparently just a base-game issue, and this method has worked fine in the previous patches
ode2dave Dec 25, 2023 @ 11:57am 
So I followed all those steps - but if you summon underground, the guy disappears almost instantly. If I summon above ground, he still disappears after 90 sec and can't resummon. I found I had to set: EnergyRegeneration = 90

Summon above ground and he stays permanently, but I can't resummon underground nor take him underground.

Thank you for trying to figure this out, but clearly something else is needed to keep the Absolute Evil more permanent than the above steps. If anyone has any ideas, please do share.
Hydroculator Nov 25, 2023 @ 12:39am 
The bit about how to make him leave the dungeon is worth a guide of its own. I never figured out how to do that on my own. Thank you for that.
Miracle ✔ Nov 14, 2023 @ 7:39pm 
Yes, I replaced the files and it worked.
Gazgemauch  [author] Nov 14, 2023 @ 3:15pm 
@Miracle just tried it, had to reapply the changes but they still work for me
Miracle ✔ Nov 14, 2023 @ 7:53am 
A patch came out today and the method stopped working :)