• 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.

[PBS Question] Evolution problem

  • 163
    Posts
    6
    Years
    Okay so I have a Pokemon that will evolve if a second one of the same species is in your party.

    The Pokemon's name is Rubbucky (https://www.deviantart.com/clawort-animations/art/Rubbucky-Pokemon-OC-797175086), and it evolves into Squanger (https://www.deviantart.com/clawort-animations/art/Squanger-Pokemon-OC-797429967) if a second Rubbucky is in your party, but not when only the one Rubbucky is in your party.

    Can someone help with that?

    Here's the code for the evo BTW:
    Evolutions=SQUANGER,HasInParty,RUBBUCKY

    What am I doing wrong?
     
    You're going to have to define a new evolution method. Fortunately, you can use HasInParty as a starting point. The wiki page on evolutions has a section in creating your own methods. Check it out!
     
    You're going to have to define a new evolution method. Fortunately, you can use HasInParty as a starting point. The wiki page on evolutions has a section in creating your own methods. Check it out!

    So lemme get this straight...

    I have to modify the HasInParty evolution method since the HasInParty method doesn't work and confuses Essentials, and make it so that only if two Pokemon of the same species is in your party, one will evolve?
     
    Well, first you would copy HasInParty to a NEW evolution method, then modify it as you described, yes.
     
    Last edited:
    How do I modify it so that if only two Pokemon of the same species is required?

    Essentials has 5 placeholder evolution methods for you to easily add new types of evolution - it goes from Custom 1-5. So you can simply find the code below (in the Pokemon_Evolution section) and copy this:
    Code:
    when PBEvolution::Custom1 # Find this line, add the rest below
      count = 0
      for i in $Trainer.pokemonParty
        count += 1 if i.species == pokemon.species
      end
      return poke if count == 2

    Also under the same script section, find this line:
    Code:
         1,1,1,1,1    # Custom 1-5
    and replace the first "1" in the sequence with a 0.

    Now use "Custom1" as your evolution method for Rubbucky and you're set!
     
    Last edited:
    Well, first you would copy HasInParty to a NEW evolution method, then modify it as you described, yes.

    Essentials has 5 placeholder evolution methods for you to easily add new types of evolution - it goes from Custom 1-5. So you can simply find the code below (in the Pokemon_Evolution section) and copy this:
    Code:
    when PBEvolution::Custom1 # Find this line, add the rest below
      count = 0
      for i in $Trainer.pokemonParty
        count += 1 if i.species == pokemon.species
      end
      return count

    Also under the same script section, find this line:
    Code:
         1,1,1,1,1    # Custom 1-5
    and replace the first "1" in the sequence with a 0.

    Now use "Custom1" as your evolution method for Rubbucky and you're set!

    But will this crash my game or no?

    Have you tested this method out?
     
    The small mistake is something I fixed in the edited code, so if you haven't done anything with it yet then it's not important. And by right place, I said in my original post where the "right place" in the script sections is.

    Okay! :D

    Now, have you tested it yet?
     
    I would recommend a very slight change IF you want this to work if the player has MORE THAN 2 of the required pokémon as well:

    Code:
    when PBEvolution::Custom1 # Find this line, add the rest below
      count = 0
      for i in $Trainer.pokemonParty
        count += 1 if i.species == pokemon.species
      end
      return poke if [COLOR="black"][COLOR="red"]count >= 2[/COLOR]

    But either way it should work fine.
    You can always test it yourself. If you're worried about messing up your game just back it up first. But as long as you've don't that, you don't have to be afraid to play around with the scripts. Get your hands dirty - it's how you learn. And it's fun!
     
    I would recommend a very slight change IF you want this to work if the player has MORE THAN 2 of the required pokémon as well:

    Code:
    when PBEvolution::Custom1 # Find this line, add the rest below
      count = 0
      for i in $Trainer.pokemonParty
        count += 1 if i.species == pokemon.species
      end
      return poke if [COLOR="black"][COLOR="red"]count >= 2[/COLOR]

    But either way it should work fine.
    You can always test it yourself. If you're worried about messing up your game just back it up first. But as long as you've don't that, you don't have to be afraid to play around with the scripts. Get your hands dirty - it's how you learn. And it's fun!

    Oh, but the script I got works.
     
    The small mistake is something I fixed in the edited code, so if you haven't done anything with it yet then it's not important. And by right place, I said in my original post where the "right place" in the script sections is.

    Nevermind! It works! Thank you! :D
     
    Oh, but the script I got works.

    That's great!
    And the change I recommended was only a minor modification. NettoHikari's method will only work if you have exactly two of the specified pokémon. My edit makes it work if you have two or more in your party. It's up to you how you want it to work.
     
    That's great!
    And the change I recommended was only a minor modification. NettoHikari's method will only work if you have exactly two of the specified pokémon. My edit makes it work if you have two or more in your party. It's up to you how you want it to work.

    Okay!
     
    Back
    Top