Resource icon

Resource Multiple Protagonists 1.4

NettoHikari

Novice
Member
Posts
21
#1
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!
Read more about this resource...
 

Dragonite

Have they found the One Piece yet
Member
Posts
235
#3
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!
 

PokeMiner20

Novice
Member
Posts
12
#8
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

Novice
Member
Posts
21
#9
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
Posts
12
#10
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

Novice
Member
Posts
21
#12
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
Posts
12
#13
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
 

PokeMiner20

Novice
Member
Posts
12
#15
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

Novice
Member
Posts
21
#16
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
Posts
12
#17
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
Posts
2
#18
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:16:in `initialize'
PScreen_Load:129:in `new'
PScreen_Load:129:in `pbStartScene'
PScreen_Load:128:in `each'
PScreen_Load:128:in `pbStartScene'

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

NettoHikari

Novice
Member
Posts
21
#19
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:16:in `initialize'
PScreen_Load:129:in `new'
PScreen_Load:129:in `pbStartScene'
PScreen_Load:128:in `each'
PScreen_Load:128:in `pbStartScene'

Am I missing something? I can be pretty clumsy when it comes to editing.
Delete your old save file and try running it again, essentially it won't run when it's trying to load a save that didn't have this script before.
 

TeGinger

Big man on campus
Member
Posts
2
#20
Delete your old save file and try running it again, essentially it won't run when it's trying to load a save that didn't have this script before.
And there we go! Many thanks and keep up the good work! I can't wait to be able to set up fights between my protagonists.
 
Top