• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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: [v13+] Character Selection

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?
 
Does this work with 21.1? :D

Edit:
It works on 21,1 for me.
 
Last edited:
  • Like
Reactions: FL
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)
 
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)
 
  • Like
Reactions: FL
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.
 
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.
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.txt
 
  • Like
Reactions: FL
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.
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.

Thanks to feedbacks like yours, I'm thinking in changing this since more and more people don't know about the standard way. So, thanks for letting me know!
 
Back
Top