Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Is there a way to edit the stats or some cheat mode? I am shit at strategy

Sorry, but there is no such option.

Yes, you can edit the stats if the game stores its save data in your browser's localStorage. To do this, open Developer Tools by pressing F12, go to the Application tab, and look under Local Storage for the game's save data. Once you find the relevant entry, you can either edit it manually or use the Console (F12 → Console tab) to modify values. Running JSON.stringify(localStorage); in the Console will display the stored data, allowing you to find and change stats like gold, health, or troops. If needed, you can update values using a simple script to replace specific stats. After making changes, refresh the game to see the effects. Keep in mind that setting unrealistic values might break the game.

I used the following script to edit my game stats:

let saveData = JSON.parse(localStorage.getItem("(Saved Game BE2F21E7-A144-406A-8979-33809F73CD47) deedzapis"));

saveData.forEach(passage => {

    if (passage.variables) {

        if ("maxcondit" in passage.variables) passage.variables.maxcondit = 12;

        if ("actcondit" in passage.variables) passage.variables.actcondit = 12;

        if ("wealth" in passage.variables) passage.variables.wealth = 9999;

    }

});

localStorage.setItem("(Saved Game BE2F21E7-A144-406A-8979-33809F73CD47) deedzapis", JSON.stringify(saveData));

This script retrieves the game's save data from localStorage and modifies specific stats. First, it uses localStorage.getItem(...) to fetch the save file, which is stored as a JSON string. Then, JSON.parse(...) converts it into an object, allowing us to manipulate it. The script loops through the save data using forEach, checking each section (or "passage") for a variables object, where game stats are stored. If the variables "maxcondit", "actcondit", or "wealth" exist, their values are updated to 12, 12, and 9999, respectively. Finally, JSON.stringify(...) converts the modified data back into a JSON string, and localStorage.setItem(...) saves the changes. After running this in the browser's console (F12 → Console tab), simply refresh the page (F5) to apply the new stats.

If you want to edit other variables, you just need to modify the script slightly.

Thanks for this. But, erm, is there a Way to to replicate this on a smartphone?