COMBOY
Pokémon Crimson & Navy
- 72
- Posts
- 14
- Years
- Cybertron, Chile
- Seen Jan 27, 2020
I want to add a language select option into the Options screen, but I don't get how to make it work without crashing the game.
This is what I've wrote in the PokemonOptions screen, on the lowest part of the options commands:
The problem is that anytime I try to change the language, the game crashes!
I need help with this because I didn't like the language option to be in the main menu (Continue; New Game; Option; Language [it appears if in the project are two or more]).
This is what I've wrote in the PokemonOptions screen, on the lowest part of the options commands:
Code:
EnumOption.new(_INTL("LANGUAGE"),[_INTL("ENG"),_INTL("ESP")],
proc { $PokemonSystem.language },
proc {|value|
if LANGUAGES.length>=2
if !havedata
$PokemonSystem.language=pbChooseLanguage
end
pbLoadMessages("Data/"+LANGUAGES[pokemonSystem.language][1])
end
}
)
The problem is that anytime I try to change the language, the game crashes!
I need help with this because I didn't like the language option to be in the main menu (Continue; New Game; Option; Language [it appears if in the project are two or more]).