• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Error] Achievement Script Problem

  • 163
    Posts
    8
    Years
    • Seen Feb 15, 2025
    Hi everyone!

    My problem this week is the following.
    I am using the ACHIEVEMENT SCRIPT of Mega Mewthree (I find it on Relic Castle). It turns out that I install it in my V.17 and everything works fine in my saved game, but when I start a new game I get the following error ...

    [PokeCommunity.com] Achievement Script Problem


    Does anybody know what is it due to? Apparently it has to do with the number of steps, because the error appears just when I move the character for the first time.

    I tried to ask RELIC CASTLE, but I have been waiting for months for my verification email to sign up : D

    here the script

    Spoiler:
     
    Hi everyone!

    My problem this week is the following.
    I am using the ACHIEVEMENT SCRIPT of Mega Mewthree (I find it on Relic Castle). It turns out that I install it in my V.17 and everything works fine in my saved game, but when I start a new game I get the following error ...

    [PokeCommunity.com] Achievement Script Problem


    Does anybody know what is it due to? Apparently it has to do with the number of steps, because the error appears just when I move the character for the first time.

    I tried to ask RELIC CASTLE, but I have been waiting for months for my verification email to sign up : D

    here the script

    Spoiler:

    What line is it
    Spoiler:
     
    What line is it
    Spoiler:

    Solved!

    Here the script

    Spoiler:

    Put below "Map Factory " in V 17

    Put this below COMPILER

    Code:
    ################################################################################
    ############# PLACE THIS IN A NEW SCRIPT SECTION RIGHT ABOVE MAIN! #############
    ################################################################################
    
    ###################################
    ############# REQUIRED ############
    ###################################
    Events.onMapUpdate+=proc{|sender,e|
      if !$achievementmessagequeue.nil?
        $achievementmessagequeue.each_with_index{|m,i|
          $achievementmessagequeue.delete_at(i)
          Kernel.pbMessage(m)
        }
      end
    }
    
    ###################################
    ########### END REQUIRED ##########
    ###################################
    
    ###################################
    ############## STEPS ##############
    ###################################
    Events.onStepTaken+=proc{|sender,e|
      if !$PokemonGlobal.stepcount.nil?
        Achievements.setProgress("STEPS",$PokemonGlobal.stepcount)
        
      end
    }

    And, in the first map, in the one that you move your character for first time. Put a Autostart event with this call event...

    Code:
    pbPokeStep

    That should work!
     
    Back
    Top