• 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 Trading Card Game 2 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.

Help with adding a new IV inheritance system for breeding eggs

  • 10
    Posts
    10
    Years
    Greetings,
    I would have put this under script help/request but it looks like it's been locked...
    Im trying to do a custom breeding system... or more precisely change how the egg stats are generated. I know how I want it to work but am I don't know the correct syntax for certain elements (retreive parents EV/IV for example) as I am still trying to learn ruby.

    This is what I am trying to do- I have two so if one can't be done I have a backup....

    Ideally....
    if ParentAverageIV=<30
    then eggIV=ParentAverageIV+(ParentAverageEV/100)
    round to whole number
    else
    eggIV=ParentAverageIV

    As a backup...
    if ParentAverageIV=<30
    If ParentAverageIV=>2
    then EggIV=(ParentAverageIV-2)+Random(0,4)
    else
    EggIV=ParentAverageIV

    obviously this script would have to run for each value

    *The objective is to have a breeding system where the quality of the eggs produced is directly related to the effort put into them.

    **Note I am working with an older version of the essentials toolkit because the build is over a year in the making so I dont have any of the EVgames or megastuff.

    Thank You
    Googleshop
     
    Back
    Top