• 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!
  • 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.

[Script] Hello There. Please Help

  • 5
    Posts
    4
    Years
    Hi everyone, I am new at this and I get this error every time I want to configure de options of the game...

    The Error says: Script 'PokemonOptions' line 406 NoMethodError occurred
    Undefined method ´autosave' for nil: NilClass

    LINE 406: if $PokemonGlobal.autosave==false

    The script in the game is:
    Lines:
    }
    ),
    EnumOption.new(_INTL("Autosave"),[_INTL("On"),_INTL("False")],
    proc { $PokemonSystem.autosave },
    proc {|value|
    $PokemonSystem.autosave=value
    if value==0
    if $PokemonGlobal.autosave==false
    params=ChooseNumberParams.new
    params.setRange(1,60)
    params.setInitialValue(5)
    params.setCancelValue(5)
    savetime=Kernel.pbMessageChooseNumber(
    _INTL("How many minutes between autosaves? (1-60)"),params
    )
    $PokemonGlobal.autosavetimer=savetime*60 #converts choice to seconds
    end
    $PokemonGlobal.autosave=true
    else
    $PokemonGlobal.autosave=false
    end
    }
    ),

    Any ideas?
     

    Attachments

    • [PokeCommunity.com] Hello There. Please Help
      error.PNG
      35 KB · Views: 2
    Back
    Top