Guide: How to Disable Enemy Respawn in Elden Ring

Guide: How to Disable Enemy Respawn in Elden Ring

IDobermanI


So, for this, you will need the following tools/information:

Smithbox (for edit EntityID)
DarkScript3 (for edit file emevd)
Possibly a text editor; I used Notepad++.
ChatGPT (It handles bulk editing of lines/data excellently, which significantly speeds up the workflow.)


Your first task is to assign an EntityID to every Enemy that doesn’t already have one.

Here are a few ways to do this:

  1. Manually (which is very time-consuming, tedious, and almost unbearable).
  2. Use someone else's script or write your own script for this task.

After you’ve decided on the method you’ll use, let’s talk about how the EntityID should look.

As far as I understand, the EntityID should be between 8 and 10 characters long (though I’m not entirely sure). I used 10 characters. I took the values from this Document(The document contains instructions that explain everything in detail) which we’ll come back to later.


The next step is to extract all the EntityIDs along with the model name and map name.

I’ll share the |script| with you that does this (I can’t vouch for its correct functionality since I wrote it myself, along with ChatGPT).


You need to create a folder named "compare" on your desktop.

csharp
// Folder containing MSB files for processing
string inputFolder = @"C:\Program Files (x86)\Steam\steamapps\common\ELDEN RING\Game\map\mapstudio";
// Path to save the CSV file
string outputCsvPath = @"C:\Users\Youname\Desktop\compare\Output.csv";

Alternatively, if you know how, you can change the path yourself to wherever is convenient for you in the Program.csv.


Once you have the file with your EntityIDs, you will ultimately need to generate a line like this from your file:

InitializeCommonEvent(0, 90005300, 1061440009, 10000720, 0, 0, 0);

How you do this is up to you. I used ChatGPT to help generate it.

Let me explain the values in this line:

90005300 is the event that handles the death of the enemy and remembers that they have left us forever. There are several similar events, but why bother when this one works perfectly.

1061440009 is the event flag for each EntityID, and it’s unique. You take it from this Document.

Important:

  1. Not all flags work, so they need to be checked. The ones that work should end with 1061440xxx, where xxx can be 4xxx, 7xxx, 8xxx, or 9xxx. Other flags will not work. For example: 106144001 - 1061440999 - works.
  2. 1061441000 does not work, and so on.

So, you've gotten your lines. Next, you need to work with DarkScript3 and add an event to the emevd files.


The map corresponds to the name of the emevd:

m10_00_00_00.emevd.dcx = m10_00_00_00.msb.dcx.

Now, you need to open all the required emevd files and add your lines after the event:

$Event(0, Default, function() {.

In some cases, there might not be an event. You will need to create the event first and then add your lines afterward. Don't forget to close the event properly - });


You can again use ChatGPT, provide it with .js files, explain what to add and where, and then quickly import everything via DarkScript3. Once that’s done, you’re all set! Great job, enjoy the game! :)








Report Page