• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • 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
    11
    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