• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • 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.

Wont let player enter gate, uses error.

  • 76
    Posts
    11
    Years
    • Seen Sep 7, 2015
    Exception: NoMethodError
    Message: undefined method `unlock' for nil:NilClass
    Interpreter:512:in `command_end'
    Interpreter:295:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'
    Scene_Map:65:in `loop'
    Thanks for the help!
     
    Last edited:
    I got the same error a long time ago (not with gates, but the same error), I fixed it with a little modification to Interpreter script, create a new script above main and paste this.

    Code:
    class Interpreter
      def command_end
        # Clear list of event commands
        @list = nil
        # If main map event and event ID are valid
        if @main and @event_id > 0
          # Unlock event
          $game_map.events[@event_id].unlock if $game_map.events[@event_id]!=nil
        end
      end
    end
     
    Back
    Top