SAR_MVAchievements version 1.2.1

Do you think it works if i put this in the event that kills you (after the +1 on the variable and before the game over)?
I think it should if not it would take a small edit in the game over function.
No, Variable still at 0 if I start a New Game after a death.
Haven't tested this but put this in a .js (for example myTest.js) file activate it in your plugins then try a new game.
Code:
(function($){
    var Scene_Base_checkGameOver = $.prototype.checkGameover;
    $.prototype.checkGameover = function() {
        DataManager.saveAchievesWithoutRescue(21)
        Scene_Base_checkGameOver.call(this);
    };
})(Scene_Base);

Question do other types of global achieves work ones that don't rely on dying to increment?
If this doesn't work I can give you more help tomorrow. (One of the things you could try is putting my scripts alone in a new project and see if it works).
How do you make this work with Steam achievements?
Works. But now everytime i start a new game i get the plugins again. So i duplicats... everytime i start a new game.
I think thats because i have the script for all acievements that can be optained at the begining of the a new game.
https://picload.org/view/dldriwpr/asdf.png.html
Check your events. What is happening is that you have the event that creates the achievements getting run each time you start a new game thus it recreates the achievements. Possibly an easy solution is to create a global switch achievement for starting a game once with the event having a condition checking rather or not that achievement has been rewarded.

@Tuomo L I haven't tested it with steam achievements. What I am coming up with in my searches on the subject though is it would require a server see this on the matter. Once you have access to the Steam API you would have to check to see what would need to be used in order for it to work.

Now I do seem to recall another achievement script out there that does work with Steam Achievements (though its been a long time since I have been here so I don't know if it still works).

Original thread: https://forums.rpgmakerweb.com/threads/sar_mvachievements-version-1-2-1.60653/