Spielerando

After loading a save, enemies I already killed are back, and some appear twice

Each time the game loads, it puts enemies into the world, and if it does not ask who was already beaten or already stands there, they pile up. Your AI can compare what should exist, what was defeated and what is there now, and say which to add and which to remove.

Why this works

Loading should make the world match the save, not add to it. Describing the wanted world as a list and comparing it with the real one turns loading into a repeatable step that gives the same result however often it runs.

When not to use it

Enemies that are meant to come back, such as ones that respawn after a day, need a respawn time in the save instead of a permanent defeated mark.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 3 common mistakes and the fix
  • 20 lines of example code with 3 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "After loading a save, enemies I already killed are back, and some appear twice" (read_entry rpg-killed-enemies-return-twice) in my game. Build it step by step, and show me how you checked that it works.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP