SAR_MVAchievements version 1.2.1

Discussion in 'JS Plugin Releases (RMMV)' started by Sarlecc, Apr 20, 2016.

  1. UltraMario12

    UltraMario12 Villager Member

    Messages:
    14
    Likes Received:
    0
    First Language:
    German
    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)?
     
    #21
  2. Sarlecc

    Sarlecc Veteran Veteran

    Messages:
    454
    Likes Received:
    209
    First Language:
    English
    Primarily Uses:
    RMMV
    I think it should if not it would take a small edit in the game over function.
     
    #22
  3. UltraMario12

    UltraMario12 Villager Member

    Messages:
    14
    Likes Received:
    0
    First Language:
    German
    No, Variable still at 0 if I start a New Game after a death.
     
    #23
  4. Sarlecc

    Sarlecc Veteran Veteran

    Messages:
    454
    Likes Received:
    209
    First Language:
    English
    Primarily Uses:
    RMMV
    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).
     
    #24
  5. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,294
    Likes Received:
    1,268
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    How do you make this work with Steam achievements?
     
    #25
  6. UltraMario12

    UltraMario12 Villager Member

    Messages:
    14
    Likes Received:
    0
    First Language:
    German
    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
     
    #26
  7. Sarlecc

    Sarlecc Veteran Veteran

    Messages:
    454
    Likes Received:
    209
    First Language:
    English
    Primarily Uses:
    RMMV
    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).
     
    #27

Share This Page