The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Essentials Script Legendary Breeding

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.


Reply
 
Thread Tools
  #1    
Old January 18th, 2018 (12:12 AM). Edited January 18th, 2018 by Lucidious89.
Lucidious89 Lucidious89 is offline
     
    Join Date: Apr 2014
    Gender: Male
    Posts: 173
    I've made a few changes that allows legendary species to breed. This is done by assigning genders to all the legendaries, as well as adding 8 new Egg Groups that are exclusive to legendary species. This keeps them special from regular species by separating them in their own groups, but still allows legendaries to have all the benefits of breeding. I'll be covering all legendary species in this all the way up to Ultra Sun/Moon, but there shouldn't be any issues if your project doesn't include Pokemon from more recent gens.

    First off, here are the new Egg Groups I've set up:

    Skycrest
    This group is primarily occupied by bird-like or winged species that dominate the skies.
    Pokemon in this group:


    Bestial
    This group is primarily occupied by beast-like species that roam the lands. Most species in this group are quadrupeds.
    Pokemon in this group:


    Titan
    This is a small group made up primarily by large, hulking species.
    Pokemon in this group:


    Overlord
    This is a small group made up primarily by Dragon-type species.
    Pokemon in this group:


    Nebulous
    This group is primarily occupied by creatures with mysterious or cosmic origins. Most species in this group are bipedal, or align themselves vertically.
    Pokemon in this group:


    Enchanted
    This group is primarily occupied by pixie-like species with strong ties to nature or other magical properties. Most species in this group are smaller-sized creatures.
    Pokemon in this group:


    Ancestor
    This group is occupied by the genetic ancestor to all other species. This group can breed with every other group in the game except for the Ditto and Ultra groups.
    Pokemon in this group:


    Ultra
    This group is occupied only by Ultra beasts, or species with similar cosmic origins.
    Pokemon in this group:




    Special Cases
    Some in-depth info on breeding mechanics for certain species.
    Spoiler:

    • Ditto
      Ditto cannot breed with any species in any Legendary Egg Group. This includes both Mew and Ultra Beasts.



    • Mew
      Mew functions a lot like Ditto, but with extra functionality. Since Mew carries the DNA of all other species, it only makes sense that it can breed with most of them. Mew can breed with any of the normal egg groups (besides Ditto), and any of the Legendary Egg Groups (besides Ultra). When breeding with Mew, the egg species will always be that of Mew's partner (again, just like how Ditto functions). However, unlike Ditto, Mew can breed with itself to create more Mew. The one downside to breeding with Mew instead of Ditto is that Mew have genders. So gender-based compatibility rules still apply when breeding with Mew.



    • Mewtwo
      Mewtwo remains unchanged, and is incapable of breeding. As a mutated science experiment gone wrong, its genes are far too corrupted to breed with anything. However, you can still create Mewtwo eggs if two Mew are bred while the mother is holding a Berserk Gene. This will corrupt the offspring's DNA, creating a Mewtwo egg instead.
      • Berserk Gene must be added to your items PBS file for this to work.



    • Regirock, Regice, Registeel
      These three species remain unchanged, and are incapable of breeding. They were not born through normal means, and were instead crafted by Regigigas out of natural resources. However, you can still create Regi eggs by breeding two Regigigas together while the mother is holding an item made of the appropriate material.
      • Regirock: Mother must be holding a Hard Stone.
      • Regice: Mother must be holding a Never-Melt Ice.
      • Registeel: Mother must be holding an Iron Ball.



    • Latias & Latios
      Latias has a 50% chance of producing either Latias or Latios eggs. Much like how female Nidoran can produce the male or female variants. The same thing occurs if Latios is bred with a female Mew.



    • Deoxys
      Deoxys eggs will inherit its mother's form when hatched (or father's form when bred with Mew).



    • Dialga, Palkia, Giratina
      These species remain unchanged, and are incapable of breeding. As beings that existed at the creation of the universe, their biology is beyond other species. However, you can still create eggs of these Pokemon by utilizing a unique mechanic with Arceus (more on this below).



    • Arceus
      Arceus remains unchanged, and is incapable of breeding. However, a unique mechanic exclusive to Arceus is implemented that allows it to spawn eggs through its own power, depending on the item its holding.

      Running the pbArceusEggSpawn script in an event will begin the egg spawn process. After selecting Arceus from your party, it will create an egg of one of the following species, depending on its held item:
      • Dialga: Creates an egg of this species when an Adamant Orb is held.
      • Palkia: Creates an egg of this species when a Lustrous Orb is held.
      • Giratina: Creates an egg of this species when a Griseous Orb is held.
      • Arceus: Creates an egg of this species when a Divine Plate is held. (Item needs to be added)
      • Type: Null: Creates an egg of this species when a False Plate is held. (Item needs to be added)



    • Tornadus, Thundurus, Landorus
      These species can only breed while in their Therian forms, as their biology matches other species the most while in these forms.



    • Zygarde
      Zygarde will always hatch in its 10% form when breeding (set as form 1). However, Zygarde 10% cannot breed, as it has too few cells to do so successfully. It must reach its 50% form before it's capable of breeding.



    • Type: Null
      This species remains unchanged, and is incapable of breeding. Much like Mewtwo, its genes have been corrupted too thoroughly through genetic experiment to breed. However, as described in the Arceus section, you can create Type: Null eggs if you use Arceus to spawn an egg while its holding a False Plate.



    • Cosmog & Cosmoem
      These species remain unchanged, and are incapable of breeding. They're considered baby species, and thus are too immature to breed.



    • Solgaleo & Lunala
      These are unique in that they have different egg groups despite being of the same evolutionary family. Solgaleo is in the Bestial group, while Lunala is in the Skycrest group. However, both overlap in the Ultra group. These are the only species (along with Necrozma) that bridge the gap between Ultra Beast and non-Ultra Beast species.



    • Poipole
      This species remain unchanged, and is incapable of breeding. It's considered a baby species, and thus is too immature to breed.



    • Fused Legendaries
      The fused forms of Kyurem (Black Kyurem, White Kyurem) and Necrozma (Dusk Mane, Dawn Wings, Ultra) cannot breed. You must revert them to their base forms before they can be bred.



    Installation
    Spoiler:
    Pokemon PBS File changes
    For each species listed below, change the following attributes to what I've listed:
    Spoiler:
    ARTICUNO
    GenderRate=Female50Percent
    Compatibility=Skycrest

    ZAPDOS
    GenderRate=Female50Percent
    Compatibility=Skycrest

    MOLTRES
    GenderRate=Female50Percent
    Compatibility=Skycrest

    MEW
    GenderRate=Female50Percent
    Compatibility=Ancestor

    RAIKOU
    GenderRate=Female25Percent
    Compatibility=Bestial

    ENTEI
    GenderRate=Female25Percent
    Compatibility=Bestial

    SUICUNE
    GenderRate=Female25Percent
    Compatibility=Bestial

    LUGIA
    GenderRate=Female50Percent
    Compatibility=Skycrest

    HOOH
    GenderRate=Female50Percent
    Compatibility=Skycrest

    CELEBI
    GenderRate=Female50Percent
    Compatibility=Enchanted

    LATIAS
    Compatibility=Skycrest,Overlord

    LATIOS
    Compatibility=Skycrest, Overlord

    KYOGRE
    GenderRate=Female50Percent
    Compatibility=Titan

    GROUDON
    GenderRate=Female50Percent
    Compatibility=Titan

    RAYQUAZA
    GenderRate=Female50Percent
    Compatibility=Overlord

    JIRACHI
    GenderRate=Female50Percent
    Compatibility=Enchanted

    DEOXYS
    GenderRate=Female50Percent
    Compatibility=Nebulous

    UXIE
    GenderRate=Female50Percent
    Compatibility=Enchanted

    MESPRIT
    GenderRate=Female50Percent
    Compatibility=Enchanted

    AZELF
    GenderRate=Female50Percent
    Compatibility=Enchanted

    HEATRAN
    Compatibility=Bestial

    REGIGIGAS
    GenderRate=Female50Percent
    Compatibility=Titan

    CRESSELIA
    Compatibility=Skycrest,Enchanted

    MANAPHY
    GenderRate=Female50Percent
    Compatibility=Enchanted

    DARKRAI
    GenderRate=AlwaysMale
    Compatibility=Nebulous

    SHAYMIN
    GenderRate=Female50Percent
    Compatibility=Enchanted

    VICTINI
    GenderRate=Female50Percent
    Compatibility=Enchanted

    COBALION
    GenderRate=FemaleOneEighth
    Compatibility=Bestial

    TERRAKION
    GenderRate=FemaleOneEighth
    Compatibility=Bestial

    VIRIZION
    GenderRate=Female75Percent
    Compatibility=Bestial

    TORNADUS
    Compatibility=Skycrest

    THUNDURUS
    Compatibility=Nebulous,Overlord

    RESHIRAM
    GenderRate=Female50Percent
    Compatibility=Overlord,Titan

    ZEKROM
    GenderRate=Female50Percent
    Compatibility=Overlord,Titan

    LANDORUS
    Compatibility=Bestial,Titan

    KYUREM
    GenderRate=Female50Percent
    Compatibility=Overlord,Skycrest

    KELDEO
    GenderRate=Female50Percent
    Compatibility=Bestial

    MELOETTA
    GenderRate=AlwaysFemale
    Compatibility=Enchanted,Nebulous

    GENESECT
    GenderRate=FemaleOneEighth
    Compatibility=Nebulous

    XERNEAS
    GenderRate=Female50Percent
    Compatibility=Bestial,Enchanted

    YVELTAL
    GenderRate=Female50Percent
    Compatibility=Skycrest,Overlord

    ZYGARDE
    GenderRate=Female50Percent
    Compatibility=Overlord,Titan

    DIANCIE
    GenderRate=AlwaysFemale
    Compatibility=Enchanted,Nebulous

    HOOPA
    GenderRate=Female50Percent
    Compatibility=Nebulous

    VOLCANION
    GenderRate=Female50Percent
    Compatibility=Bestial,Titan

    TAPUKOKO
    GenderRate=AlwaysMale
    Compatibility=Enchanted,Skycrest

    TAPULELE
    GenderRate=AlwaysFemale
    Compatibility=Enchanted,Nebulous

    TAPUBULU
    GenderRate=AlwaysMale
    Compatibility=Enchanted,Bestial

    TAPUFINI
    GenderRate=AlwaysFemale
    Compatibility=Enchanted,Nebulous

    SOLGALEO
    GenderRate=AlwaysMale
    Compatibility=Bestial,Ultra

    LUNALA
    GenderRate=AlwaysFemale
    Compatibility=Skycrest,Ultra

    NIHILEGO
    GenderRate=Female50Percent
    Compatibility=Ultra

    BUZZWOLE
    GenderRate=AlwaysMale
    Compatibility=Ultra

    PHERAMOSA
    GenderRate=AlwaysFemale
    Compatibility=Ultra

    XURKITREE
    GenderRate=Female50Percent
    Compatibility=Ultra

    CELESTEELA
    GenderRate=AlwaysFemale
    Compatibility=Ultra

    KARTANA
    GenderRate=Female50Percent
    Compatibility=Ultra

    GUZZLORD
    GenderRate=Female50Percent
    Compatibility=Ultra

    NECROZMA
    GenderRate=Female50Percent
    Compatibility=Titan,Ultra

    MAGEARNA
    GenderRate=AlwaysFemale
    Compatibility=Nebulous,Enchanted

    MARSHADOW
    GenderRate=Female50Percent
    Compatibility=Nebulous

    POIPOLE
    GenderRate=Female50Percent

    NAGANADEL
    GenderRate=Female50Percent
    Compatibility=Ultra

    STAKATAKA
    GenderRate=Female50Percent
    Compatibility=Ultra

    BLACEPHALON
    GenderRate=Female50Percent
    Compatibility=Ultra

    ZERAORA
    GenderRate=Female50Percent
    Compatibility=Bestial,Nebulous



    Item PBS File Additions
    Add these three items to your Items PBS file. Make sure to replace the XXX's with the appropriate item ID numbers for your game.
    Spoiler:

    XXX,BERSERKGENE,Berserk Gene,Berserk Genes,1,1000,"A genetically modified sample of Mew's DNA. Holding this may produce mutations when breeding.",0,0,0,
    XXX,DIVINEPLATE,Divine Plate,Divine Plates,1,1000,"The merged form of all 17 Arceus plates. The divine power it emits may be harnessed to create new life.",0,0,0,
    XXX,FALSEPLATE,False Plate,False Plates,1,1000,"A man-made attempt at creating a Divine Plate. The odd power it emits may be harnessed to create new life.",0,0,0,



    Script Changes
    Spoiler:
    1) Replace all of the PBEggGroups script with the updated code in this link:
    PBEggGroups Update

    2) Somewhere under PField_DayCare, paste the code in this link in a new section:
    Breeding Script

    *Note: You can skip this step if you've recently installed my Pokemon Birthsigns script. It is included by default. However, you'll still have to apply the changes to the pokemon in their PBS file and replace your PBEggGroup scripts before any of the changes will take effect.

    3) In Editor_Screens, find this section:
    Spoiler:
    Code:
    [_INTL("Compat1"),EnumProperty.new([
            "Undiscovered","Monster","Water 1","Bug","Flying",
            "Field","Fairy","Grass","Human-like","Water 3",
            "Mineral","Amorphous","Water 2","Ditto","Dragon"]),
            _INTL("Compatibility group (egg group) for breeding purposes.")],
         [_INTL("Compat2"),EnumProperty.new([
            "Undiscovered","Monster","Water 1","Bug","Flying",
            "Field","Fairy","Grass","Human-like","Water 3",
            "Mineral","Amorphous","Water 2","Ditto","Dragon"]),

    And replace it with this:
    Spoiler:
    Code:
    [_INTL("Compat1"),EnumProperty.new([
            "Undiscovered","Monster","Water 1","Bug","Flying",
            "Field","Fairy","Grass","Human-like","Water 3",
            "Mineral","Amorphous","Water 2","Ditto","Dragon",
            #=======================================================================
            # Legendary Egg Groups
            #=======================================================================
            "Skycrest","Bestial","Titan","Overlord",
            "Nebulous","Enchanted","Ancestor","Ultra"]),
            #=======================================================================
            _INTL("Compatibility group (egg group) for breeding purposes.")],
         [_INTL("Compat2"),EnumProperty.new([
            "Undiscovered","Monster","Water 1","Bug","Flying",
            "Field","Fairy","Grass","Human-like","Water 3",
            "Mineral","Amorphous","Water 2","Ditto","Dragon",
            #=======================================================================
            # Legendary Egg Groups
            #=======================================================================
            "Skycrest","Bestial","Titan","Overlord",
            "Nebulous","Enchanted","Ancestor","Ultra"]),
            #=======================================================================





    This is compatible with my Egg Group Display script, allowing you to display species' Egg Groups in the summary.
    Reply With Quote

    Relevant Advertising!

      #2    
    Old 4 Weeks Ago (3:35 AM).
    p.claydon p.claydon is offline
       
      Join Date: Jan 2011
      Gender:
      Posts: 386
      this looks pretty cool


      do we need to have up to gen7 pokemon/moves/abilities/items added or will it just ignore them if there not there?
      __________________
      Still learning how to sprite but if you want to look at my progress then here you go
      http://pclaydon.deviantart.com/gallery/
      Reply With Quote
        #3    
      Old 4 Weeks Ago (5:09 AM).
      Lucidious89 Lucidious89 is offline
         
        Join Date: Apr 2014
        Gender: Male
        Posts: 173
        Quote:
        Originally Posted by p.claydon View Post
        this looks pretty cool


        do we need to have up to gen7 pokemon/moves/abilities/items added or will it just ignore them if there not there?
        It'll just ignore them if they aren't present.
        Reply With Quote
          #4    
        Old 4 Weeks Ago (4:55 PM).
        p.claydon p.claydon is offline
           
          Join Date: Jan 2011
          Gender:
          Posts: 386
          thats good gives me time to sort that part out then
          __________________
          Still learning how to sprite but if you want to look at my progress then here you go
          http://pclaydon.deviantart.com/gallery/
          Reply With Quote
          Reply

          Quick Reply

          Join the conversation!

          Create an account to post a reply in this thread, participate in other discussions, and more!

          Create a PokéCommunity Account

          Sponsored Links
          Thread Tools

          Posting Rules
          You may not post new threads
          You may not post replies
          You may not post attachments
          You may not edit your posts

          BB code is On
          Smilies are On
          [IMG] code is On
          HTML code is Off

          Forum Jump


          All times are GMT -8. The time now is 3:10 PM.