# ResourceMultiple Protagonists v4.0.2

#### NettoHikari

##### Cooltrainer
Member
NettoHikari submitted a new resource:

Multiple Protagonists - Plug-and-play script to add multiple player characters

Hi everyone, I've made a (mostly) plug-and-play script that allows you to add up to 8 player characters to your game, each with their own distinct character data, like Pokemon, Bag, money, etc. I've detailed everything I can at the top of the script itself, so if you have any questions then that would be a great place to look first before asking me.

If you notice any bugs, please don't hesitate to tell me! I want to make this as bug-free as possible. I hope you find this script useful!

Member
:eyes:

#### Dragonite

##### Have they found the One Piece yet?
Member
This is not something I would have thought of trying, but not that you mention it I could think of a few ways to use it. Neat!

#### NettoHikari

##### Cooltrainer
Member
Thanks for the positives responses everyone! I'm working on some patches and new features, so I'll be releasing an update soon.

#### PokeMiner20

##### Novice
Member
found this while trying to find a proper Zygarde form script, but I'm experimenting with this script and I can't seem to set player names to the new protags I switch to using a call script. Like, swap to another Protag and have it have a pre assigned name without the player choosing for them, character 2 with name of Nathan. any help on this?

#### NettoHikari

##### Cooltrainer
Member
If you're switching to a new character with a predefined name, you would use:
Ruby:
pbSwitchCharacter(character_id, "TRAINER NAME")
I mentioned how to set the protagonist's name in "List of Functions" section at the top of the script, make sure to read that first if you have any questions. Hope that helps!

Last edited:

#### PokeMiner20

##### Novice
Member
I Did read it, but it never mentioned "TRAINER NAME" and had Name = Nil in the set up. never found an example to base off. thanks for the help

#### NettoHikari

##### Cooltrainer
Member
After reading it again, I realize now that the explanation given in the script was not very clear, so I added an example there to show what I meant. And thanks for checking out my script!

#### PokeMiner20

##### Novice
Member
you might be happy to know that this works on version 16.2 also. not sure if you knew this but it helps to know this anyways

#### NettoHikari

##### Cooltrainer
Member
I'll update the description to reflect that, thanks for testing that!

#### PokeMiner20

##### Novice
Member
I've tested and seen this in essentials before. it's possible to set a players current party to a variable or switch(I can't remember which one), change the party to another characters team, and call upon that command to give the player back their party(Best demonstration of this I've seen is in the latest version of Pokemon Rejuvenation). not sure if this fits here but could it be possible to use this or some extension of that system to set a battle against the player character? I've seen a battle against the players party in an old rom hack called Glazed for a legendary event

#### NettoHikari

##### Cooltrainer
Member
This was actually brought up on Pokecommunity as well. For the next update, I'm planning on adding both battling against other protagonists and registering protagonists as partners.

#### PokeMiner20

##### Novice
Member
I'm getting a 'You are the only character' message when starting the game as female, swapping to male via event, then using the menu command to swap back. not sure why tho

EDIT: Found a hot fix, don't worry about it.

Last edited:

#### TeGinger

##### Big man on campus
Member
Love the idea and the script! However I keep getting the same error.

[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method []' for nil:NilClass
MultipleProtagonists:482:in gsubPN'
MultipleProtagonists:481:in each'
MultipleProtagonists:481:in gsubPN'
Messages:867:in pbGetMapNameFromId'
PScreen_Load:16:in initialize'
PScreen_Load:129:in pbStartScene'
PScreen_Load:128:in pbStartScene'

Am I missing something? I can be pretty clumsy when it comes to editing.

#### NettoHikari

##### Cooltrainer
Member
Love the idea and the script! However I keep getting the same error.

[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method []' for nil:NilClass
MultipleProtagonists:482:in gsubPN'
MultipleProtagonists:481:in each'
MultipleProtagonists:481:in gsubPN'
Messages:867:in pbGetMapNameFromId'
PScreen_Load:74:in refresh'
PScreen_Load:129:in new'
PScreen_Load:128:in each'