- 10
- Posts
- 10
- Years
- sydney Australia
- Seen Mar 31, 2016
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
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