Try this. Remember that you need to assign the correct metadata for more playable characters.Hello, I'm trying to put the character selector on and choose the one I choose, it only sets me to control the first character, what could I do?
I get this error:
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Script error in event 1 (coords 0,0), map 1 (Intro)
Exception: SyntaxError
Message: (eval):7: syntax error, unexpected ',', expecting ']'
,"POKEMONTRAINER_Brendan","POK...
^
(eval):7: syntax error, unexpected ',', expecting end-of-input
,"POKEMONTRAINER_Brendan","POKEMONTRAINER_M
^
***Line '(overworld,battle)' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Full script:
overworld =
["trainer_POKEMONTRAINER_Red","trainer_POKE
MONTRAINER_Leaf","trainer_POKEMONTRAINER_Br
endan","trainer_POKEMONTRAINER_May"]
battle =
["POKEMONTRAINER_Red","POKEMONTRAINER_Leaf"
,"POKEMONTRAINER_Brendan","POKEMONTRAINER_M
ay"]
result = startCharacterSelection
(overworld,battle)
pbChangePlayer(result+1)
Did you follow the instructions in the script? because the mistake is clearly saying that you wrote something wrong. is your code like the example in the script.rb?
# overworld = [
# "trainer_POKEMONTRAINER_Red",
# "trainer_POKEMONTRAINER_Leaf"]
# battle = ["POKEMONTRAINER_Red",
# "POKEMONTRAINER_Leaf"]
# r=startCharacterSelection(
# overworld,battle)
# pbChangePlayer(r+1)
#
# Example with 4 characters. This example won't change your character, just
# store the index result at game variable 70.
#
# overworld = [
# "trainer_POKEMONTRAINER_Red", "trainer_POKEMONTRAINER_Leaf",
# "trainer_POKEMONTRAINER_Brendan","trainer_POKEMONTRAINER_May"
# ]
# battle = [
# "POKEMONTRAINER_Red","POKEMONTRAINER_Leaf",
# "POKEMONTRAINER_Brendan","POKEMONTRAINER_May"
# ]
# $game_variables[70] = startCharacterSelection(overworld,battle)
I don't think it's missing, most of the time I think he expects it to be placed above Main, which would make it not need a meta.txtHey FL
Just letting you know that the new version of this plugin is missing the meta.txt file that plugins usually need, and this makes the game call the r=startCharacterSelection script an "undefined method"which makes it crash.
I noticed you'd put the information that's normally in the meta.txt inside of the Script file, so I just copied it over and added it to a new meta.txt file on my end, and now it works perfectly.
All versions don't have the meta, this is noted in instructions. This error only happens if someone try to incorretly convert this script in a plugin rather than putting it above main. Using the script editor is the standard way of adding new scripts in RPG Maker X.Hey FL
Just letting you know that the new version of this plugin is missing the meta.txt file that plugins usually need, and this makes the game call the r=startCharacterSelection script an "undefined method"which makes it crash.
I noticed you'd put the information that's normally in the meta.txt inside of the Script file, so I just copied it over and added it to a new meta.txt file on my end, and now it works perfectly.