- 5
- Posts
- 4
- Years
- La Paz, Bolivia
- Seen Feb 4, 2024
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?
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?