• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

78
Posts
10
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:
52
Posts
8
Years
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